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.

    Default language changed after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    14 Posts 2 Posters 726 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
      mrbaloo1337
      last edited by

      Hi!

      I updated my MM, after that I have some issues with the language. I prefer Swedish and used this config:
      language: “sv”,
      locale: “sv-SV”,

      Worked like a charm, but after update everything is Samian instead of Swedish. If I change to “en” it will be English.

      I tried to se if the code changed, but did not find a solution. Doe´s anyone have an idéa whats wrong?

      Regards Daniel

      S 1 Reply Last reply Reply Quote 0
      • M Offline
        mrbaloo1337
        last edited by

        Hi again, for some magical reason i solved it.
        I had a module MMM-jast. Wich is the last one I installed before upgrade. For test, I took a backup of the config without that module.
        Everything was in Swedish again, added my config for that module in the backupconfig file. Everything works as before.

        I can´t point what caused the error, but now it works again. Maybe the file ended up corrupt in the upgrade…

        Thanks for your response and time, have a good day!

        S 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @mrbaloo1337
          last edited by

          @mrbaloo1337 can you check the ~/MagicMirror/translations/sv.json file

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            mrbaloo1337
            last edited by

            Hi,

            This is what that file contains. Seems to be the only thing that is correct translated. Anything else will be in Sami.
            If I check in the translation file the row for Swedish is: “sv: “translations/sv.json”, // Svenska”

            {
            	"LOADING": "Laddar …",
            
            	"DAYBEFOREYESTERDAY": "",
            	"YESTERDAY": "I går",
            	"TODAY": "I dag",
            	"TOMORROW": "I morgon",
            	"DAYAFTERTOMORROW": "I övermorgon",
            	"RUNNING": "Slutar",
            	"EMPTY": "Inga kommande händelser.",
            	"WEEK": "Vecka {weekNumber}",
            
            	"N": "N",
            	"NNE": "NNO",
            	"NE": "NO",
            	"ENE": "ONO",
            	"E": "Ö",
            	"ESE": "OSO",
            	"SE": "SO",
            	"SSE": "SSO",
            	"S": "S",
            	"SSW": "SSV",
            	"SW": "SV",
            	"WSW": "VSV",
            	"W": "V",
            	"WNW": "VNV",
            	"NW": "NV",
            	"NNW": "NNV",
            
            	"FEELS": "Känns som {DEGREE}",
            
            	"UPDATE_NOTIFICATION": "MagicMirror² uppdatering finns tillgänglig.",
            	"UPDATE_NOTIFICATION_MODULE": "Uppdatering finns tillgänglig av {MODULE_NAME} modulen.",
            	"UPDATE_INFO_SINGLE": "Denna installation ligger {COMMIT_COUNT} commit steg bakom {BRANCH_NAME} grenen.",
            	"UPDATE_INFO_MULTIPLE": "Denna installation ligger {COMMIT_COUNT} commits steg bakom {BRANCH_NAME} grenen."
            }
            
            
            S 1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @mrbaloo1337
              last edited by

              @mrbaloo1337 sorry, I don’t understand your response.

              is the file good or bad?

              what mm version were you on?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 2 Replies Last reply Reply Quote 0
              • M Offline
                mrbaloo1337 @sdetweil
                last edited by mrbaloo1337

                @sdetweil
                Sorry, it looks good as far as I can see. I the texts in that file is the only workning translations. For example:
                “FEELS”: “Känns som {DEGREE}”,

                That´s a correct translation and works in Weather module, but weekdays is in Sami. See picture below.
                Capture.PNG

                That´s the same problem for every module. Hope you understand what I mean :)
                I think that the connection to “sv” is broken and points to Sami instead of Swedish.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mrbaloo1337 @sdetweil
                  last edited by

                  @sdetweil
                  Sorry missed, it is version 2.28.0

                  S 1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @mrbaloo1337
                    last edited by

                    @mrbaloo1337 I meant before this release.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      mrbaloo1337 @sdetweil
                      last edited by

                      @sdetweil

                      No issues before upgrade, is it possible to downgrade to previous version?

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @mrbaloo1337
                        last edited by

                        @mrbaloo1337 yes, but, I asked you to tell me what that version was.

                        I am out of the house for another hour

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mrbaloo1337 @sdetweil
                          last edited by

                          @sdetweil

                          I wrote that earlier, it is 2.28.0.

                          No worries, if you have any suggestions to my problem I will wait :)
                          On Saturday I leave for vacation so I hope it will be solved until that, otherwise I can´t sleep

                          S 1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 1 / 2
                          • 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