forked from hamster1963/nezha-dash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n-metadata.ts
25 lines (23 loc) · 914 Bytes
/
i18n-metadata.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// @auto-i18n-check. Please do not delete the line.
import getEnv from "./lib/env-entry";
export const localeItems = [
{ code: "en", name: "English" },
{ code: "ja", name: "日本語" },
{ code: "zh-t", name: "中文繁體" },
{ code: "zh", name: "中文简体" },
//{code: 'ar', name: 'العربية'},
//{code: 'de', name: 'Deutsch'},
//{code: 'es', name: 'Español'},
//{code: 'fr', name: 'Français'},
//{code: 'hi', name: 'हिन्दी'},
//{code: 'id', name: 'Bahasa Indonesia'},
//{code: 'it', name: 'Italiano'},
//{code: 'ko', name: '한국어'},
//{code: 'ms', name: 'Bahasa Melayu'},
//{code: 'pt', name: 'Português'},
//{code: 'ru', name: 'Русский'},
//{code: 'th', name: 'ไทย'},
//{code: 'vi', name: 'Tiếng Việt'},
];
export const locales = localeItems.map((item) => item.code);
export const defaultLocale = getEnv("DefaultLocale") || "en";