mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Add NL translation & Convert config property to lowercase.
This commit is contained in:
@@ -221,7 +221,7 @@ var Module = Class.extend({
|
||||
loadTranslations: function(callback) {
|
||||
var self = this;
|
||||
var translations = this.getTranslations();
|
||||
var translationFile = translations && (translations[config.language] || translations["en"]) || undefined;
|
||||
var translationFile = translations && (translations[config.language.toLowerCase()] || translations.en) || undefined;
|
||||
if(translationFile) {
|
||||
Translator.load(this, translationFile, callback);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user