-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod locales constant and set paths correctly (#464)
- Loading branch information
Showing
4 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './localesMod' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
export const SUPPORTED_LOCALES = [ | ||
// order as they appear in the language dropdown | ||
'en-US', | ||
/* 'af-ZA', | ||
'ar-SA', | ||
'ca-ES', | ||
'cs-CZ', | ||
'da-DK', | ||
'de-DE', | ||
'el-GR', | ||
'es-ES', | ||
'fi-FI', | ||
'fr-FR', | ||
'he-IL', | ||
'hu-HU', | ||
'id-ID', | ||
'it-IT', | ||
'ja-JP', | ||
'ko-KR', | ||
'nl-NL', | ||
'no-NO', | ||
'pl-PL', | ||
'pt-BR', | ||
'pt-PT', | ||
'ro-RO', | ||
'ru-RU', | ||
'sr-SP', | ||
'sv-SE', | ||
'sw-TZ', | ||
'tr-TR', | ||
'uk-UA', | ||
'vi-VN', | ||
'zh-CN', | ||
'zh-TW', */ | ||
] | ||
export type SupportedLocale = typeof SUPPORTED_LOCALES[number] | 'pseudo' | ||
|
||
// eslint-disable-next-line import/first | ||
import * as enUS from 'locales/en-US' | ||
export const DEFAULT_LOCALE: SupportedLocale = 'en-US' | ||
export const DEFAULT_CATALOG = enUS | ||
|
||
export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = { | ||
/* 'af-ZA': 'Afrikaans', | ||
'ar-SA': 'العربية', | ||
'ca-ES': 'Català', | ||
'cs-CZ': 'čeština', | ||
'da-DK': 'dansk', | ||
'de-DE': 'Deutsch', | ||
'el-GR': 'ελληνικά', */ | ||
'en-US': 'English', | ||
/* 'es-ES': 'Español', | ||
'fi-FI': 'suomi', | ||
'fr-FR': 'français', | ||
'he-IL': 'עִברִית', | ||
'hu-HU': 'Magyar', | ||
'id-ID': 'bahasa Indonesia', | ||
'it-IT': 'Italiano', | ||
'ja-JP': '日本語', | ||
'ko-KR': '한국어', | ||
'nl-NL': 'Nederlands', | ||
'no-NO': 'norsk', | ||
'pl-PL': 'Polskie', | ||
'pt-BR': 'português', | ||
'pt-PT': 'português', | ||
'ro-RO': 'Română', | ||
'ru-RU': 'русский', | ||
'sr-SP': 'Српски', | ||
'sv-SE': 'svenska', | ||
'sw-TZ': 'Kiswahili', | ||
'tr-TR': 'Türkçe', | ||
'uk-UA': 'Український', | ||
'vi-VN': 'Tiếng Việt', | ||
'zh-CN': '简体中文', | ||
'zh-TW': '繁体中文', */ | ||
pseudo: 'ƥƨèúδô', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters