feat(locales): Add multiple languages

This commit is contained in:
web@ppanel
2024-12-18 23:12:53 +07:00
parent a20834a9ac
commit b243ab9006
610 changed files with 23247 additions and 9 deletions
+24 -1
View File
@@ -1,6 +1,29 @@
import { env } from 'next-runtime-env';
export const locales = ['en-US', 'zh-CN'];
export const locales = [
'en-US',
'cs-CZ',
'de-DE',
'es-ES',
'es-MX',
'fi-FI',
'fr-FR',
'hi-IN',
'hu-HU',
'ja-JP',
'ko-KR',
'no-NO',
'pl-PL',
'pt-BR',
'ro-RO',
'ru-RU',
'th-TH',
'tr-TR',
'uk-UA',
'vi-VN',
'zh-CN',
'zh-TW',
];
export const NEXT_PUBLIC_DEFAULT_LANGUAGE = env('NEXT_PUBLIC_DEFAULT_LANGUAGE') || locales[0];