feat(localization): added zh_TW (#2913)

* feat(localization): added zh_TW

* fixed based on @coderabbitai

* updated false translation for zh_TW

* new workflow

* revert

* fixed a lot of translations

* turned most zh to zh-CN

* fallbacklang

* bruh

* eliminate ALL _

* fix: paths and other miscs thanks @Calcium-Ion

* fixed translation and temp fix for preferencessettings.js

* fixed translation error

* fixed issue about legacy support

* reverted stupid coderabbit's suggestion
This commit is contained in:
Oliver Tzeng
2026-02-11 20:37:53 +08:00
committed by GitHub
parent fb5bc7c4f2
commit 6597610395
15 changed files with 3724 additions and 180 deletions

View File

@@ -29,7 +29,7 @@ const (
func normalizeLocale(locale string) (string, bool) {
l := strings.ToLower(strings.TrimSpace(locale))
switch l {
case "en", "zh", "ja":
case "en", "zh-CN", "zh-TW", "ja":
return l, true
default:
return "", false