saleor-app-sdk-REDIS_APL/src/locales.ts
Lukasz Ostrowski d4670b048c
Fix tests and strong-type locales (#57)
* Add new event type

* Add state handling for locale change

* Add strongly typed language codes

* fix tests
2022-09-13 15:15:52 +02:00

47 lines
554 B
TypeScript

/**
* Available locales in Saleor Dashboard.
* TODO: Extract to shared package between Dashboard and sdk, so this stay in sync?
*/
export type LocaleCode =
| "ar"
| "az"
| "bg"
| "bn"
| "ca"
| "cs"
| "da"
| "de"
| "el"
| "en"
| "es"
| "es-CO"
| "et"
| "fa"
| "fr"
| "hi"
| "hu"
| "hy"
| "id"
| "is"
| "it"
| "ja"
| "ko"
| "mn"
| "nb"
| "nl"
| "pl"
| "pt"
| "pt-BR"
| "ro"
| "ru"
| "sk"
| "sl"
| "sq"
| "sr"
| "sv"
| "th"
| "tr"
| "uk"
| "vi"
| "zh-Hans"
| "zh-Hant";