v0.248.0: i18n slice 1 release A — apps and settings in English, Hungarian byte-identical (R-556)
gates / gates (push) Successful in 20s
gates / gates (push) Successful in 20s
Ten pages converted against fixtures captured from unconverted templates (6be55a0); marker
coverage test; English page mask narrowed; English retrieval-promise stems; common keys;
title keys and infraMeta from the bundle; old wording tests read the Hungarian expansion.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -129,6 +129,22 @@ func (s *Server) localeFuncs(lang string) template.FuncMap {
|
||||
}
|
||||
return lt.Format("2006-01-02") + " " + hm
|
||||
},
|
||||
// infraMeta: the protected infra stacks' curated identity (inframeta.go). Names that are product
|
||||
// names stay; descriptions — and samba's display name — come from the bundle.
|
||||
"infraMeta": func(name string) *InfraMeta {
|
||||
m := infraMetaFor(name)
|
||||
if m == nil {
|
||||
return nil
|
||||
}
|
||||
out := *m
|
||||
if v, _, ok := b.Text(lang, "func.infra."+name+".description"); ok {
|
||||
out.Description = v
|
||||
}
|
||||
if v, _, ok := b.Text(lang, "func.infra."+name+".display"); ok {
|
||||
out.DisplayName = v
|
||||
}
|
||||
return &out
|
||||
},
|
||||
"statusText": func(status string) string {
|
||||
switch status {
|
||||
case "pending", "restoring", "done", "failed", "skipped":
|
||||
|
||||
Reference in New Issue
Block a user