Add NL translation & Convert config property to lowercase.

This commit is contained in:
Michael Teeuw
2016-04-21 09:01:53 +02:00
parent 44c1266a8c
commit 6f615b8202
3 changed files with 10 additions and 2 deletions

View File

@@ -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 {