712e02db16
* Use locale/get response to suggest homepage and language switch * Fix language modal condition * Fixes from review * Fixes from review * Fix gdpr * string * Fix multiple options behavior * Fix gdpr and use only one fetch * Only show if no languages set or loaded * pt-br * Fix ad * Fix homepage select * Fix zh langs
20 lines
575 B
JavaScript
20 lines
575 B
JavaScript
import { getLanguageName } from './languages';
|
|
|
|
const SEARCHABLE_LANGUAGES = {
|
|
en: getLanguageName('en'),
|
|
hr: getLanguageName('hr'),
|
|
nl: getLanguageName('nl'),
|
|
fr: getLanguageName('fr'),
|
|
de: getLanguageName('de'),
|
|
it: getLanguageName('it'),
|
|
pl: getLanguageName('pl'),
|
|
pt: getLanguageName('pt'),
|
|
ru: getLanguageName('ru'),
|
|
es: getLanguageName('es'),
|
|
tr: getLanguageName('tr'),
|
|
cs: getLanguageName('cs'),
|
|
};
|
|
|
|
// Properties: language code (e.g. 'ja')
|
|
// Values: name of the language in native form (e.g. '日本語')
|
|
export default SEARCHABLE_LANGUAGES;
|