grafana/public/app/core/internationalization/constants.ts
Josh Hunt 9f81b3dcc6
I18n: Change locale format to IETF language tag (#52596)
* I18n: Change locale format to our agreed format

* fix test

* Build lingui messages files before ci tests
2022-07-22 10:50:00 -04:00

10 lines
368 B
TypeScript

type LocaleIdentifier = `${string}-${string}`;
export const ENGLISH_US: LocaleIdentifier = 'en-US';
export const FRENCH_FRANCE: LocaleIdentifier = 'fr-FR';
export const SPANISH_SPAIN: LocaleIdentifier = 'es-ES';
export const DEFAULT_LOCALE: LocaleIdentifier = ENGLISH_US;
export const VALID_LOCALES: LocaleIdentifier[] = [ENGLISH_US, FRENCH_FRANCE, SPANISH_SPAIN];