feat(messages): added frontend translation class
This commit is contained in:
parent
ed752b01c0
commit
61c773f51c
17
frontend/src/messages.js
Normal file
17
frontend/src/messages.js
Normal file
@ -0,0 +1,17 @@
|
||||
export class Translations {
|
||||
static translations = {
|
||||
'checkrangeTooltip' : {
|
||||
'de' : 'Shift-Klick, um mehrere Zellen zu markieren.',
|
||||
'en' : 'Shift-click to mark multiple cells.',
|
||||
},
|
||||
};
|
||||
|
||||
static getTranslation(key, language) {
|
||||
let json = Translations.translations[key];
|
||||
if(language === 'en') {
|
||||
return json.en;
|
||||
} else {
|
||||
return json.de;
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user