@devries-cameron20 / t3code-1 / commits / b823ddadd9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(i18n): catalogs match the source, with a CI check (#37954)

maria committed Nov 17, 2026 at 04:08 UTC b823ddadd9c98717130a439924082839f2b4a8fe
26 files changed +162 -33
.github/workflows/ci.yml
+3
@@ -113,6 +113,9 @@ jobs:
113 - name: Check generated Linear GraphQL operations
114 run: vp run --filter @t3tools/issue-tracker-linear generate --check
115
116 + - name: Check i18n catalogs
117 + run: vp run i18n:check
118 +
119 - name: Check
120 run: vp check
121
AGENTS.md
+1
@@ -73,6 +73,7 @@ The most common defect in this repo is a change that works on the path you teste
73 - **Contracts.** Anything crossing the wire is typed in `packages/contracts`. Change the schema and the server, web, mobile, and desktop all follow.
74 - **Reverse states.** If you added a way in, add the way out and the way to see it. Snooze needs unsnooze. Close needs reopen. A one-way door is a bug.
75 - **Connection modes.** Local, remote/relay, and tunnel behave differently. Multi-device and multi-environment cases are real.
76 +- **Languages.** User-facing text ships in every locale: translate new keys in `apps/{web,mobile}/src/i18n/translations` after `vp run i18n:generate` (`vp run i18n:check` gates it) and in `apps/marketing/src/i18n`.
77 - **Docs.** Check whether the change makes existing guidance inaccurate. Apply the [documentation rules](#documentation) before adding anything.
78
79 ## Dev servers
apps/mobile/index.ts
+2
@@ -8,6 +8,8 @@ import "react-native-gesture-handler";
8 import { LogBox } from "react-native";
9 import { featureFlags } from "react-native-screens";
10
11 +// Before any GT module initializes: GT validates locales with Intl APIs that Hermes lacks.
12 +import "./src/i18n/intl-polyfills";
13 import App from "./src/App";
14
15 // Enables iOS FormSheet sizing for nested native stacks in non-fitToContents sheets.
apps/mobile/src/features/settings/SettingsLanguageRouteScreen.tsx
+2 -1
@@ -3,7 +3,8 @@ import { useAtomSet, useAtomValue } from "@effect/atom-react";
3 import { AsyncResult } from "effect/reactivity";
4 import { useSafeAreaInsets } from "react-native-safe-area-context";
5
6 -import { I18nProvider, useGT, useLanguagePreference } from "../../i18n/I18nProvider";
6 +import { useGT } from "gt-react-native";
7 +import { I18nProvider, useLanguagePreference } from "../../i18n/I18nProvider";
8 import { SYSTEM_LANGUAGE, nativeLanguageName } from "@t3tools/client-runtime/locales";
9 import { SUPPORTED_LOCALES } from "../../i18n/locales";
10 import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
apps/mobile/src/features/settings/SettingsRouteScreen.tsx
+2 -1
@@ -33,7 +33,8 @@ import { useSettingsEnvironmentMenu } from "./components/SettingsEnvironmentFilt
33 import { useSettingsEnvironmentFilter } from "./settings-environment-filter";
34 import { filterSettingsSections } from "./settings-search";
35 import { usePaneRole } from "../../components/ui/Pane";
36 -import { I18nProvider, useGT } from "../../i18n/I18nProvider";
36 +import { useGT } from "gt-react-native";
37 +import { I18nProvider } from "../../i18n/I18nProvider";
38
39 export function SettingsRouteScreen() {
40 const list = useSettingsListPlacement();
apps/mobile/src/i18n/I18nProvider.tsx
-4
@@ -1,4 +1,3 @@
1 -import "./intl-polyfills";
1 import { resolveLocale } from "@t3tools/client-runtime/locales";
2 import { useAtomValue } from "@effect/atom-react";
3 import { AsyncResult } from "effect/reactivity";
@@ -17,9 +16,6 @@ import ptBR from "./translations/pt-BR.json";
16 import ru from "./translations/ru.json";
17 import zh from "./translations/zh.json";
18
20 -// Screens import GT from here so the polyfills above always load first.
21 -export { useGT } from "gt-react-native";
22 -
19 // Committed catalogs, so forks and offline installs never reach GT's CDN. English is the source.
20 const TRANSLATIONS: Readonly<Record<string, Record<string, string>>> = {
21 es,
apps/mobile/src/i18n/translations/de.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "Systemstandard",
2 "2c1c93a646bbea6e": "Sprache",
3 + "7eed14b9c7fd7661": "Systemstandard",
4 "0a75e464d833bca8": "Einstellungen",
5 "858561b97fdd72f2": "Einstellungen durchsuchen",
6 "79e4d73c1bc8cf45": "Wird geprüft",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Geplante Aufgaben",
26 "58058320796d28f6": "Code",
27 "cc84bfe0ee5d0174": "Projekte",
28 - "a4380762611c94e4": "Versionskontrolle",
28 + "0a59e086514a62a9": "Versionskontrolle & Issues",
29 "4889f7885396c26b": "Worktrees",
30 "79b768229c9ef672": "Wartung",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/en.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "System default",
2 "2c1c93a646bbea6e": "Language",
3 + "7eed14b9c7fd7661": "System default",
4 "0a75e464d833bca8": "Settings",
5 "858561b97fdd72f2": "Search settings",
6 "79e4d73c1bc8cf45": "Checking",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Scheduled tasks",
26 "58058320796d28f6": "Code",
27 "cc84bfe0ee5d0174": "Projects",
28 - "a4380762611c94e4": "Source control",
28 + "0a59e086514a62a9": "Source control & issues",
29 "4889f7885396c26b": "Worktrees",
30 "79b768229c9ef672": "Maintenance",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/es.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "Del sistema",
2 "2c1c93a646bbea6e": "Idioma",
3 + "7eed14b9c7fd7661": "Del sistema",
4 "0a75e464d833bca8": "Ajustes",
5 "858561b97fdd72f2": "Buscar ajustes",
6 "79e4d73c1bc8cf45": "Comprobando",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Tareas programadas",
26 "58058320796d28f6": "Código",
27 "cc84bfe0ee5d0174": "Proyectos",
28 - "a4380762611c94e4": "Control de versiones",
28 + "0a59e086514a62a9": "Versiones e incidencias",
29 "4889f7885396c26b": "Worktrees",
30 "79b768229c9ef672": "Mantenimiento",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/fr.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "Langue du système",
2 "2c1c93a646bbea6e": "Langue",
3 + "7eed14b9c7fd7661": "Langue du système",
4 "0a75e464d833bca8": "Réglages",
5 "858561b97fdd72f2": "Rechercher dans les réglages",
6 "79e4d73c1bc8cf45": "Vérification…",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Tâches planifiées",
26 "58058320796d28f6": "Code",
27 "cc84bfe0ee5d0174": "Projets",
28 - "a4380762611c94e4": "Gestion de versions",
28 + "0a59e086514a62a9": "Versions et tickets",
29 "4889f7885396c26b": "Worktrees",
30 "79b768229c9ef672": "Maintenance",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/ja.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "システムのデフォルト",
2 "2c1c93a646bbea6e": "言語",
3 + "7eed14b9c7fd7661": "システムのデフォルト",
4 "0a75e464d833bca8": "設定",
5 "858561b97fdd72f2": "設定を検索",
6 "79e4d73c1bc8cf45": "確認中",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "スケジュールタスク",
26 "58058320796d28f6": "コード",
27 "cc84bfe0ee5d0174": "プロジェクト",
28 - "a4380762611c94e4": "ソース管理",
28 + "0a59e086514a62a9": "ソース管理と課題",
29 "4889f7885396c26b": "ワークツリー",
30 "79b768229c9ef672": "メンテナンス",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/ko.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "시스템 기본값",
2 "2c1c93a646bbea6e": "언어",
3 + "7eed14b9c7fd7661": "시스템 기본값",
4 "0a75e464d833bca8": "설정",
5 "858561b97fdd72f2": "설정 검색",
6 "79e4d73c1bc8cf45": "확인 중",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "예약된 작업",
26 "58058320796d28f6": "코드",
27 "cc84bfe0ee5d0174": "프로젝트",
28 - "a4380762611c94e4": "소스 제어",
28 + "0a59e086514a62a9": "소스 제어 및 이슈",
29 "4889f7885396c26b": "워크트리",
30 "79b768229c9ef672": "유지 관리",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/pt-BR.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "Padrão do sistema",
2 "2c1c93a646bbea6e": "Idioma",
3 + "7eed14b9c7fd7661": "Padrão do sistema",
4 "0a75e464d833bca8": "Configurações",
5 "858561b97fdd72f2": "Buscar configurações",
6 "79e4d73c1bc8cf45": "Verificando",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Tarefas agendadas",
26 "58058320796d28f6": "Código",
27 "cc84bfe0ee5d0174": "Projetos",
28 - "a4380762611c94e4": "Controle de versão",
28 + "0a59e086514a62a9": "Versionamento e issues",
29 "4889f7885396c26b": "Worktrees",
30 "79b768229c9ef672": "Manutenção",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/ru.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "Как в системе",
2 "2c1c93a646bbea6e": "Язык",
3 + "7eed14b9c7fd7661": "Как в системе",
4 "0a75e464d833bca8": "Настройки",
5 "858561b97fdd72f2": "Поиск настроек",
6 "79e4d73c1bc8cf45": "Проверка…",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "Запланированные задачи",
26 "58058320796d28f6": "Код",
27 "cc84bfe0ee5d0174": "Проекты",
28 - "a4380762611c94e4": "Контроль версий",
28 + "0a59e086514a62a9": "Версии и задачи",
29 "4889f7885396c26b": "Рабочие деревья",
30 "79b768229c9ef672": "Обслуживание",
31 "54b188d65247e42f": "Labs",
apps/mobile/src/i18n/translations/zh.json
+2 -2
@@ -1,6 +1,6 @@
1 {
2 - "7eed14b9c7fd7661": "系统默认",
2 "2c1c93a646bbea6e": "语言",
3 + "7eed14b9c7fd7661": "系统默认",
4 "0a75e464d833bca8": "设置",
5 "858561b97fdd72f2": "搜索设置",
6 "79e4d73c1bc8cf45": "正在检查",
@@ -25,7 +25,7 @@
25 "2ab325baee3ec9a3": "定时任务",
26 "58058320796d28f6": "代码",
27 "cc84bfe0ee5d0174": "项目",
28 - "a4380762611c94e4": "源代码管理",
28 + "0a59e086514a62a9": "源代码管理与议题",
29 "4889f7885396c26b": "工作树",
30 "79b768229c9ef672": "维护",
31 "54b188d65247e42f": "Labs",
apps/web/src/i18n/translations/de.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Loslösen von Threads bestätigen",
22 "de0d79b74d3e4af6": "Archivieren von Threads bestätigen",
23 "4ab8a4878cd80c77": "Löschen von Threads bestätigen",
24 + "b210068e1f078ffa": "Schließen von Terminals bestätigen",
25 "0c853c878aab1908": "Beenden per Tastenkürzel",
26 "22e745b7db60e52f": "Anzeige",
27 "2c1c93a646bbea6e": "Sprache",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Vor dem Loslösen eines Threads aus dem Bereich „Angeheftet“ nachfragen.",
34 "41210f99adeeba78": "Einen zweiten Klick auf die Archivieren-Aktion verlangen, bevor ein Thread archiviert wird.",
35 "84f3d2cefc8d2a74": "Vor dem Löschen eines Threads samt Chatverlauf nachfragen.",
36 + "ca169211b232a6c4": "Vor dem Schließen von Terminals und dem Beenden ihrer laufenden Prozesse nachfragen.",
37 "3fc130f1e8170073": "Bei „Gedrückt halten“ beendet auch zweimaliges schnelles Drücken die App.",
38 "72c7fda6ae301e6d": "Systemstandard folgt der Sprache deines Browsers oder Betriebssystems.",
39 "b9ebecdb8db71466": "Systemstandard folgt dem Uhrzeitformat deines Browsers oder Betriebssystems.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Browser",
56 "9cc48e5c9ee46026": "Geräte",
57 "2ab325baee3ec9a3": "Geplante Aufgaben",
56 - "a4380762611c94e4": "Versionskontrolle",
58 + "0a59e086514a62a9": "Versionskontrolle & Issues",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Umgebungen",
61 "1de0df2b8a4fb96e": "Freigabe & Zugriff",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "Über",
66 "af4b7734da1d5ce7": "Spracheingabe",
67 "2a546119bf3879ee": "Archiv",
68 + "7cf24feddad00a5e": "Präferenzen",
69 "2632f324dc2d9c48": "Agenten",
70 "58058320796d28f6": "Code",
71 "1a07e4d043f5df4e": "Verbindungen",
72 + "bda5af471ef547e0": "Mehr",
73 "e5144f91364fd9b7": "Uhrzeitformat",
74 "7e4d81ca21a72019": "Loslösen bestätigen",
75 "1d5052cbe70d0b28": "Archivieren bestätigen",
76 "d5dd27a4eb853248": "Löschen bestätigen",
77 + "5503ef439beb8d42": "Bestätigung beim Schließen von Terminals",
78 "86b43caa9ff41ea2": "Tastenkürzel zum Beenden"
79 }
apps/web/src/i18n/translations/en.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Confirm thread unpinning",
22 "de0d79b74d3e4af6": "Confirm thread archiving",
23 "4ab8a4878cd80c77": "Confirm thread deletion",
24 + "b210068e1f078ffa": "Confirm terminal closing",
25 "0c853c878aab1908": "Quit shortcut behavior",
26 "22e745b7db60e52f": "Display",
27 "2c1c93a646bbea6e": "Language",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Ask before unpinning a thread from the pinned section.",
34 "41210f99adeeba78": "Require a second click on the inline archive action before a thread is archived.",
35 "84f3d2cefc8d2a74": "Ask before deleting a thread and its chat history.",
36 + "ca169211b232a6c4": "Ask before closing terminals and stopping their running processes.",
37 "3fc130f1e8170073": "Hold mode also quits on two quick presses.",
38 "72c7fda6ae301e6d": "System default follows your browser or OS language.",
39 "b9ebecdb8db71466": "System default follows your browser or OS clock preference.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Browser",
56 "9cc48e5c9ee46026": "Devices",
57 "2ab325baee3ec9a3": "Scheduled tasks",
56 - "a4380762611c94e4": "Source control",
58 + "0a59e086514a62a9": "Source control & issues",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Environments",
61 "1de0df2b8a4fb96e": "Sharing & access",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "About",
66 "af4b7734da1d5ce7": "Voice",
67 "2a546119bf3879ee": "Archive",
68 + "7cf24feddad00a5e": "Preferences",
69 "2632f324dc2d9c48": "Agents",
70 "58058320796d28f6": "Code",
71 "1a07e4d043f5df4e": "Connections",
72 + "bda5af471ef547e0": "More",
73 "e5144f91364fd9b7": "Time format",
74 "7e4d81ca21a72019": "Unpin confirmation",
75 "1d5052cbe70d0b28": "Archive confirmation",
76 "d5dd27a4eb853248": "Delete confirmation",
77 + "5503ef439beb8d42": "Terminal close confirmation",
78 "86b43caa9ff41ea2": "Quit shortcut"
79 }
apps/web/src/i18n/translations/es.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Confirmar al desfijar hilos",
22 "de0d79b74d3e4af6": "Confirmar al archivar hilos",
23 "4ab8a4878cd80c77": "Confirmar al eliminar hilos",
24 + "b210068e1f078ffa": "Confirmar al cerrar terminales",
25 "0c853c878aab1908": "Comportamiento del atajo para salir",
26 "22e745b7db60e52f": "Pantalla",
27 "2c1c93a646bbea6e": "Idioma",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Pregunta antes de desfijar un hilo de la sección de fijados.",
34 "41210f99adeeba78": "Pide un segundo clic en la acción de archivar antes de archivar un hilo.",
35 "84f3d2cefc8d2a74": "Pregunta antes de eliminar un hilo y su historial de chat.",
36 + "ca169211b232a6c4": "Pregunta antes de cerrar terminales y detener sus procesos en ejecución.",
37 "3fc130f1e8170073": "El modo mantener también sale con dos pulsaciones rápidas.",
38 "72c7fda6ae301e6d": "Del sistema usa el idioma de tu navegador o sistema operativo.",
39 "b9ebecdb8db71466": "Del sistema usa el formato de hora de tu navegador o sistema operativo.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Navegador",
56 "9cc48e5c9ee46026": "Dispositivos",
57 "2ab325baee3ec9a3": "Tareas programadas",
56 - "a4380762611c94e4": "Control de versiones",
58 + "0a59e086514a62a9": "Versiones e incidencias",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Entornos",
61 "1de0df2b8a4fb96e": "Compartir y acceso",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "Acerca de",
66 "af4b7734da1d5ce7": "Voz",
67 "2a546119bf3879ee": "Archivo",
68 + "7cf24feddad00a5e": "Preferencias",
69 "2632f324dc2d9c48": "Agentes",
70 "58058320796d28f6": "Código",
71 "1a07e4d043f5df4e": "Conexiones",
72 + "bda5af471ef547e0": "Más",
73 "e5144f91364fd9b7": "Formato de hora",
74 "7e4d81ca21a72019": "Confirmación al desfijar",
75 "1d5052cbe70d0b28": "Confirmación al archivar",
76 "d5dd27a4eb853248": "Confirmación al eliminar",
77 + "5503ef439beb8d42": "Confirmación al cerrar terminales",
78 "86b43caa9ff41ea2": "Atajo para salir"
79 }
apps/web/src/i18n/translations/fr.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Confirmer avant de désépingler un fil",
22 "de0d79b74d3e4af6": "Confirmer l'archivage des fils",
23 "4ab8a4878cd80c77": "Confirmer la suppression des fils",
24 + "b210068e1f078ffa": "Confirmer la fermeture des terminaux",
25 "0c853c878aab1908": "Comportement du raccourci Quitter",
26 "22e745b7db60e52f": "Affichage",
27 "2c1c93a646bbea6e": "Langue",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Demande confirmation avant de désépingler un fil.",
34 "41210f99adeeba78": "Exige un second clic sur le bouton d'archivage du fil avant de l'archiver.",
35 "84f3d2cefc8d2a74": "Demande confirmation avant de supprimer un fil et son historique de discussion.",
36 + "ca169211b232a6c4": "Demande confirmation avant de fermer des terminaux et d'arrêter leurs processus en cours.",
37 "3fc130f1e8170073": "En mode Appui long, un double appui rapide quitte aussi l'app.",
38 "72c7fda6ae301e6d": "L'option Système suit la langue de votre navigateur ou de votre OS.",
39 "b9ebecdb8db71466": "L'option Système suit le format de l'heure de votre navigateur ou de votre OS.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Navigateur",
56 "9cc48e5c9ee46026": "Appareils",
57 "2ab325baee3ec9a3": "Tâches planifiées",
56 - "a4380762611c94e4": "Gestion de versions",
58 + "0a59e086514a62a9": "Versions et tickets",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Environnements",
61 "1de0df2b8a4fb96e": "Partage et accès",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "À propos",
66 "af4b7734da1d5ce7": "Voix",
67 "2a546119bf3879ee": "Archives",
68 + "7cf24feddad00a5e": "Préférences",
69 "2632f324dc2d9c48": "Agents",
70 "58058320796d28f6": "Code",
71 "1a07e4d043f5df4e": "Connexions",
72 + "bda5af471ef547e0": "Plus",
73 "e5144f91364fd9b7": "Format de l'heure",
74 "7e4d81ca21a72019": "Confirmation avant de désépingler",
75 "1d5052cbe70d0b28": "Confirmation de l'archivage",
76 "d5dd27a4eb853248": "Confirmation de la suppression",
77 + "5503ef439beb8d42": "Confirmation de la fermeture des terminaux",
78 "86b43caa9ff41ea2": "Raccourci Quitter"
79 }
apps/web/src/i18n/translations/ja.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "スレッドのピン留め解除を確認",
22 "de0d79b74d3e4af6": "スレッドのアーカイブを確認",
23 "4ab8a4878cd80c77": "スレッドの削除を確認",
24 + "b210068e1f078ffa": "ターミナルを閉じる前に確認",
25 "0c853c878aab1908": "終了ショートカットの動作",
26 "22e745b7db60e52f": "表示",
27 "2c1c93a646bbea6e": "言語",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "スレッドのピン留めを解除する前に確認します。",
34 "41210f99adeeba78": "インラインのアーカイブボタンは、もう一度クリックするまでスレッドをアーカイブしません。",
35 "84f3d2cefc8d2a74": "スレッドとそのチャット履歴を削除する前に確認します。",
36 + "ca169211b232a6c4": "ターミナルを閉じて実行中のプロセスを停止する前に確認します。",
37 "3fc130f1e8170073": "長押しモードでも、すばやく 2 回押すと終了します。",
38 "72c7fda6ae301e6d": "「システムのデフォルト」を選ぶと、ブラウザーまたは OS の言語に従います。",
39 "b9ebecdb8db71466": "「システムのデフォルト」を選ぶと、ブラウザーまたは OS の時刻形式に従います。",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "ブラウザー",
56 "9cc48e5c9ee46026": "デバイス",
57 "2ab325baee3ec9a3": "スケジュール済みタスク",
56 - "a4380762611c94e4": "ソース管理",
58 + "0a59e086514a62a9": "ソース管理と課題",
59 "4889f7885396c26b": "ワークツリー",
60 "b5adbf54cbefee38": "環境",
61 "1de0df2b8a4fb96e": "共有とアクセス",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "情報",
66 "af4b7734da1d5ce7": "音声",
67 "2a546119bf3879ee": "アーカイブ",
68 + "7cf24feddad00a5e": "環境設定",
69 "2632f324dc2d9c48": "エージェント",
70 "58058320796d28f6": "コード",
71 "1a07e4d043f5df4e": "接続",
72 + "bda5af471ef547e0": "その他",
73 "e5144f91364fd9b7": "時刻の形式",
74 "7e4d81ca21a72019": "ピン留め解除の確認",
75 "1d5052cbe70d0b28": "アーカイブの確認",
76 "d5dd27a4eb853248": "削除の確認",
77 + "5503ef439beb8d42": "ターミナルを閉じる際の確認",
78 "86b43caa9ff41ea2": "終了ショートカット"
79 }
apps/web/src/i18n/translations/ko.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "스레드 고정 해제 확인",
22 "de0d79b74d3e4af6": "스레드 보관 확인",
23 "4ab8a4878cd80c77": "스레드 삭제 확인",
24 + "b210068e1f078ffa": "터미널 닫기 확인",
25 "0c853c878aab1908": "종료 단축키 동작",
26 "22e745b7db60e52f": "표시",
27 "2c1c93a646bbea6e": "언어",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "고정 섹션에서 스레드 고정을 해제하기 전에 확인을 요청합니다.",
34 "41210f99adeeba78": "인라인 보관 버튼을 한 번 더 클릭해야 스레드가 보관됩니다.",
35 "84f3d2cefc8d2a74": "스레드와 채팅 기록을 삭제하기 전에 확인을 요청합니다.",
36 + "ca169211b232a6c4": "터미널을 닫고 실행 중인 프로세스를 중지하기 전에 확인을 요청합니다.",
37 "3fc130f1e8170073": "길게 누르기 모드에서도 빠르게 두 번 누르면 종료됩니다.",
38 "72c7fda6ae301e6d": "시스템 기본값은 브라우저 또는 OS 언어를 따릅니다.",
39 "b9ebecdb8db71466": "시스템 기본값은 브라우저 또는 OS의 시간 형식 설정을 따릅니다.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "브라우저",
56 "9cc48e5c9ee46026": "기기",
57 "2ab325baee3ec9a3": "예약된 작업",
56 - "a4380762611c94e4": "소스 제어",
58 + "0a59e086514a62a9": "소스 제어 및 이슈",
59 "4889f7885396c26b": "워크트리",
60 "b5adbf54cbefee38": "환경",
61 "1de0df2b8a4fb96e": "공유 및 액세스",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "정보",
66 "af4b7734da1d5ce7": "음성",
67 "2a546119bf3879ee": "보관함",
68 + "7cf24feddad00a5e": "환경설정",
69 "2632f324dc2d9c48": "에이전트",
70 "58058320796d28f6": "코드",
71 "1a07e4d043f5df4e": "연결",
72 + "bda5af471ef547e0": "더 보기",
73 "e5144f91364fd9b7": "시간 형식",
74 "7e4d81ca21a72019": "고정 해제 확인",
75 "1d5052cbe70d0b28": "보관 확인",
76 "d5dd27a4eb853248": "삭제 확인",
77 + "5503ef439beb8d42": "터미널 닫기 확인",
78 "86b43caa9ff41ea2": "종료 단축키"
79 }
apps/web/src/i18n/translations/pt-BR.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Confirmar ao desafixar conversas",
22 "de0d79b74d3e4af6": "Confirmar ao arquivar conversas",
23 "4ab8a4878cd80c77": "Confirmar ao excluir conversas",
24 + "b210068e1f078ffa": "Confirmar ao fechar terminais",
25 "0c853c878aab1908": "Comportamento do atalho de saída",
26 "22e745b7db60e52f": "Exibição",
27 "2c1c93a646bbea6e": "Idioma",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Pergunta antes de desafixar uma conversa da seção de fixadas.",
34 "41210f99adeeba78": "Exige um segundo clique na ação de arquivar antes de arquivar uma conversa.",
35 "84f3d2cefc8d2a74": "Pergunta antes de excluir uma conversa e o histórico do chat.",
36 + "ca169211b232a6c4": "Pergunta antes de fechar terminais e encerrar os processos em execução.",
37 "3fc130f1e8170073": "O modo \"Manter pressionado\" também sai ao pressionar duas vezes rapidamente.",
38 "72c7fda6ae301e6d": "\"Padrão do sistema\" usa o idioma do navegador ou do sistema operacional.",
39 "b9ebecdb8db71466": "\"Padrão do sistema\" usa o formato de hora do navegador ou do sistema operacional.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Navegador",
56 "9cc48e5c9ee46026": "Dispositivos",
57 "2ab325baee3ec9a3": "Tarefas agendadas",
56 - "a4380762611c94e4": "Controle de versão",
58 + "0a59e086514a62a9": "Versionamento e issues",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Ambientes",
61 "1de0df2b8a4fb96e": "Compartilhamento e acesso",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "Sobre",
66 "af4b7734da1d5ce7": "Voz",
67 "2a546119bf3879ee": "Arquivadas",
68 + "7cf24feddad00a5e": "Preferências",
69 "2632f324dc2d9c48": "Agentes",
70 "58058320796d28f6": "Código",
71 "1a07e4d043f5df4e": "Conexões",
72 + "bda5af471ef547e0": "Mais",
73 "e5144f91364fd9b7": "Formato de hora",
74 "7e4d81ca21a72019": "Confirmação ao desafixar",
75 "1d5052cbe70d0b28": "Confirmação ao arquivar",
76 "d5dd27a4eb853248": "Confirmação ao excluir",
77 + "5503ef439beb8d42": "Confirmação ao fechar terminais",
78 "86b43caa9ff41ea2": "Atalho de saída"
79 }
apps/web/src/i18n/translations/ru.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "Подтверждать открепление тредов",
22 "de0d79b74d3e4af6": "Подтверждать архивацию тредов",
23 "4ab8a4878cd80c77": "Подтверждать удаление тредов",
24 + "b210068e1f078ffa": "Подтверждать закрытие терминалов",
25 "0c853c878aab1908": "Выход по сочетанию клавиш",
26 "22e745b7db60e52f": "Отображение",
27 "2c1c93a646bbea6e": "Язык",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "Запрашивает подтверждение перед откреплением треда.",
34 "41210f99adeeba78": "Требует повторного нажатия на кнопку архивации в строке, прежде чем тред будет архивирован.",
35 "84f3d2cefc8d2a74": "Запрашивает подтверждение перед удалением треда и его истории.",
36 + "ca169211b232a6c4": "Запрашивает подтверждение перед закрытием терминалов и остановкой запущенных в них процессов.",
37 "3fc130f1e8170073": "В режиме удержания выход также срабатывает по двойному нажатию.",
38 "72c7fda6ae301e6d": "«Как в системе» использует язык браузера или ОС.",
39 "b9ebecdb8db71466": "«Как в системе» использует формат времени браузера или ОС.",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "Браузер",
56 "9cc48e5c9ee46026": "Устройства",
57 "2ab325baee3ec9a3": "Запланированные задачи",
56 - "a4380762611c94e4": "Контроль версий",
58 + "0a59e086514a62a9": "Версии и задачи",
59 "4889f7885396c26b": "Worktrees",
60 "b5adbf54cbefee38": "Окружения",
61 "1de0df2b8a4fb96e": "Общий доступ",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "О программе",
66 "af4b7734da1d5ce7": "Голос",
67 "2a546119bf3879ee": "Архив",
68 + "7cf24feddad00a5e": "Параметры",
69 "2632f324dc2d9c48": "Агенты",
70 "58058320796d28f6": "Код",
71 "1a07e4d043f5df4e": "Подключения",
72 + "bda5af471ef547e0": "Ещё",
73 "e5144f91364fd9b7": "Формат времени",
74 "7e4d81ca21a72019": "Подтверждение открепления",
75 "1d5052cbe70d0b28": "Подтверждение архивации",
76 "d5dd27a4eb853248": "Подтверждение удаления",
77 + "5503ef439beb8d42": "Подтверждение закрытия терминалов",
78 "86b43caa9ff41ea2": "Сочетание клавиш для выхода"
79 }
apps/web/src/i18n/translations/zh.json
+6 -1
@@ -21,6 +21,7 @@
21 "859e386f8af841f0": "取消置顶线程前确认",
22 "de0d79b74d3e4af6": "归档线程前确认",
23 "4ab8a4878cd80c77": "删除线程前确认",
24 + "b210068e1f078ffa": "关闭终端前确认",
25 "0c853c878aab1908": "退出快捷键行为",
26 "22e745b7db60e52f": "显示",
27 "2c1c93a646bbea6e": "语言",
@@ -32,6 +33,7 @@
33 "e815f49e5abedcfd": "从置顶分区取消置顶线程前询问。",
34 "41210f99adeeba78": "归档线程前需要再次点击行内归档按钮。",
35 "84f3d2cefc8d2a74": "删除线程及其聊天记录前询问。",
36 + "ca169211b232a6c4": "关闭终端并停止其中正在运行的进程前询问。",
37 "3fc130f1e8170073": "长按模式下,快速按两次也会退出。",
38 "72c7fda6ae301e6d": "系统默认跟随浏览器或操作系统的语言。",
39 "b9ebecdb8db71466": "系统默认跟随浏览器或操作系统的时钟偏好。",
@@ -53,7 +55,7 @@
55 "795854feef8d2f52": "浏览器",
56 "9cc48e5c9ee46026": "设备",
57 "2ab325baee3ec9a3": "计划任务",
56 - "a4380762611c94e4": "源代码管理",
58 + "0a59e086514a62a9": "源代码管理与议题",
59 "4889f7885396c26b": "工作树",
60 "b5adbf54cbefee38": "环境",
61 "1de0df2b8a4fb96e": "共享与访问",
@@ -63,12 +65,15 @@
65 "f41ea186c275b56e": "关于",
66 "af4b7734da1d5ce7": "语音",
67 "2a546119bf3879ee": "归档",
68 + "7cf24feddad00a5e": "偏好设置",
69 "2632f324dc2d9c48": "代理",
70 "58058320796d28f6": "代码",
71 "1a07e4d043f5df4e": "连接",
72 + "bda5af471ef547e0": "更多",
73 "e5144f91364fd9b7": "时间格式",
74 "7e4d81ca21a72019": "取消置顶确认",
75 "1d5052cbe70d0b28": "归档确认",
76 "d5dd27a4eb853248": "删除确认",
77 + "5503ef439beb8d42": "关闭终端确认",
78 "86b43caa9ff41ea2": "退出快捷键"
79 }
package.json
+1
@@ -19,6 +19,7 @@
19 "screenshots:mobile": "node scripts/mobile-showcase.ts",
20 "icons:export": "node scripts/export-brand-icons.ts",
21 "icons:check": "node scripts/export-brand-icons.ts --check",
22 + "i18n:check": "node scripts/i18n-check.ts",
23 "licenses:sync": "node scripts/sync-third-party-license-notices.ts",
24 "icons:export:android": "node scripts/export-android-icons.ts",
25 "build": "vp run --filter './apps/*' build",
scripts/i18n-check.ts new
+79
@@ -0,0 +1,79 @@
1 +#!/usr/bin/env node
2 +// @effect-diagnostics nodeBuiltinImport:off globalConsole:off - A one-shot CI check; synchronous Node APIs keep it small.
3 +// Fails when a committed GT catalog drifts from the source: `gt generate` would write a different
4 +// en.json, or a locale catalog's keys differ from en.json. Needs no GT credentials or network.
5 +import * as NodeChildProcess from "node:child_process";
6 +import * as NodeFS from "node:fs";
7 +import * as NodeOS from "node:os";
8 +import * as NodePath from "node:path";
9 +
10 +const APPS = ["apps/web", "apps/mobile"];
11 +
12 +type Catalog = Record<string, string>;
13 +const readJson = (file: string) => JSON.parse(NodeFS.readFileSync(file, "utf8"));
14 +const missingFrom = (from: Catalog, catalog: Catalog) =>
15 + Object.keys(from).filter((key) => !Object.hasOwn(catalog, key));
16 +
17 +const root = NodePath.resolve(import.meta.dirname, "..");
18 +const problems: string[] = [];
19 +
20 +for (const app of APPS) {
21 + const appDir = NodePath.join(root, app);
22 + const config = readJson(NodePath.join(appDir, "gt.config.json"));
23 + const catalogDir = NodePath.join(appDir, NodePath.dirname(config.files.gt.output));
24 + const source: Catalog = readJson(NodePath.join(catalogDir, `${config.defaultLocale}.json`));
25 +
26 + // Same scan as `vp run i18n:generate`, but it writes only the source catalog, to a temp dir.
27 + const tmp = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "i18n-check-"));
28 + try {
29 + const tmpConfig = NodePath.join(tmp, "gt.config.json");
30 + NodeFS.writeFileSync(
31 + tmpConfig,
32 + JSON.stringify({ ...config, locales: [], files: { gt: { output: `${tmp}/[locale].json` } } }),
33 + );
34 + const gt = NodeChildProcess.spawnSync(
35 + NodePath.join(appDir, "node_modules/.bin/gt"),
36 + ["generate", "--config", tmpConfig],
37 + { cwd: appDir, encoding: "utf8" },
38 + );
39 + if (gt.status !== 0) {
40 + problems.push(`${app}: gt generate failed\n${gt.stdout}${gt.stderr}`);
41 + continue;
42 + }
43 + const generated: Catalog = readJson(NodePath.join(tmp, `${config.defaultLocale}.json`));
44 + for (const [key, text] of Object.entries(generated)) {
45 + if (!Object.hasOwn(source, key)) {
46 + problems.push(`${app}: ${key} ${JSON.stringify(text)} is missing from en.json`);
47 + } else if (source[key] !== text) {
48 + problems.push(
49 + `${app}: en.json has ${key} ${JSON.stringify(source[key])}, source says ${JSON.stringify(text)}`,
50 + );
51 + }
52 + }
53 + for (const key of missingFrom(source, generated)) {
54 + problems.push(`${app}: ${key} ${JSON.stringify(source[key])} in en.json is stale`);
55 + }
56 + } finally {
57 + NodeFS.rmSync(tmp, { recursive: true, force: true });
58 + }
59 +
60 + for (const locale of config.locales) {
61 + const catalog: Catalog = readJson(NodePath.join(catalogDir, `${locale}.json`));
62 + for (const key of missingFrom(source, catalog)) {
63 + problems.push(`${app}: ${locale}.json is missing ${key} ${JSON.stringify(source[key])}`);
64 + }
65 + for (const key of missingFrom(catalog, source)) {
66 + problems.push(`${app}: ${locale}.json has ${key}, which en.json lacks`);
67 + }
68 + }
69 +}
70 +
71 +if (problems.length > 0) {
72 + console.error(problems.join("\n"));
73 + console.error(
74 + "\nRun `vp run i18n:generate` in the app, then translate any new keys in every locale catalog.",
75 + );
76 + process.exitCode = 1;
77 +} else {
78 + console.log(`i18n catalogs match the source in ${APPS.join(", ")}.`);
79 +}