Merge branch 'master' into giscus

This commit is contained in:
radishzzz 2025-05-29 20:35:59 +01:00
commit 4b270755bf
356 changed files with 21152 additions and 3604 deletions

View file

@ -1,22 +1,32 @@
// Global Language Map
export const langMap: Record<string, string[]> = {
'zh': ['zh-CN'],
'zh-tw': ['zh-TW'],
'ja': ['ja-JP'],
'de': ['de-DE'],
'en': ['en-US'],
'es': ['es-ES'],
'fr': ['fr-FR'],
'ja': ['ja-JP'],
'ko': ['ko-KR'],
'pl': ['pl-PL'],
'pt': ['pt-BR'],
'ru': ['ru-RU'],
'zh': ['zh-CN'],
'zh-tw': ['zh-TW'],
}
// Waline Language Map
// https://waline.js.org/guide/i18n.html
// https://waline.js.org/en/guide/features/i18n.html
export const walineLocaleMap: Record<string, string> = {
'de': 'en-US', // fallback to English
'en': 'en-US',
'es': 'es',
'fr': 'fr-FR',
'ja': 'jp-JP',
'ko': 'en-US', // fallback to English
'pl': 'en-US', // fallback to English
'pt': 'pt-BR',
'ru': 'ru-RU',
'zh': 'zh-CN',
'zh-tw': 'zh-TW',
'ja': 'jp-JP', // Waline uses jp-JP not ja-JP
'en': 'en-US',
'es': 'es-ES',
'ru': 'ru-RU',
}
export const giscusLocaleMap: Record<string, string> = {