MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MagicMirror² Module: YrThen

    Scheduled Pinned Locked Moved Forum
    4 Posts 2 Posters 834 Views 2 Watching
    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 Offline
      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 Offline
        ashishtank Module Developer
        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 Offline
          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 Offline
            ashishtank Module Developer
            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy