minor stuff

This commit is contained in:
Tim Daubenschütz 2015-06-02 14:29:06 +02:00
parent 3183dae054
commit fd0b3c0ead
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import { formatText } from './general_utils';
export function getLangText(s, ...args) {
let lang = navigator.language || navigator.userLanguage;
// this is just for testing, as changing the navigator.language wasn't possible
//lang = 'de';
try {
if(lang in languages) {
return formatText(languages[lang][s], args);