Skip to content
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

Minor corrections to Translator use #2

Merged
merged 7 commits into from
Sep 10, 2016
Merged

Minor corrections to Translator use #2

merged 7 commits into from
Sep 10, 2016

Conversation

MrHarcombe
Copy link
Contributor

Following an issue on the MagicMirror itself (see issue MagicMirrorOrg/MagicMirror#388) regarding translations, it appears that your use of Translator.translations[this.name]... wasn't consistent with the way MagicMirror handles langauges and fallbacks.

This PR shouldn't change any functionality, but uses the Translator.translate function to ensure that the code searches both the given translation and the fallbackTranslation to retrieve the necessary details.

Apologies for the fussy semicolon/formatting changes - force of habit :(

Documented the `position` configuration item, needed if you want to see the prompt and text blocks recognised
Trying to tidy up the numbered bullet list.
If at first you don't succeed...
...try, try, try then find a different way to work around the issue.
…m there now, according to the official module documentation :)
@dr4ke616 dr4ke616 merged commit 4a9691c into dr4ke616:master Sep 10, 2016
@MrHarcombe MrHarcombe deleted the translator_use branch April 13, 2020 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants