Spaces:
Running
Running
File size: 575 Bytes
6bcb42f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
/**
* @fileoverview
* Utility functions related to localization specific to the GUI
*/
const wideLocales = [
'ab',
'ca',
'de',
'el',
'it',
'ja',
'ja-Hira',
'ko',
'hu',
'ru',
'vi'
];
/**
* Identify the languages where translations are too long to fit in fixed width parts of the gui.
* @param {string} locale The current locale.
* @return {bool} true if translations in this language are too long
*/
const isWideLocale = locale => (
wideLocales.indexOf(locale) !== -1
);
export {
wideLocales,
isWideLocale
};
|