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:
co-authored by
Claude Opus 5.5
parent
4f11f939a0
commit
f1f9c6156c
@@ -226,6 +226,17 @@ try {
|
||||
if (!shared.startsWith("https://t.me/share/url?url=")) throw new Error("share link = " + shared);
|
||||
await shot(page, "me");
|
||||
});
|
||||
await run("switching the language changes the app", async () => {
|
||||
await page.getByLabel("Language", { exact: true }).selectOption("es");
|
||||
await tab(page, "Inicio").waitFor();
|
||||
await page.getByText("Invita a tus amigos").waitFor();
|
||||
if ((await page.evaluate(() => document.documentElement.lang)) !== "es") throw new Error("html lang was not updated");
|
||||
await shot(page, "me-spanish");
|
||||
await page.getByLabel("Idioma", { exact: true }).selectOption("nl");
|
||||
await tab(page, "Start").waitFor();
|
||||
await page.getByLabel("Taal", { exact: true }).selectOption("");
|
||||
await tab(page, "Home").waitFor();
|
||||
});
|
||||
await page.context().close();
|
||||
|
||||
await run("a member who is not an admin sees no groups", async () => {
|
||||
|
||||
Reference in New Issue
Block a user