-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem of language #19
Comments
I have the same issue: How can I change the language. It's now in German (Ankunft). |
"in 4 minutes" is using moment(depature).locale(this.config.language).fromNow(); I am using the module in English language without problems but I haven't updated it in a long time :-D Still not sure why it doesn't work because the code looks fine. Can you try overwriting the language option "en" directly for the module? Can you try "sv" as well maybe? |
I just updated my version of MMM-Localtransport (from 32 commits ago :-D) and English language works fine for me. Make sure to set
I didn't set any language specifically for the module itself, so this.config.language is taken from config.language |
Hey, |
@pies666 I just tested your set-up as
and for me it returned a mix of English (for 'in 7 minutes') and German (for "Ankunft") The question is what the expected behaviour would be.
probably the first thing is to decide if this is the desired behaviour. I think for unknown languages we will instead get:
to use local language if defined, otherwise global as long as known to locale function, otherwise en
to use local language if defined, otherwise global as long as translation is provided with the module, otherwise en (prev de). I can't understand why it loaded 'de' when I provided local 'en' though. I will have to look into that. P.S.: sorry for the long and not very structured response. But in a hurry now :-D |
Ok, a summary of my previous thread:
easy fix: |
Hello,
Thanks for your module but I have a little problem : I display the language in english with language: 'en' on the config file but, although it's working for the time ("in 4 minutes"...), it's not working for arrival which is still written in german.
Thanks for you help !
The text was updated successfully, but these errors were encountered: