Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ jobs:
- name: Check generated Linear GraphQL operations
run: vp run --filter @t3tools/issue-tracker-linear generate --check

- name: Check i18n catalogs
run: vp run i18n:check

- name: Check
run: vp check

Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ The most common defect in this repo is a change that works on the path you teste
- **Contracts.** Anything crossing the wire is typed in `packages/contracts`. Change the schema and the server, web, mobile, and desktop all follow.
- **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.
- **Connection modes.** Local, remote/relay, and tunnel behave differently. Multi-device and multi-environment cases are real.
- **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`.
- **Docs.** Check whether the change makes existing guidance inaccurate. Apply the [documentation rules](#documentation) before adding anything.

## Dev servers
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "react-native-gesture-handler";
import { LogBox } from "react-native";
import { featureFlags } from "react-native-screens";

// Before any GT module initializes: GT validates locales with Intl APIs that Hermes lacks.
import "./src/i18n/intl-polyfills";
import App from "./src/App";

// Enables iOS FormSheet sizing for nested native stacks in non-fitToContents sheets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { useAtomSet, useAtomValue } from "@effect/atom-react";
import { AsyncResult } from "effect/reactivity";
import { useSafeAreaInsets } from "react-native-safe-area-context";

import { I18nProvider, useGT, useLanguagePreference } from "../../i18n/I18nProvider";
import { useGT } from "gt-react-native";
import { I18nProvider, useLanguagePreference } from "../../i18n/I18nProvider";
import { SYSTEM_LANGUAGE, nativeLanguageName } from "@t3tools/client-runtime/locales";
import { SUPPORTED_LOCALES } from "../../i18n/locales";
import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
Expand Down
3 changes: 2 additions & 1 deletion apps/mobile/src/features/settings/SettingsRouteScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import { useSettingsEnvironmentMenu } from "./components/SettingsEnvironmentFilt
import { useSettingsEnvironmentFilter } from "./settings-environment-filter";
import { filterSettingsSections } from "./settings-search";
import { usePaneRole } from "../../components/ui/Pane";
import { I18nProvider, useGT } from "../../i18n/I18nProvider";
import { useGT } from "gt-react-native";
import { I18nProvider } from "../../i18n/I18nProvider";

export function SettingsRouteScreen() {
const list = useSettingsListPlacement();
Expand Down
4 changes: 0 additions & 4 deletions apps/mobile/src/i18n/I18nProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "./intl-polyfills";
import { resolveLocale } from "@t3tools/client-runtime/locales";
import { useAtomValue } from "@effect/atom-react";
import { AsyncResult } from "effect/reactivity";
Expand All @@ -17,9 +16,6 @@ import ptBR from "./translations/pt-BR.json";
import ru from "./translations/ru.json";
import zh from "./translations/zh.json";

// Screens import GT from here so the polyfills above always load first.
export { useGT } from "gt-react-native";

// Committed catalogs, so forks and offline installs never reach GT's CDN. English is the source.
const TRANSLATIONS: Readonly<Record<string, Record<string, string>>> = {
es,
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/de.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "Systemstandard",
"2c1c93a646bbea6e": "Sprache",
"7eed14b9c7fd7661": "Systemstandard",
"0a75e464d833bca8": "Einstellungen",
"858561b97fdd72f2": "Einstellungen durchsuchen",
"79e4d73c1bc8cf45": "Wird geprüft",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Geplante Aufgaben",
"58058320796d28f6": "Code",
"cc84bfe0ee5d0174": "Projekte",
"a4380762611c94e4": "Versionskontrolle",
"0a59e086514a62a9": "Versionskontrolle & Issues",
"4889f7885396c26b": "Worktrees",
"79b768229c9ef672": "Wartung",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "System default",
"2c1c93a646bbea6e": "Language",
"7eed14b9c7fd7661": "System default",
"0a75e464d833bca8": "Settings",
"858561b97fdd72f2": "Search settings",
"79e4d73c1bc8cf45": "Checking",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Scheduled tasks",
"58058320796d28f6": "Code",
"cc84bfe0ee5d0174": "Projects",
"a4380762611c94e4": "Source control",
"0a59e086514a62a9": "Source control & issues",
"4889f7885396c26b": "Worktrees",
"79b768229c9ef672": "Maintenance",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "Del sistema",
"2c1c93a646bbea6e": "Idioma",
"7eed14b9c7fd7661": "Del sistema",
"0a75e464d833bca8": "Ajustes",
"858561b97fdd72f2": "Buscar ajustes",
"79e4d73c1bc8cf45": "Comprobando",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Tareas programadas",
"58058320796d28f6": "Código",
"cc84bfe0ee5d0174": "Proyectos",
"a4380762611c94e4": "Control de versiones",
"0a59e086514a62a9": "Versiones e incidencias",
"4889f7885396c26b": "Worktrees",
"79b768229c9ef672": "Mantenimiento",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "Langue du système",
"2c1c93a646bbea6e": "Langue",
"7eed14b9c7fd7661": "Langue du système",
"0a75e464d833bca8": "Réglages",
"858561b97fdd72f2": "Rechercher dans les réglages",
"79e4d73c1bc8cf45": "Vérification…",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Tâches planifiées",
"58058320796d28f6": "Code",
"cc84bfe0ee5d0174": "Projets",
"a4380762611c94e4": "Gestion de versions",
"0a59e086514a62a9": "Versions et tickets",
"4889f7885396c26b": "Worktrees",
"79b768229c9ef672": "Maintenance",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/ja.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "システムのデフォルト",
"2c1c93a646bbea6e": "言語",
"7eed14b9c7fd7661": "システムのデフォルト",
"0a75e464d833bca8": "設定",
"858561b97fdd72f2": "設定を検索",
"79e4d73c1bc8cf45": "確認中",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "スケジュールタスク",
"58058320796d28f6": "コード",
"cc84bfe0ee5d0174": "プロジェクト",
"a4380762611c94e4": "ソース管理",
"0a59e086514a62a9": "ソース管理と課題",
"4889f7885396c26b": "ワークツリー",
"79b768229c9ef672": "メンテナンス",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/ko.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "시스템 기본값",
"2c1c93a646bbea6e": "언어",
"7eed14b9c7fd7661": "시스템 기본값",
"0a75e464d833bca8": "설정",
"858561b97fdd72f2": "설정 검색",
"79e4d73c1bc8cf45": "확인 중",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "예약된 작업",
"58058320796d28f6": "코드",
"cc84bfe0ee5d0174": "프로젝트",
"a4380762611c94e4": "소스 제어",
"0a59e086514a62a9": "소스 제어 및 이슈",
"4889f7885396c26b": "워크트리",
"79b768229c9ef672": "유지 관리",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/pt-BR.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "Padrão do sistema",
"2c1c93a646bbea6e": "Idioma",
"7eed14b9c7fd7661": "Padrão do sistema",
"0a75e464d833bca8": "Configurações",
"858561b97fdd72f2": "Buscar configurações",
"79e4d73c1bc8cf45": "Verificando",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Tarefas agendadas",
"58058320796d28f6": "Código",
"cc84bfe0ee5d0174": "Projetos",
"a4380762611c94e4": "Controle de versão",
"0a59e086514a62a9": "Versionamento e issues",
"4889f7885396c26b": "Worktrees",
"79b768229c9ef672": "Manutenção",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "Как в системе",
"2c1c93a646bbea6e": "Язык",
"7eed14b9c7fd7661": "Как в системе",
"0a75e464d833bca8": "Настройки",
"858561b97fdd72f2": "Поиск настроек",
"79e4d73c1bc8cf45": "Проверка…",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "Запланированные задачи",
"58058320796d28f6": "Код",
"cc84bfe0ee5d0174": "Проекты",
"a4380762611c94e4": "Контроль версий",
"0a59e086514a62a9": "Версии и задачи",
"4889f7885396c26b": "Рабочие деревья",
"79b768229c9ef672": "Обслуживание",
"54b188d65247e42f": "Labs",
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/i18n/translations/zh.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"7eed14b9c7fd7661": "系统默认",
"2c1c93a646bbea6e": "语言",
"7eed14b9c7fd7661": "系统默认",
"0a75e464d833bca8": "设置",
"858561b97fdd72f2": "搜索设置",
"79e4d73c1bc8cf45": "正在检查",
Expand All @@ -25,7 +25,7 @@
"2ab325baee3ec9a3": "定时任务",
"58058320796d28f6": "代码",
"cc84bfe0ee5d0174": "项目",
"a4380762611c94e4": "源代码管理",
"0a59e086514a62a9": "源代码管理与议题",
"4889f7885396c26b": "工作树",
"79b768229c9ef672": "维护",
"54b188d65247e42f": "Labs",
Expand Down
7 changes: 6 additions & 1 deletion apps/web/src/i18n/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"859e386f8af841f0": "Loslösen von Threads bestätigen",
"de0d79b74d3e4af6": "Archivieren von Threads bestätigen",
"4ab8a4878cd80c77": "Löschen von Threads bestätigen",
"b210068e1f078ffa": "Schließen von Terminals bestätigen",
"0c853c878aab1908": "Beenden per Tastenkürzel",
"22e745b7db60e52f": "Anzeige",
"2c1c93a646bbea6e": "Sprache",
Expand All @@ -32,6 +33,7 @@
"e815f49e5abedcfd": "Vor dem Loslösen eines Threads aus dem Bereich „Angeheftet“ nachfragen.",
"41210f99adeeba78": "Einen zweiten Klick auf die Archivieren-Aktion verlangen, bevor ein Thread archiviert wird.",
"84f3d2cefc8d2a74": "Vor dem Löschen eines Threads samt Chatverlauf nachfragen.",
"ca169211b232a6c4": "Vor dem Schließen von Terminals und dem Beenden ihrer laufenden Prozesse nachfragen.",
"3fc130f1e8170073": "Bei „Gedrückt halten“ beendet auch zweimaliges schnelles Drücken die App.",
"72c7fda6ae301e6d": "Systemstandard folgt der Sprache deines Browsers oder Betriebssystems.",
"b9ebecdb8db71466": "Systemstandard folgt dem Uhrzeitformat deines Browsers oder Betriebssystems.",
Expand All @@ -53,7 +55,7 @@
"795854feef8d2f52": "Browser",
"9cc48e5c9ee46026": "Geräte",
"2ab325baee3ec9a3": "Geplante Aufgaben",
"a4380762611c94e4": "Versionskontrolle",
"0a59e086514a62a9": "Versionskontrolle & Issues",
"4889f7885396c26b": "Worktrees",
"b5adbf54cbefee38": "Umgebungen",
"1de0df2b8a4fb96e": "Freigabe & Zugriff",
Expand All @@ -63,12 +65,15 @@
"f41ea186c275b56e": "Über",
"af4b7734da1d5ce7": "Spracheingabe",
"2a546119bf3879ee": "Archiv",
"7cf24feddad00a5e": "Präferenzen",
"2632f324dc2d9c48": "Agenten",
"58058320796d28f6": "Code",
"1a07e4d043f5df4e": "Verbindungen",
"bda5af471ef547e0": "Mehr",
"e5144f91364fd9b7": "Uhrzeitformat",
"7e4d81ca21a72019": "Loslösen bestätigen",
"1d5052cbe70d0b28": "Archivieren bestätigen",
"d5dd27a4eb853248": "Löschen bestätigen",
"5503ef439beb8d42": "Bestätigung beim Schließen von Terminals",
"86b43caa9ff41ea2": "Tastenkürzel zum Beenden"
}
7 changes: 6 additions & 1 deletion apps/web/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"859e386f8af841f0": "Confirm thread unpinning",
"de0d79b74d3e4af6": "Confirm thread archiving",
"4ab8a4878cd80c77": "Confirm thread deletion",
"b210068e1f078ffa": "Confirm terminal closing",
"0c853c878aab1908": "Quit shortcut behavior",
"22e745b7db60e52f": "Display",
"2c1c93a646bbea6e": "Language",
Expand All @@ -32,6 +33,7 @@
"e815f49e5abedcfd": "Ask before unpinning a thread from the pinned section.",
"41210f99adeeba78": "Require a second click on the inline archive action before a thread is archived.",
"84f3d2cefc8d2a74": "Ask before deleting a thread and its chat history.",
"ca169211b232a6c4": "Ask before closing terminals and stopping their running processes.",
"3fc130f1e8170073": "Hold mode also quits on two quick presses.",
"72c7fda6ae301e6d": "System default follows your browser or OS language.",
"b9ebecdb8db71466": "System default follows your browser or OS clock preference.",
Expand All @@ -53,7 +55,7 @@
"795854feef8d2f52": "Browser",
"9cc48e5c9ee46026": "Devices",
"2ab325baee3ec9a3": "Scheduled tasks",
"a4380762611c94e4": "Source control",
"0a59e086514a62a9": "Source control & issues",
"4889f7885396c26b": "Worktrees",
"b5adbf54cbefee38": "Environments",
"1de0df2b8a4fb96e": "Sharing & access",
Expand All @@ -63,12 +65,15 @@
"f41ea186c275b56e": "About",
"af4b7734da1d5ce7": "Voice",
"2a546119bf3879ee": "Archive",
"7cf24feddad00a5e": "Preferences",
"2632f324dc2d9c48": "Agents",
"58058320796d28f6": "Code",
"1a07e4d043f5df4e": "Connections",
"bda5af471ef547e0": "More",
"e5144f91364fd9b7": "Time format",
"7e4d81ca21a72019": "Unpin confirmation",
"1d5052cbe70d0b28": "Archive confirmation",
"d5dd27a4eb853248": "Delete confirmation",
"5503ef439beb8d42": "Terminal close confirmation",
"86b43caa9ff41ea2": "Quit shortcut"
}
7 changes: 6 additions & 1 deletion apps/web/src/i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"859e386f8af841f0": "Confirmar al desfijar hilos",
"de0d79b74d3e4af6": "Confirmar al archivar hilos",
"4ab8a4878cd80c77": "Confirmar al eliminar hilos",
"b210068e1f078ffa": "Confirmar al cerrar terminales",
"0c853c878aab1908": "Comportamiento del atajo para salir",
"22e745b7db60e52f": "Pantalla",
"2c1c93a646bbea6e": "Idioma",
Expand All @@ -32,6 +33,7 @@
"e815f49e5abedcfd": "Pregunta antes de desfijar un hilo de la sección de fijados.",
"41210f99adeeba78": "Pide un segundo clic en la acción de archivar antes de archivar un hilo.",
"84f3d2cefc8d2a74": "Pregunta antes de eliminar un hilo y su historial de chat.",
"ca169211b232a6c4": "Pregunta antes de cerrar terminales y detener sus procesos en ejecución.",
"3fc130f1e8170073": "El modo mantener también sale con dos pulsaciones rápidas.",
"72c7fda6ae301e6d": "Del sistema usa el idioma de tu navegador o sistema operativo.",
"b9ebecdb8db71466": "Del sistema usa el formato de hora de tu navegador o sistema operativo.",
Expand All @@ -53,7 +55,7 @@
"795854feef8d2f52": "Navegador",
"9cc48e5c9ee46026": "Dispositivos",
"2ab325baee3ec9a3": "Tareas programadas",
"a4380762611c94e4": "Control de versiones",
"0a59e086514a62a9": "Versiones e incidencias",
"4889f7885396c26b": "Worktrees",
"b5adbf54cbefee38": "Entornos",
"1de0df2b8a4fb96e": "Compartir y acceso",
Expand All @@ -63,12 +65,15 @@
"f41ea186c275b56e": "Acerca de",
"af4b7734da1d5ce7": "Voz",
"2a546119bf3879ee": "Archivo",
"7cf24feddad00a5e": "Preferencias",
"2632f324dc2d9c48": "Agentes",
"58058320796d28f6": "Código",
"1a07e4d043f5df4e": "Conexiones",
"bda5af471ef547e0": "Más",
"e5144f91364fd9b7": "Formato de hora",
"7e4d81ca21a72019": "Confirmación al desfijar",
"1d5052cbe70d0b28": "Confirmación al archivar",
"d5dd27a4eb853248": "Confirmación al eliminar",
"5503ef439beb8d42": "Confirmación al cerrar terminales",
"86b43caa9ff41ea2": "Atajo para salir"
}
7 changes: 6 additions & 1 deletion apps/web/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"859e386f8af841f0": "Confirmer avant de désépingler un fil",
"de0d79b74d3e4af6": "Confirmer l'archivage des fils",
"4ab8a4878cd80c77": "Confirmer la suppression des fils",
"b210068e1f078ffa": "Confirmer la fermeture des terminaux",
"0c853c878aab1908": "Comportement du raccourci Quitter",
"22e745b7db60e52f": "Affichage",
"2c1c93a646bbea6e": "Langue",
Expand All @@ -32,6 +33,7 @@
"e815f49e5abedcfd": "Demande confirmation avant de désépingler un fil.",
"41210f99adeeba78": "Exige un second clic sur le bouton d'archivage du fil avant de l'archiver.",
"84f3d2cefc8d2a74": "Demande confirmation avant de supprimer un fil et son historique de discussion.",
"ca169211b232a6c4": "Demande confirmation avant de fermer des terminaux et d'arrêter leurs processus en cours.",
"3fc130f1e8170073": "En mode Appui long, un double appui rapide quitte aussi l'app.",
"72c7fda6ae301e6d": "L'option Système suit la langue de votre navigateur ou de votre OS.",
"b9ebecdb8db71466": "L'option Système suit le format de l'heure de votre navigateur ou de votre OS.",
Expand All @@ -53,7 +55,7 @@
"795854feef8d2f52": "Navigateur",
"9cc48e5c9ee46026": "Appareils",
"2ab325baee3ec9a3": "Tâches planifiées",
"a4380762611c94e4": "Gestion de versions",
"0a59e086514a62a9": "Versions et tickets",
"4889f7885396c26b": "Worktrees",
"b5adbf54cbefee38": "Environnements",
"1de0df2b8a4fb96e": "Partage et accès",
Expand All @@ -63,12 +65,15 @@
"f41ea186c275b56e": "À propos",
"af4b7734da1d5ce7": "Voix",
"2a546119bf3879ee": "Archives",
"7cf24feddad00a5e": "Préférences",
"2632f324dc2d9c48": "Agents",
"58058320796d28f6": "Code",
"1a07e4d043f5df4e": "Connexions",
"bda5af471ef547e0": "Plus",
"e5144f91364fd9b7": "Format de l'heure",
"7e4d81ca21a72019": "Confirmation avant de désépingler",
"1d5052cbe70d0b28": "Confirmation de l'archivage",
"d5dd27a4eb853248": "Confirmation de la suppression",
"5503ef439beb8d42": "Confirmation de la fermeture des terminaux",
"86b43caa9ff41ea2": "Raccourci Quitter"
}
Loading
Loading