feat: giscus i18n

This commit is contained in:
shinya 2025-04-07 01:17:25 +08:00
parent 81ca27689f
commit 4c7a74c6c8
No known key found for this signature in database
GPG key ID: A27DBCC544F50A01
3 changed files with 25 additions and 5 deletions

View file

@ -19,5 +19,14 @@ export const walineLocaleMap: Record<string, string> = {
'ru': 'ru-RU',
}
export const giscusLocaleMap: Record<string, string> = {
'zh': 'zh-CN',
'zh-tw': 'zh-TW',
'ja': 'ja',
'en': 'en',
'es': 'es',
'ru': 'ru',
}
// Supported Languages
export const supportedLangs = Object.keys(langMap).flat()