mirror of
https://github.com/QingWei-Li/notea.git
synced 2024-11-26 00:09:59 +03:00
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import {
|
|
zhCN,
|
|
enUS,
|
|
Localization,
|
|
deDE,
|
|
ruRU,
|
|
itIT,
|
|
nlNL,
|
|
frFR,
|
|
svSE
|
|
} from '@material-ui/core/locale';
|
|
|
|
export enum Locale {
|
|
ZH_CN = 'zh-CN',
|
|
EN = 'en',
|
|
de_DE = 'de-DE',
|
|
ru_RU = 'ru-RU',
|
|
ar = 'ar',
|
|
it_IT = 'it-IT',
|
|
nl_NL = 'nl-NL',
|
|
fr_FR = 'fr-FR',
|
|
sv_SE = 'sv-SE'
|
|
}
|
|
|
|
export const muiLocale: Record<Locale, Localization> = {
|
|
[Locale.ZH_CN]: zhCN,
|
|
[Locale.EN]: enUS,
|
|
[Locale.de_DE]: deDE,
|
|
[Locale.ru_RU]: ruRU,
|
|
// FIXME: upgrade material-ui and import arEG
|
|
[Locale.ar]: enUS,
|
|
[Locale.it_IT]: itIT,
|
|
[Locale.nl_NL]: nlNL,
|
|
[Locale.fr_FR]: frFR,
|
|
[Locale.sv_SE]: svSE
|
|
};
|
|
|
|
export const configLocale: Record<Locale, string> = {
|
|
[Locale.EN]: 'English',
|
|
[Locale.ZH_CN]: '简体中文',
|
|
[Locale.de_DE]: 'Deutsch',
|
|
[Locale.ru_RU]: 'Русский',
|
|
[Locale.ar]: 'العربية',
|
|
[Locale.it_IT]: 'Italiano',
|
|
[Locale.nl_NL]: 'Nederlands',
|
|
[Locale.fr_FR]: 'français',
|
|
[Locale.sv_SE]: 'Svenska'
|
|
};
|