tools: align locale diagnostics and generate native language names
Validate / Validate (push) Successful in 2m46s

This commit is contained in:
KenanZhu committed 2026-10-14 00:01:40 +08:00
1 parent b8089e8a7e
commit d99c5d1dc5
13 files changed
+170 -46

No files matched your search

+6 -1
View File
@@ -11,7 +11,12 @@ import (
// TrN keys. Dynamic translation keys require an explicit adapter review.
func ReferencedKeys(s *Snapshot) ([]string, error) {
fns := template.FuncMap{}
for _, name := range []string{"AppUrl", "AppName", "AppDomain", "DotEscape", "QueryEscape", "ShortSha", "HTMLFormat", "PathEscapeSegments", "FormatByteSize", "Dict", "dict", "StringUtils", "SliceUtils", "JsonUtils", "QueryBuild", "PathEscape", "SanitizeHTML"} {
for _, name := range []string{
"AppUrl", "AppName", "AppDomain", "DotEscape", "QueryEscape",
"ShortSha", "HTMLFormat", "PathEscapeSegments", "FormatByteSize",
"Dict", "dict", "StringUtils", "SliceUtils", "JsonUtils", "QueryBuild",
"PathEscape", "SanitizeHTML"} {
fns[name] = func(...any) string { return "" }
}
keys := map[string]bool{}