Phase 7: languages

- Complete Spanish (neutral Latin American, Paraguay friendly, no
  inverted marks) and Dutch catalogs, including the Mini App and owner texts
- Command menus per language in three scopes (private, group members,
  group admins); per-chat menus follow a user's /language and a group's
  /grouplang, from chat and from the Mini App
- Bot name, description and short description per language, sent only
  when the catalog text changes (TELEGRAM_SET_PROFILE)
- Dates from the catalog, numbers, sizes and durations per locale
- Pseudo-locale en-XA generated from English (I18N_PSEUDO), owners only
- Catalog checks: completeness, placeholders, tags, commands, plurals,
  Telegram length limits, untranslated text, unused and missing IDs
- CI workflow; make i18n-check; docs/TRANSLATING.md
- Test fix: the queued-download helper could match another chat's status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michilis
2026-11-18 17:42:31 +00:00
co-authored by Claude Opus 5.5
parent 4f11f939a0
commit f1f9c6156c
27 changed files with 3217 additions and 71 deletions
-23
View File
@@ -778,29 +778,6 @@ func TestRestartResumesQueuedJob(t *testing.T) {
h.waitJobs(db.JobDone, 1)
}
func TestCommandMenuIsRegistered(t *testing.T) {
h := start(t, nil, nil)
calls := h.srv.Calls("setMyCommands")
if len(calls) == 0 {
t.Fatal("setMyCommands was not called")
}
var cmds []struct {
Command string `json:"command"`
Description string `json:"description"`
}
if err := json.Unmarshal([]byte(calls[0].Params["commands"]), &cmds); err != nil {
t.Fatal(err)
}
if len(cmds) != 10 || cmds[0].Command != "dl" || cmds[0].Description != "Download a video from a link" {
t.Fatalf("commands = %+v", cmds)
}
for _, c := range cmds {
if c.Command != strings.ToLower(c.Command) || strings.HasPrefix(c.Description, "menu.") {
t.Errorf("bad menu entry %+v", c)
}
}
}
func TestHealthEndpoint(t *testing.T) {
h := start(t, nil, nil)
resp, err := http.Get("http://" + h.app.HTTP.Addr() + "/healthz")