penguinmod-editor-2 / src /lib /locale-utils.js
soiz1's picture
Upload 2891 files
6bcb42f verified
raw
history blame contribute delete
575 Bytes
/**
* @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
};