chore: update to the top 30 locales

This commit is contained in:
Moody Salem 2021-05-28 23:25:32 -05:00
parent d719942931
commit 0dafd3e7ba
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB
2 changed files with 66 additions and 3 deletions

@ -13,7 +13,38 @@ export default {
formatOptions: {
lineNumbers: false,
},
locales: ['en-US'],
locales: [
'af-ZA',
'ar-SA',
'ca-ES',
'cs-CZ',
'da-DK',
'de-DE',
'el-GR',
'en-US',
'es-ES',
'fi-FI',
'fr-FR',
'he-IL',
'hu-HU',
'it-IT',
'ja-JP',
'ko-KR',
'nl-NL',
'no-NO',
'pl-PL',
'pt-BR',
'pt-PT',
'ro-RO',
'ru-RU',
'sr-SP',
'sv-SE',
'tr-TR',
'uk-UA',
'vi-VN',
'zh-CN',
'zh-TW',
],
orderBy: 'messageId',
rootDir: '.',
runtimeConfigModule: ['@lingui/core', 'i18n'],

@ -1,8 +1,40 @@
export const SUPPORTED_LOCALES = ['en-US'] as const
export const SUPPORTED_LOCALES = [
'af-ZA',
'ar-SA',
'ca-ES',
'cs-CZ',
'da-DK',
'de-DE',
'el-GR',
'en-US',
'es-ES',
'fi-FI',
'fr-FR',
'he-IL',
'hu-HU',
'it-IT',
'ja-JP',
'ko-KR',
'nl-NL',
'no-NO',
'pl-PL',
'pt-BR',
'pt-PT',
'ro-RO',
'ru-RU',
'sr-SP',
'sv-SE',
'tr-TR',
'uk-UA',
'vi-VN',
'zh-CN',
'zh-TW',
] as const
export type SupportedLocale = typeof SUPPORTED_LOCALES[number]
export const DEFAULT_LOCALE: SupportedLocale = 'en-US'
export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = {
// todo: fill this back out
export const LOCALE_LABEL: { [locale in SupportedLocale]?: string } = {
'en-US': 'English',
}