• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

access to config language setting

Scheduled Pinned Locked Moved Development
24 Posts 5 Posters 10.9k Views 5 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.
  • S Offline
    sdetweil @strawberry 3.141
    last edited by Feb 12, 2019, 8:56 PM

    @strawberry-3-141 cool, thanks

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    C 1 Reply Last reply Feb 13, 2019, 12:46 AM Reply Quote 1
    • C Offline
      cowboysdude Module Developer @sdetweil
      last edited by cowboysdude Feb 13, 2019, 12:51 AM Feb 13, 2019, 12:46 AM

      @sdetweil said in access to config language setting:

      @strawberry-3-141 cool, thanks

      The kid knows his stuff! He’s a good guy! Matter of fact he gave me this to add to my module if it’s of any help :)

      I use this under the start: function()

        this.config.lang = this.config.lang || config.language; //automatically overrides and sets 
           language :)      
        this.config.units = this.config.units || config.units;
      
      1 Reply Last reply Reply Quote 0
      • J Offline
        justbob
        last edited by May 6, 2023, 11:34 PM

        Sorry for necroing this post, but from all I’ve read so far, this came up with most relevant information and solutions.

        My question is this - is there a reason why the language change via config was never incorporated in this module?

        S 1 Reply Last reply May 7, 2023, 12:10 AM Reply Quote 0
        • S Offline
          sdetweil @justbob
          last edited by May 7, 2023, 12:10 AM

          @justbob what module? this was a general question, not tied to any module

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply May 7, 2023, 12:41 AM Reply Quote 0
          • J Offline
            justbob @sdetweil
            last edited by May 7, 2023, 12:41 AM

            @sdetweil You mentioned default calendar module, and there were talks about default clock, so my questions referred to those…

            S 1 Reply Last reply May 7, 2023, 1:22 AM Reply Quote 0
            • S Offline
              sdetweil @justbob
              last edited by May 7, 2023, 1:22 AM

              @justbob what do you mean language change?

              the modules use the default translations

              set by changing language line 33 of the config.js.sample

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              J 1 Reply Last reply May 7, 2023, 2:46 AM Reply Quote 1
              • J Offline
                justbob @sdetweil
                last edited by May 7, 2023, 2:46 AM

                @sdetweil OMG, you are right, thank you for pointing out the line!:man_bowing:

                I was so focused on lines below line 39 (modules), that I completely skipped the ones above as I considered them to be mere comments… :man_facepalming_light_skin_tone:

                S 1 Reply Last reply May 7, 2023, 3:36 AM Reply Quote 0
                • S Offline
                  sdetweil @justbob
                  last edited by May 7, 2023, 3:36 AM

                  @justbob everything ABOVE modules applies to all , its the overall environment

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply May 7, 2023, 3:47 PM Reply Quote 0
                  • J Offline
                    justbob @sdetweil
                    last edited by May 7, 2023, 3:47 PM

                    @sdetweil I am aware of that, but somehow I just ignored it as I was “on auto-pilot”. :grinning_face_with_sweat:

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