mirror of
https://github.com/ascribe/onion.git
synced 2025-02-01 20:39:57 +01:00
minor stuff
This commit is contained in:
parent
3183dae054
commit
fd0b3c0ead
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user