chore: fix waline language switching exceptions, remove unused global variables, update theme guide

This commit is contained in:
radishzzz 2025-05-26 00:25:46 +01:00
parent 488d539374
commit ab9bb91f52
9 changed files with 33 additions and 42 deletions

View file

@ -16,15 +16,15 @@ export const langMap: Record<string, string[]> = {
// Waline Language Map
// https://waline.js.org/en/guide/features/i18n.html
export const walineLocaleMap: Record<string, string> = {
'de': 'de',
'en': 'en',
'de': 'en-US', // fallback to English
'en': 'en-US',
'es': 'es',
'fr': 'fr',
'ja': 'jp',
'ko': 'en', // Waline does not support Korean, using English as fallback
'pl': 'en', // Waline does not support Polish, using English as fallback
'fr': 'fr-FR',
'ja': 'jp-JP',
'ko': 'en-US', // fallback to English
'pl': 'en-US', // fallback to English
'pt': 'pt-BR',
'ru': 'ru',
'ru': 'ru-RU',
'zh': 'zh-CN',
'zh-tw': 'zh-TW',
}