/** * Locales the storefront agent (recomaze-tracking utils/language.js) * recognises. The codes here must stay aligned with that dictionary so a * saved translation actually matches a detected locale on the storefront. * * English is the default copy stored on the root popup record, so it is * intentionally absent from this list - the "English (default)" option in * the selector represents it. */ export const LANGUAGE_OPTIONS: ReadonlyArray<{ code: string; label: string }> = [ { code: 'ro', label: 'Romanian' }, { code: 'es', label: 'Spanish' }, { code: 'pt', label: 'Portuguese' }, { code: 'fr', label: 'French' }, { code: 'de', label: 'German' }, { code: 'it', label: 'Italian' }, { code: 'pl', label: 'Polish' }, { code: 'ru', label: 'Russian' }, { code: 'uk', label: 'Ukrainian' }, { code: 'tr', label: 'Turkish' }, { code: 'ar', label: 'Arabic' }, { code: 'he', label: 'Hebrew' }, { code: 'fa', label: 'Persian' }, { code: 'ur', label: 'Urdu' }, { code: 'hi', label: 'Hindi' }, { code: 'bn', label: 'Bengali' }, { code: 'pa', label: 'Punjabi' }, { code: 'mr', label: 'Marathi' }, { code: 'te', label: 'Telugu' }, { code: 'gu', label: 'Gujarati' }, { code: 'ml', label: 'Malayalam' }, { code: 'kn', label: 'Kannada' }, { code: 'ja', label: 'Japanese' }, { code: 'ko', label: 'Korean' }, { code: 'zh', label: 'Mandarin Chinese' }, { code: 'vi', label: 'Vietnamese' }, { code: 'id', label: 'Indonesian' }, { code: 'el', label: 'Greek' }, { code: 'hu', label: 'Hungarian' }, { code: 'bg', label: 'Bulgarian' }, ]; export const DEFAULT_LANG_VALUE = '__default';