Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    MagicMirror² Module: YrThen

    Forum
    2
    4
    113
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mettenes last edited by

      Hello all, i am new in this forum and i am also new to build the Magic Mirror but i am underway .-) i need some help to understand how i can add the Norwegian translating file to the module MMM-YrThen so it show up in Norwegian language for my Magic Mirror.

      I hope somebody knows 🙂

      Thanks

      1 Reply Last reply Reply Quote 0
      • A
        ashishtank last edited by

        @mettenes said in MagicMirror² Module: YrThen:

        MMM-YrThen

        Should be easy

        1. clone the MMM-YrThen module
        2. Go to MMM-YrThen/translations folder
        3. copy en.json file and paste it as nn.json
        4. open nn.json and replace all the english translations to Norwegian
        5. Go to MMM-YrThen folder and open MMM-YrThen.js file
        6. Edit getTranslations function and code as below, note the last line.
            getTranslations: function() {
                return {
                    no: "translations/no.json",
                    en: "translations/en.json",
                    sv: "translations/sv.json",
                    fi: "translations/fi.json",
                    fr: "translations/fr.json",
                    es: "translations/es.json",
                    el: "translations/el.json",
                    da: "translations/da.json",
                    nn: "translations/nn.json",
                }
            },
        
        
        1. Save the file and restart the Magic mirror.

        PS: Are you sure Norwegian is not already supported in this module ? I can see no.json file and I think that is also being used as Norwegian language code ?
        Let me know if above does not work.

        –
        Ashish

        1 Reply Last reply Reply Quote 0
        • M
          mettenes last edited by

          Hello, sorry for my late reply

          Thanks for your advise 🙂 i manage to change the language but i clanged to the standard weather module later…
          I have one another question about resize all the modules on how to do that? I am using a 32" tv screen and the modules is filling all the screen but i cant figure out how to make all smaller. i have tried all setting in the screen on soo but without success… is there any solution for this ?!

          1 Reply Last reply Reply Quote 0
          • A
            ashishtank last edited by

            Hi

            I am not sure if i understood your question correctly. can you please add screenshot/photo so its clear what is issue.
            About size of modules there are many ways to do it. Modules have config options like maxWidth or you can also make whole screen bigger or smaller using browser zoom function.

            –
            Ashish

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy