From 17028589c8b41386a8a3c604a30cc0498d409912 Mon Sep 17 00:00:00 2001 From: logikonline Date: Tue, 17 Mar 2026 21:50:15 -0400 Subject: [PATCH] fix(i18n): use native language names in display map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace English language names with native names for better UX (e.g., "日本語" instead of "Japanese", "Español" instead of "Espanol"). Adds proper diacritics and uses native scripts. Makes language selection more intuitive for non-English speakers. --- modules/pages/config.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/pages/config.go b/modules/pages/config.go index e57ae40631..0cc47cf2f4 100644 --- a/modules/pages/config.go +++ b/modules/pages/config.go @@ -336,24 +336,24 @@ type I18nConfig struct { Languages []string `yaml:"languages,omitempty" json:"languages,omitempty"` } -// LanguageDisplayNames returns a map of language codes to display names +// LanguageDisplayNames returns a map of language codes to native display names func LanguageDisplayNames() map[string]string { return map[string]string{ "en": "English", - "es": "Espanol", + "es": "Español", "de": "Deutsch", - "fr": "Francais", - "ja": "Japanese", - "zh": "Chinese", - "pt": "Portugues", - "ru": "Russian", - "ko": "Korean", + "fr": "Français", + "ja": "日本語", + "zh": "中文", + "pt": "Português", + "ru": "Русский", + "ko": "한국어", "it": "Italiano", - "hi": "Hindi", - "ar": "Arabic", + "hi": "हिन्दी", + "ar": "العربية", "nl": "Nederlands", "pl": "Polski", - "tr": "Turkish", + "tr": "Türkçe", } }