Don't translate if we do not have a language

This will most likely be because we have not enabled translation
This commit is contained in:
Joel Marcey 2017-12-19 17:58:49 -08:00
parent ff117979c6
commit a12ebcd401

View File

@ -27,6 +27,10 @@ function setLanguage(lang) {
}
function translate(str) {
if (!language || language === '') {
return str;
}
if (
!translation[language] ||
!translation[language]['pages-strings'] ||