mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Fix incorrect terminology for shield metrics. Fixes #5
This commit is contained in:
@@ -34,9 +34,9 @@ export function getLanguage(langCode) {
|
||||
let gen = d3Locale.numberFormat('n');
|
||||
|
||||
if(lang === EN) {
|
||||
translate = (t) => { return currentTerms[t] || t; };
|
||||
translate = (t, x) => { return currentTerms[t + '_' + x] || currentTerms[t] || t; };
|
||||
} else {
|
||||
translate = (t) => { return currentTerms[t] || fallbackTerms[t] || t; };
|
||||
translate = (t, x) => { return currentTerms[t + '_' + x] || currentTerms[t] || fallbackTerms[t + '_' + x] || fallbackTerms[t] || t; };
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user