diff --git a/apps/mobile/src/i18n/translations/de.json b/apps/mobile/src/i18n/translations/de.json index 76f4b5e7fcf4e..a9f1e57f7ed91 100644 --- a/apps/mobile/src/i18n/translations/de.json +++ b/apps/mobile/src/i18n/translations/de.json @@ -5067,6 +5067,58 @@ "84f8481f49bd28ec": "Wird vorbereitet", "cd5d90cbbfae32f6": "Aufnahme {time}", "6236e2f587bc4eb4": "Wird transkribiert", + "0282ffbc3c8f5146": "Upstream-CORE", + "706084d25f85dd5a": "Repository", + "188383e350daf9e1": "Vollständiges Playbook", + "1932b29c61860db6": "MIT-Lizenz", + "18383d62691bf4e9": "Nie", + "d740ba635a1fdffd": "Aktualisierung fehlgeschlagen. {detail} {source}, Revision {revision}, bleibt aktiv.", + "b0a029ac8c279cf5": "Aktualisierung fehlgeschlagen. {source}, Revision {revision}, bleibt aktiv.", + "cf146654c3e8faea": "Token-Effizienz-Herkunft wird auf {environment} geladen…", + "80ebcaed67f5445c": "Auf {environment} nicht unterstützt", + "9492d5a6d43e53b3": "Auf {environment} nicht verfügbar", + "943e00c4e733d237": "{source} · Revision {revision} · Fixiert {pinned}", + "8f9a366d9f44a14d": "{source} · Revision {revision}", + "a2bded0a93096ada": "Wird aktualisiert…", + "015f325d30ad6192": "Jetzt aktualisieren", + "4236bb08618527f3": "Token-Effizienz-Anweisungen", + "5bf4ff621a4697e6": [ + "vor", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "1585864d5005ce2d": [ + "Letzte erfolgreiche Prüfung:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Agent-Anweisungen", + "573b5ee9ae1a24c6": "Token-Effizienz", + "d9a1b1ac9fb559ce": [ + "Gib Agents eine kurze Checkliste, um unnötigen Kontext und Tool-Ausgaben zu reduzieren. Adaptiert von", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Standardmäßig deaktiviert." + ], + "20e58d2c3bc5ee66": "{amount} verbraucht", + "081dc1461c04211b": "{amount} übrig", + "d985b6d9bce69299": "{amount} Limit", "86798f07ba2d7f4d": "Issues durchsuchen", "484cd83bb303bab8": "Pull Requests durchsuchen", "75ed31fcea4f741a": "Issues filtern", diff --git a/apps/mobile/src/i18n/translations/en.json b/apps/mobile/src/i18n/translations/en.json index 3cd28a93b09c2..0ea953e9aa0db 100644 --- a/apps/mobile/src/i18n/translations/en.json +++ b/apps/mobile/src/i18n/translations/en.json @@ -5068,6 +5068,58 @@ "84f8481f49bd28ec": "Preparing", "cd5d90cbbfae32f6": "Recording {time}", "6236e2f587bc4eb4": "Transcribing", + "0282ffbc3c8f5146": "Upstream CORE", + "706084d25f85dd5a": "Repository", + "188383e350daf9e1": "Full playbook", + "1932b29c61860db6": "MIT license", + "18383d62691bf4e9": "Never", + "d740ba635a1fdffd": "Refresh failed. {detail} {source} revision {revision} stays active.", + "b0a029ac8c279cf5": "Refresh failed. {source} revision {revision} stays active.", + "cf146654c3e8faea": "Loading token-efficiency provenance on {environment}…", + "80ebcaed67f5445c": "Not supported on {environment}", + "9492d5a6d43e53b3": "Unavailable on {environment}", + "943e00c4e733d237": "{source} · Revision {revision} · Pinned {pinned}", + "8f9a366d9f44a14d": "{source} · Revision {revision}", + "a2bded0a93096ada": "Refreshing…", + "015f325d30ad6192": "Refresh now", + "4236bb08618527f3": "Token-efficiency instructions", + "5bf4ff621a4697e6": [ + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "ago" + ], + "1585864d5005ce2d": [ + "Last successful check:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Agent instructions", + "573b5ee9ae1a24c6": "Token efficiency", + "d9a1b1ac9fb559ce": [ + "Give agents a short checklist for reducing unnecessary context and tool output. Adapted from", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Disabled by default." + ], + "20e58d2c3bc5ee66": "{amount} used", + "081dc1461c04211b": "{amount} left", + "d985b6d9bce69299": "{amount} limit", "86798f07ba2d7f4d": "Search issues", "484cd83bb303bab8": "Search pull requests", "75ed31fcea4f741a": "Filter issues", diff --git a/apps/mobile/src/i18n/translations/es.json b/apps/mobile/src/i18n/translations/es.json index c7f35fe0526c0..6cc07a4425eed 100644 --- a/apps/mobile/src/i18n/translations/es.json +++ b/apps/mobile/src/i18n/translations/es.json @@ -5061,6 +5061,58 @@ "84f8481f49bd28ec": "Preparando", "cd5d90cbbfae32f6": "Grabando {time}", "6236e2f587bc4eb4": "Transcribiendo", + "0282ffbc3c8f5146": "CORE de upstream", + "706084d25f85dd5a": "Repositorio", + "188383e350daf9e1": "Guía completa", + "1932b29c61860db6": "Licencia MIT", + "18383d62691bf4e9": "Nunca", + "d740ba635a1fdffd": "Error al actualizar. {detail} {source}, revisión {revision}, sigue activa.", + "b0a029ac8c279cf5": "Error al actualizar. {source}, revisión {revision}, sigue activa.", + "cf146654c3e8faea": "Cargando el origen de eficiencia de tokens en {environment}…", + "80ebcaed67f5445c": "No compatible en {environment}", + "9492d5a6d43e53b3": "No disponible en {environment}", + "943e00c4e733d237": "{source} · Revisión {revision} · Fijada {pinned}", + "8f9a366d9f44a14d": "{source} · Revisión {revision}", + "a2bded0a93096ada": "Actualizando…", + "015f325d30ad6192": "Actualizar ahora", + "4236bb08618527f3": "Instrucciones de eficiencia de tokens", + "5bf4ff621a4697e6": [ + "hace", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "1585864d5005ce2d": [ + "Última comprobación correcta:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Instrucciones para agentes", + "573b5ee9ae1a24c6": "Eficiencia de tokens", + "d9a1b1ac9fb559ce": [ + "Da a los agentes una lista breve para reducir el contexto y la salida de herramientas innecesarios. Adaptado de", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Desactivado de forma predeterminada." + ], + "20e58d2c3bc5ee66": "{amount} usados", + "081dc1461c04211b": "{amount} restantes", + "d985b6d9bce69299": "Límite de {amount}", "86798f07ba2d7f4d": "Buscar issues", "484cd83bb303bab8": "Buscar pull requests", "75ed31fcea4f741a": "Filtrar issues", diff --git a/apps/mobile/src/i18n/translations/fr.json b/apps/mobile/src/i18n/translations/fr.json index 1865c4ad6ebc6..20f857116c80a 100644 --- a/apps/mobile/src/i18n/translations/fr.json +++ b/apps/mobile/src/i18n/translations/fr.json @@ -5061,6 +5061,58 @@ "84f8481f49bd28ec": "Préparation", "cd5d90cbbfae32f6": "Enregistrement {time}", "6236e2f587bc4eb4": "Transcription", + "0282ffbc3c8f5146": "CORE upstream", + "706084d25f85dd5a": "Dépôt", + "188383e350daf9e1": "Guide complet", + "1932b29c61860db6": "Licence MIT", + "18383d62691bf4e9": "Jamais", + "d740ba635a1fdffd": "Échec de l’actualisation. {detail} {source}, révision {revision}, reste active.", + "b0a029ac8c279cf5": "Échec de l’actualisation. {source}, révision {revision}, reste active.", + "cf146654c3e8faea": "Chargement de la provenance de l’efficacité des tokens sur {environment}…", + "80ebcaed67f5445c": "Non pris en charge sur {environment}", + "9492d5a6d43e53b3": "Indisponible sur {environment}", + "943e00c4e733d237": "{source} · Révision {revision} · Épinglée {pinned}", + "8f9a366d9f44a14d": "{source} · Révision {revision}", + "a2bded0a93096ada": "Actualisation…", + "015f325d30ad6192": "Actualiser maintenant", + "4236bb08618527f3": "Instructions d’efficacité des tokens", + "5bf4ff621a4697e6": [ + "il y a", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "1585864d5005ce2d": [ + "Dernière vérification réussie :", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Instructions des agents", + "573b5ee9ae1a24c6": "Efficacité des tokens", + "d9a1b1ac9fb559ce": [ + "Donne aux agents une courte liste de contrôle pour réduire le contexte et les sorties d’outils superflus. Adapté de", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Désactivé par défaut." + ], + "20e58d2c3bc5ee66": "{amount} utilisés", + "081dc1461c04211b": "{amount} restants", + "d985b6d9bce69299": "Limite de {amount}", "86798f07ba2d7f4d": "Rechercher des tickets", "484cd83bb303bab8": "Rechercher des pull requests", "75ed31fcea4f741a": "Filtrer les tickets", diff --git a/apps/mobile/src/i18n/translations/ja.json b/apps/mobile/src/i18n/translations/ja.json index 945269c32666b..410aa28554e2a 100644 --- a/apps/mobile/src/i18n/translations/ja.json +++ b/apps/mobile/src/i18n/translations/ja.json @@ -5043,6 +5043,58 @@ "84f8481f49bd28ec": "準備中", "cd5d90cbbfae32f6": "録音中 {time}", "6236e2f587bc4eb4": "文字起こし中", + "0282ffbc3c8f5146": "アップストリームの CORE", + "706084d25f85dd5a": "リポジトリ", + "188383e350daf9e1": "完全版プレイブック", + "1932b29c61860db6": "MIT ライセンス", + "18383d62691bf4e9": "なし", + "d740ba635a1fdffd": "更新に失敗しました。{detail} {source} のリビジョン {revision} が引き続き有効です。", + "b0a029ac8c279cf5": "更新に失敗しました。{source} のリビジョン {revision} が引き続き有効です。", + "cf146654c3e8faea": "{environment} のトークン効率の取得元を読み込んでいます…", + "80ebcaed67f5445c": "{environment} ではサポートされていません", + "9492d5a6d43e53b3": "{environment} では利用できません", + "943e00c4e733d237": "{source} · リビジョン {revision} · 固定 {pinned}", + "8f9a366d9f44a14d": "{source} · リビジョン {revision}", + "a2bded0a93096ada": "更新しています…", + "015f325d30ad6192": "今すぐ更新", + "4236bb08618527f3": "トークン効率の指示", + "5bf4ff621a4697e6": [ + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "前" + ], + "1585864d5005ce2d": [ + "最後に成功した確認:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "エージェントへの指示", + "573b5ee9ae1a24c6": "トークン効率", + "d9a1b1ac9fb559ce": [ + "不要なコンテキストとツール出力を減らすための短いチェックリストをエージェントに渡します。出典:", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + "。デフォルトでは無効です。" + ], + "20e58d2c3bc5ee66": "{amount} 使用済み", + "081dc1461c04211b": "残り {amount}", + "d985b6d9bce69299": "上限 {amount}", "86798f07ba2d7f4d": "Issue を検索", "484cd83bb303bab8": "プルリクエストを検索", "75ed31fcea4f741a": "Issue を絞り込む", diff --git a/apps/mobile/src/i18n/translations/ko.json b/apps/mobile/src/i18n/translations/ko.json index 8153a7115d991..e2a116b194005 100644 --- a/apps/mobile/src/i18n/translations/ko.json +++ b/apps/mobile/src/i18n/translations/ko.json @@ -5047,6 +5047,58 @@ "84f8481f49bd28ec": "준비 중", "cd5d90cbbfae32f6": "녹음 중 {time}", "6236e2f587bc4eb4": "받아쓰는 중", + "0282ffbc3c8f5146": "업스트림 CORE", + "706084d25f85dd5a": "저장소", + "188383e350daf9e1": "전체 플레이북", + "1932b29c61860db6": "MIT 라이선스", + "18383d62691bf4e9": "없음", + "d740ba635a1fdffd": "새로 고침에 실패했습니다. {detail} {source} 리비전 {revision}이(가) 계속 활성 상태입니다.", + "b0a029ac8c279cf5": "새로 고침에 실패했습니다. {source} 리비전 {revision}이(가) 계속 활성 상태입니다.", + "cf146654c3e8faea": "{environment}에서 토큰 효율성 출처를 불러오는 중…", + "80ebcaed67f5445c": "{environment}에서는 지원되지 않음", + "9492d5a6d43e53b3": "{environment}에서 사용할 수 없음", + "943e00c4e733d237": "{source} · 리비전 {revision} · 고정 {pinned}", + "8f9a366d9f44a14d": "{source} · 리비전 {revision}", + "a2bded0a93096ada": "새로 고치는 중…", + "015f325d30ad6192": "지금 새로 고침", + "4236bb08618527f3": "토큰 효율성 지침", + "5bf4ff621a4697e6": [ + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "전" + ], + "1585864d5005ce2d": [ + "마지막 확인 성공:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "에이전트 지침", + "573b5ee9ae1a24c6": "토큰 효율성", + "d9a1b1ac9fb559ce": [ + "불필요한 컨텍스트와 도구 출력을 줄이는 짧은 체크리스트를 에이전트에 제공합니다. 출처:", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". 기본적으로 꺼져 있습니다." + ], + "20e58d2c3bc5ee66": "{amount} 사용", + "081dc1461c04211b": "{amount} 남음", + "d985b6d9bce69299": "한도 {amount}", "86798f07ba2d7f4d": "이슈 검색", "484cd83bb303bab8": "풀 리퀘스트 검색", "75ed31fcea4f741a": "이슈 필터", diff --git a/apps/mobile/src/i18n/translations/pt-BR.json b/apps/mobile/src/i18n/translations/pt-BR.json index 403c870d902b8..1c5d2ce896399 100644 --- a/apps/mobile/src/i18n/translations/pt-BR.json +++ b/apps/mobile/src/i18n/translations/pt-BR.json @@ -5061,6 +5061,58 @@ "84f8481f49bd28ec": "Preparando", "cd5d90cbbfae32f6": "Gravando {time}", "6236e2f587bc4eb4": "Transcrevendo", + "0282ffbc3c8f5146": "CORE do upstream", + "706084d25f85dd5a": "Repositório", + "188383e350daf9e1": "Guia completo", + "1932b29c61860db6": "Licença MIT", + "18383d62691bf4e9": "Nunca", + "d740ba635a1fdffd": "Falha ao atualizar. {detail} {source}, revisão {revision}, continua ativa.", + "b0a029ac8c279cf5": "Falha ao atualizar. {source}, revisão {revision}, continua ativa.", + "cf146654c3e8faea": "Carregando a origem da eficiência de tokens em {environment}…", + "80ebcaed67f5445c": "Não compatível em {environment}", + "9492d5a6d43e53b3": "Indisponível em {environment}", + "943e00c4e733d237": "{source} · Revisão {revision} · Fixada {pinned}", + "8f9a366d9f44a14d": "{source} · Revisão {revision}", + "a2bded0a93096ada": "Atualizando…", + "015f325d30ad6192": "Atualizar agora", + "4236bb08618527f3": "Instruções de eficiência de tokens", + "5bf4ff621a4697e6": [ + "há", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "1585864d5005ce2d": [ + "Última verificação bem-sucedida:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Instruções para agentes", + "573b5ee9ae1a24c6": "Eficiência de tokens", + "d9a1b1ac9fb559ce": [ + "Dá aos agentes uma lista curta para reduzir contexto e saída de ferramentas desnecessários. Adaptado de", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Desativado por padrão." + ], + "20e58d2c3bc5ee66": "{amount} usados", + "081dc1461c04211b": "{amount} restantes", + "d985b6d9bce69299": "Limite de {amount}", "86798f07ba2d7f4d": "Pesquisar issues", "484cd83bb303bab8": "Pesquisar pull requests", "75ed31fcea4f741a": "Filtrar issues", diff --git a/apps/mobile/src/i18n/translations/ru.json b/apps/mobile/src/i18n/translations/ru.json index 9082ff4a4ace7..95d7606142859 100644 --- a/apps/mobile/src/i18n/translations/ru.json +++ b/apps/mobile/src/i18n/translations/ru.json @@ -5140,6 +5140,58 @@ "84f8481f49bd28ec": "Подготовка", "cd5d90cbbfae32f6": "Запись {time}", "6236e2f587bc4eb4": "Расшифровка", + "0282ffbc3c8f5146": "CORE апстрима", + "706084d25f85dd5a": "Репозиторий", + "188383e350daf9e1": "Полное руководство", + "1932b29c61860db6": "Лицензия MIT", + "18383d62691bf4e9": "Никогда", + "d740ba635a1fdffd": "Не удалось обновить. {detail} {source}, ревизия {revision}, остаётся активной.", + "b0a029ac8c279cf5": "Не удалось обновить. {source}, ревизия {revision}, остаётся активной.", + "cf146654c3e8faea": "Загрузка источника экономии токенов на {environment}…", + "80ebcaed67f5445c": "Не поддерживается на {environment}", + "9492d5a6d43e53b3": "Недоступно на {environment}", + "943e00c4e733d237": "{source} · Ревизия {revision} · Закреплено {pinned}", + "8f9a366d9f44a14d": "{source} · Ревизия {revision}", + "a2bded0a93096ada": "Обновление…", + "015f325d30ad6192": "Обновить сейчас", + "4236bb08618527f3": "Инструкции по экономии токенов", + "5bf4ff621a4697e6": [ + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "назад" + ], + "1585864d5005ce2d": [ + "Последняя успешная проверка:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Инструкции для агентов", + "573b5ee9ae1a24c6": "Экономия токенов", + "d9a1b1ac9fb559ce": [ + "Даёт агентам короткий чек-лист, чтобы сократить лишний контекст и вывод инструментов. Основано на", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". По умолчанию выключено." + ], + "20e58d2c3bc5ee66": "Потрачено {amount}", + "081dc1461c04211b": "Осталось {amount}", + "d985b6d9bce69299": "Лимит {amount}", "86798f07ba2d7f4d": "Поиск issue", "484cd83bb303bab8": "Поиск пул-реквестов", "75ed31fcea4f741a": "Фильтр issue", diff --git a/apps/mobile/src/i18n/translations/sv.json b/apps/mobile/src/i18n/translations/sv.json index 4134d30285ad7..12fc99da5dd58 100644 --- a/apps/mobile/src/i18n/translations/sv.json +++ b/apps/mobile/src/i18n/translations/sv.json @@ -5067,6 +5067,60 @@ "84f8481f49bd28ec": "Förbereder", "cd5d90cbbfae32f6": "Spelar in {time}", "6236e2f587bc4eb4": "Transkriberar", + "0282ffbc3c8f5146": "Uppströms CORE", + "706084d25f85dd5a": "Repo", + "188383e350daf9e1": "Fullständig handbok", + "1932b29c61860db6": "MIT-licens", + "18383d62691bf4e9": "Aldrig", + "d740ba635a1fdffd": "Uppdateringen misslyckades. {detail} {source}, revision {revision}, förblir aktiv.", + "b0a029ac8c279cf5": "Uppdateringen misslyckades. {source}, revision {revision}, förblir aktiv.", + "cf146654c3e8faea": "Läser in ursprung för tokeneffektivitet på {environment}…", + "80ebcaed67f5445c": "Stöds inte på {environment}", + "9492d5a6d43e53b3": "Inte tillgänglig på {environment}", + "943e00c4e733d237": "{source} · Revision {revision} · Fäst {pinned}", + "8f9a366d9f44a14d": "{source} · Revision {revision}", + "a2bded0a93096ada": "Uppdaterar…", + "015f325d30ad6192": "Uppdatera nu", + "4236bb08618527f3": "Instruktioner för tokeneffektivitet", + "5bf4ff621a4697e6": [ + "för", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "sedan" + ], + "1585864d5005ce2d": [ + "Senaste lyckade kontroll:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "Agentinstruktioner", + "573b5ee9ae1a24c6": "Tokeneffektivitet", + "d9a1b1ac9fb559ce": [ + "Ge agenter en kort checklista för att minska onödig kontext och verktygsutdata. Baserad på", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + ". Avstängd som standard." + ], + "20e58d2c3bc5ee66": "{amount} använt", + "081dc1461c04211b": "{amount} kvar", + "d985b6d9bce69299": "{amount} gräns", "86798f07ba2d7f4d": "Sök ärenden", "484cd83bb303bab8": "Sök pull requests", "75ed31fcea4f741a": "Filtrera ärenden", diff --git a/apps/mobile/src/i18n/translations/zh.json b/apps/mobile/src/i18n/translations/zh.json index aa33f5a3bdbdd..701258f87cb15 100644 --- a/apps/mobile/src/i18n/translations/zh.json +++ b/apps/mobile/src/i18n/translations/zh.json @@ -5051,6 +5051,58 @@ "84f8481f49bd28ec": "正在准备", "cd5d90cbbfae32f6": "正在录制 {time}", "6236e2f587bc4eb4": "正在转写", + "0282ffbc3c8f5146": "上游 CORE", + "706084d25f85dd5a": "仓库", + "188383e350daf9e1": "完整手册", + "1932b29c61860db6": "MIT 许可证", + "18383d62691bf4e9": "从未", + "d740ba635a1fdffd": "刷新失败。{detail} {source} 修订版 {revision} 仍处于活动状态。", + "b0a029ac8c279cf5": "刷新失败。{source} 修订版 {revision} 仍处于活动状态。", + "cf146654c3e8faea": "正在 {environment} 上加载 Token 效率来源…", + "80ebcaed67f5445c": "{environment} 上不支持", + "9492d5a6d43e53b3": "{environment} 上不可用", + "943e00c4e733d237": "{source} · 修订版 {revision} · 固定于 {pinned}", + "8f9a366d9f44a14d": "{source} · 修订版 {revision}", + "a2bded0a93096ada": "正在刷新…", + "015f325d30ad6192": "立即刷新", + "4236bb08618527f3": "Token 效率指令", + "5bf4ff621a4697e6": [ + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + }, + " ", + "前" + ], + "1585864d5005ce2d": [ + "上次成功检查:", + " ", + { + "i": 1, + "k": "_gt_value_1", + "v": "v" + } + ], + "aeddf4420f291989": "智能体指令", + "573b5ee9ae1a24c6": "Token 效率", + "d9a1b1ac9fb559ce": [ + "为智能体提供一份简短清单,减少不必要的上下文和工具输出。改编自", + " ", + { + "t": "Text", + "i": 1, + "c": { + "i": 2, + "k": "_gt_value_2", + "v": "v" + } + }, + "。默认关闭。" + ], + "20e58d2c3bc5ee66": "已用 {amount}", + "081dc1461c04211b": "剩余 {amount}", + "d985b6d9bce69299": "上限 {amount}", "86798f07ba2d7f4d": "搜索 issue", "484cd83bb303bab8": "搜索 PR", "75ed31fcea4f741a": "筛选 issue", diff --git a/apps/mobile/src/plusplus/settings/TokenEfficiencyProvenance.tsx b/apps/mobile/src/plusplus/settings/TokenEfficiencyProvenance.tsx index 3fc83e88436ff..c41febffb243f 100644 --- a/apps/mobile/src/plusplus/settings/TokenEfficiencyProvenance.tsx +++ b/apps/mobile/src/plusplus/settings/TokenEfficiencyProvenance.tsx @@ -17,6 +17,7 @@ import { import * as Cause from "effect/Cause"; import * as DateTime from "effect/DateTime"; import { AsyncResult } from "effect/reactivity"; +import { msg, T, useGT, useMessages, Var } from "gt-react-native"; import { useState } from "react"; import { Linking, View } from "react-native"; @@ -29,10 +30,10 @@ import { useAtomCommand } from "../../state/use-atom-command"; import { refreshTokenEfficiency, tokenEfficiencyView } from "../state/tokenEfficiency"; const ATTRIBUTION_LINKS = [ - { label: "Upstream CORE", url: TOKEN_EFFICIENCY_LINKS.core }, - { label: "Repository", url: TOKEN_EFFICIENCY_LINKS.repository }, - { label: "Full playbook", url: TOKEN_EFFICIENCY_LINKS.fullPlaybook }, - { label: "MIT license", url: TOKEN_EFFICIENCY_LINKS.license }, + { label: msg("Upstream CORE"), url: TOKEN_EFFICIENCY_LINKS.core }, + { label: msg("Repository"), url: TOKEN_EFFICIENCY_LINKS.repository }, + { label: msg("Full playbook"), url: TOKEN_EFFICIENCY_LINKS.fullPlaybook }, + { label: msg("MIT license"), url: TOKEN_EFFICIENCY_LINKS.license }, ] as const; function isTokenEfficiencyUnsupportedError(error: unknown): boolean { @@ -47,11 +48,15 @@ function withTerminalPunctuation(message: string): string { function LastSuccessfulCheck(props: { readonly value: TokenEfficiencyStatus["lastSuccessfulCheckAt"]; }) { - if (props.value === null) return "Never"; + const gt = useGT(); + if (props.value === null) return gt("Never", { $context: "last successful check time" }); return ( - <> - ago - + + + + {" "} + ago + ); } @@ -63,6 +68,7 @@ function EnvironmentProvenance(props: { readonly environment: SettingsTarget; readonly showEnvironmentLabel: boolean; }) { + const gt = useGT(); const { environmentId, label } = props.environment; const result = useAtomValue(tokenEfficiencyView({ environmentId, input: {} })); const canRefresh = useAtomValue(refreshTokenEfficiency.permissionAtom(environmentId)); @@ -84,20 +90,30 @@ function EnvironmentProvenance(props: { setOutcome(next.value); } else if (!isAtomCommandInterrupted(next)) { const error = squashAtomCommandFailure(next); - const detail = error instanceof Error ? ` ${withTerminalPunctuation(error.message)}` : ""; + const active = { + source: sourceLabel(view.status.active.source), + revision: shortRevision(view.status.active.blobSha), + }; setRequestFailure( - `Refresh failed.${detail} ${sourceLabel(view.status.active.source)} revision ${shortRevision(view.status.active.blobSha)} stays active.`, + error instanceof Error + ? gt("Refresh failed. {detail} {source} revision {revision} stays active.", { + ...active, + detail: withTerminalPunctuation(error.message), + }) + : gt("Refresh failed. {source} revision {revision} stays active.", active), ); } setRefreshing(false); }; if (view === null) { - let message = `Loading token-efficiency provenance on ${label}…`; + let message = gt("Loading token-efficiency provenance on {environment}…", { + environment: label, + }); if (result._tag === "Failure") { message = isTokenEfficiencyUnsupportedError(Cause.squash(result.cause)) - ? `Not supported on ${label}` - : `Unavailable on ${label}`; + ? gt("Not supported on {environment}", { environment: label }) + : gt("Unavailable on {environment}", { environment: label }); } return ( @@ -118,13 +134,24 @@ function EnvironmentProvenance(props: { {props.showEnvironmentLabel ? {label} : null} - {sourceLabel(active.source)} · Revision {shortRevision(active.blobSha)} {active.source === "bundled" && active.upstreamCommit !== undefined - ? ` · Pinned ${shortRevision(active.upstreamCommit)}` - : ""} + ? gt("{source} · Revision {revision} · Pinned {pinned}", { + source: sourceLabel(active.source), + revision: shortRevision(active.blobSha), + pinned: shortRevision(active.upstreamCommit), + }) + : gt("{source} · Revision {revision}", { + source: sourceLabel(active.source), + revision: shortRevision(active.blobSha), + })} - Last successful check: + + Last successful check:{" "} + + + + {(failedOutcomeMessage ?? failureMessage) ? ( @@ -139,18 +166,18 @@ function EnvironmentProvenance(props: { ) : null} ) : null} @@ -146,11 +150,12 @@ function ProcessGroupLabel(props: { readonly children: ReactNode }) { * a proxy like updatedAt. */ function ProcessRowElapsed(props: { readonly startedAt: string | null }) { + const gt = useGT(); if (props.startedAt === null) { return ( – @@ -172,6 +177,8 @@ export function ThreadProcessesPanel(props: { readonly isStoppingBackgroundWork?: boolean | undefined; readonly onStopBackgroundWork?: (() => void) | undefined; }) { + const gt = useGT(); + const m = useMessages(); const ref = scopeThreadRef(props.environmentId, props.threadId); const threadKey = scopedThreadKey(ref); const projection = useThreadProjection(ref)?.projection ?? null; @@ -204,13 +211,16 @@ export function ThreadProcessesPanel(props: { pullRequests: projection?.thread.pullRequests, runlessOwnerActive, }); - const taskRows = deriveThreadProcessTaskRows({ - threadId: props.threadId, - tasks: backgroundTasks, - turnItems: projection?.turnItems ?? [], - runs, - visibleTurnItems, - }); + const taskRows = deriveThreadProcessTaskRows( + { + threadId: props.threadId, + tasks: backgroundTasks, + turnItems: projection?.turnItems ?? [], + runs, + visibleTurnItems, + }, + m, + ); if (terminalRows.length === 0 && taskRows.length === 0) { return null; @@ -231,10 +241,10 @@ export function ThreadProcessesPanel(props: { // Stop is thread-level interruption: while a foreground run is active it stops the current // turn too, so the label must say so instead of implying background-only scope. const foregroundActive = hasActiveForegroundRun(runs); - const stopAriaLabel = foregroundActive ? "Stop thread" : "Stop background work"; + const stopAriaLabel = foregroundActive ? gt("Stop thread") : gt("Stop background work"); const stopTooltip = foregroundActive - ? "Stop the current turn and all background work" - : "Stop all background work"; + ? gt("Stop the current turn and all background work") + : gt("Stop all background work"); const showStop = props.onStopBackgroundWork !== undefined && taskRows.length > 0 && @@ -261,7 +271,11 @@ export function ThreadProcessesPanel(props: { return ( 0 ? `Processes · ${totalCount} running` : "Processes"} + title={ + totalCount > 0 + ? gt("Processes · {count} running", { count: totalCount }) + : gt("Processes", { $context: "thread details section heading" }) + } data-thread-processes-panel actions={ showStop ? ( @@ -292,8 +306,12 @@ export function ThreadProcessesPanel(props: { > {terminalRows.length > 0 ? (
- {showGroupLabels ? Terminals : null} - + {showGroupLabels ? ( + + Terminals + + ) : null} + {(visibleCount) => terminalRows.slice(0, visibleCount).map((row) => (
  • 0 ? (
    - {showGroupLabels ? Background work : null} - + {showGroupLabels ? ( + + Background work + + ) : null} + {(visibleCount) => taskRows.slice(0, visibleCount).map((row) => { const item = row.item; @@ -365,11 +391,15 @@ export function ThreadProcessesPanel(props: { @@ -403,8 +433,8 @@ export function ThreadProcessesPanel(props: { = { - command: "Command", - monitor: "Monitor", - background_task: "Background task", - subagent: "Subagent", + command: msg("Command", { $context: "background process kind, a shell command" }), + monitor: msg("Monitor", { $context: "background process kind, a watcher" }), + background_task: msg("Background task"), + subagent: msg("Subagent"), }; // The run statuses thread-level Stop interrupts: it picks up the active run, holds the queue, @@ -80,9 +83,12 @@ export function threadProcessesStopAvailable(input: { return !(input.providerNative && input.runCount === 0); } -export function threadProcessTaskLabel(task: OrchestrationV2PendingBackgroundTask): string { +export function threadProcessTaskLabel( + task: OrchestrationV2PendingBackgroundTask, + resolve: MessageResolver = m, +): string { const description = task.description?.trim(); - return description && description.length > 0 ? description : TASK_KIND_LABELS[task.kind]; + return description && description.length > 0 ? description : resolve(TASK_KIND_LABELS[task.kind]); } /** @@ -98,27 +104,32 @@ export function isPullRequestWatchTask( /** Kind label for the hover detail; forward-compatible unknown kinds read as background tasks. */ export function threadProcessTaskKindLabel( kind: OrchestrationV2PendingBackgroundTask["kind"], + resolve: MessageResolver = m, ): string { - return ( - TASK_KIND_LABELS[kind as keyof typeof TASK_KIND_LABELS] ?? TASK_KIND_LABELS.background_task + return resolve( + TASK_KIND_LABELS[kind as keyof typeof TASK_KIND_LABELS] ?? TASK_KIND_LABELS.background_task, ); } const TASK_STATUS_LABELS: Partial> = { - pending: "Pending", - running: "Running", - waiting: "Waiting", + pending: msg("Pending", { $context: "background process status" }), + running: msg("Running", { $context: "background process status" }), + waiting: msg("Waiting", { $context: "background process status" }), }; /** * Linked rows report their projected item's status; opaque roster-only rows only know the work * exists, so they get the generic label instead of a fabricated one. */ -export function threadProcessTaskStatusLabel(row: ThreadProcessTaskRow): string { +export function threadProcessTaskStatusLabel( + row: ThreadProcessTaskRow, + resolve: MessageResolver = m, +): string { const item = row.item?.item; + const active = msg("Active", { $context: "background process status" }); // Forward-compatible union members without a known type carry no status to report. - if (item === undefined || item === null || !("status" in item)) return "Active"; - return TASK_STATUS_LABELS[item.status] ?? "Active"; + if (item === undefined || item === null || !("status" in item)) return resolve(active); + return resolve(TASK_STATUS_LABELS[item.status] ?? active); } export interface ThreadProcessTaskRow { @@ -179,13 +190,16 @@ export function threadProcessTaskPreview(row: ThreadProcessTaskRow): string | nu : lastLine; } -export function deriveThreadProcessTaskRows(input: { - readonly threadId: ThreadId; - readonly tasks: ReadonlyArray; - readonly turnItems: ReadonlyArray; - readonly runs: ReadonlyArray>; - readonly visibleTurnItems: ReadonlyArray; -}): ReadonlyArray { +export function deriveThreadProcessTaskRows( + input: { + readonly threadId: ThreadId; + readonly tasks: ReadonlyArray; + readonly turnItems: ReadonlyArray; + readonly runs: ReadonlyArray>; + readonly visibleTurnItems: ReadonlyArray; + }, + resolve: MessageResolver = m, +): ReadonlyArray { const candidatesByTaskId = pendingBackgroundTurnItemsByTaskId({ turnItems: input.turnItems, runs: input.runs, @@ -204,7 +218,7 @@ export function deriveThreadProcessTaskRows updateSettings({ contextBridge: { enabled } })} - aria-label="Enable context bridge" + aria-label={gt("Enable context bridge")} /> } /> - + {resolveDriverLabel(defaultSource, availableDrivers)} @@ -92,12 +94,25 @@ export function ContextBridgeSettingsSection({ } const BRIDGE_FEATURE_ROWS = [ - { feature: "instructions", title: "Instructions" }, - { feature: "skills", title: "Skills" }, - { feature: "hooks", title: "Hooks" }, + { + feature: "instructions", + title: msg("Instructions"), + description: msg("Where {provider} loads instructions from when the context bridge is on."), + }, + { + feature: "skills", + title: msg("Skills"), + description: msg("Where {provider} loads skills from when the context bridge is on."), + }, + { + feature: "hooks", + title: msg("Hooks"), + description: msg("Where {provider} loads hooks from when the context bridge is on."), + }, ] as const satisfies ReadonlyArray<{ feature: ContextBridgeFeature; title: string; + description: string; }>; export function ProviderContextBridgeSection({ @@ -109,22 +124,25 @@ export function ProviderContextBridgeSection({ readonly driver: string; readonly readOnly?: boolean; }) { + const gt = useGT(); + const m = useMessages(); const settings = useEnvironmentSettings(environmentId); const updateSettings = useUpdateEnvironmentSettings(environmentId); const availableDrivers = useAvailableBridgeDrivers(environmentId); const contextBridge = readContextBridgeSettings(settings); const route = contextBridge.routes[driver]; - const routeOptions = buildRouteOptions(driver, contextBridge.defaultSource, availableDrivers); + const routeOptions = buildRouteOptions(driver, contextBridge.defaultSource, availableDrivers, m); return ( - {BRIDGE_FEATURE_ROWS.map(({ feature, title }) => { + {BRIDGE_FEATURE_ROWS.map(({ feature, title: featureTitle, description }) => { + const title = m(featureTitle); const value = route?.[feature] ?? "native"; const unsupported = (feature === "hooks" && !supportsContextBridgeHooks(driver)) || @@ -133,7 +151,7 @@ export function ProviderContextBridgeSection({ - + - {unsupported ? "Not supported" : resolveOptionLabel(routeOptions, value)} + {unsupported ? gt("Not supported") : resolveOptionLabel(routeOptions, value)} {!unsupported && ( diff --git a/apps/web/src/plusplus/settings/TokenEfficiencyProvenance.tsx b/apps/web/src/plusplus/settings/TokenEfficiencyProvenance.tsx index c6384a923f928..062c418420c3b 100644 --- a/apps/web/src/plusplus/settings/TokenEfficiencyProvenance.tsx +++ b/apps/web/src/plusplus/settings/TokenEfficiencyProvenance.tsx @@ -18,6 +18,7 @@ import { import * as Cause from "effect/Cause"; import * as DateTime from "effect/DateTime"; import { AsyncResult } from "effect/reactivity"; +import { T, useGT, Var } from "gt-react"; import { useState } from "react"; import { Button } from "../../components/ui/button"; @@ -51,22 +52,26 @@ function withTerminalPunctuation(message: string): string { function LastSuccessfulCheck(props: { readonly value: TokenEfficiencyStatus["lastSuccessfulCheckAt"]; }) { + const gt = useGT(); const iso = props.value === null ? null : DateTime.formatIso(props.value); const relative = useRelativeTimeState(iso); - if (iso === null) return "Never"; + if (iso === null) return gt("Never", { $context: "last successful check time" }); if (relative.status !== "relative") return iso; return relative.suffix ? `${relative.value} ${relative.suffix}` : relative.value; } function InstructionsDialog(props: { readonly instructions: string }) { + const gt = useGT(); return ( }> - View instructions + View instructions - Token-efficiency instructions + + Token-efficiency instructions + {ATTRIBUTION_TEXT} @@ -74,7 +79,7 @@ function InstructionsDialog(props: { readonly instructions: string }) { {props.instructions} @@ -120,6 +125,7 @@ function EnvironmentProvenance(props: { readonly environment: ProvenanceEnvironment; readonly showEnvironmentLabel: boolean; }) { + const gt = useGT(); const { environmentId, label } = props.environment; const result = useAtomValue(tokenEfficiencyView({ environmentId, input: {} })); const canRefresh = useAtomValue(refreshTokenEfficiency.permissionAtom(environmentId)); @@ -141,20 +147,30 @@ function EnvironmentProvenance(props: { setOutcome(next.value); } else if (!isAtomCommandInterrupted(next)) { const error = squashAtomCommandFailure(next); - const detail = error instanceof Error ? ` ${withTerminalPunctuation(error.message)}` : ""; + const active = { + source: sourceLabel(view.status.active.source), + revision: shortRevision(view.status.active.blobSha), + }; setRequestFailure( - `Refresh failed.${detail} ${sourceLabel(view.status.active.source)} revision ${shortRevision(view.status.active.blobSha)} stays active.`, + error instanceof Error + ? gt("Refresh failed. {detail} {source} revision {revision} stays active.", { + ...active, + detail: withTerminalPunctuation(error.message), + }) + : gt("Refresh failed. {source} revision {revision} stays active.", active), ); } setRefreshing(false); }; if (view === null) { - let message = `Loading token-efficiency provenance on ${label}…`; + let message = gt("Loading token-efficiency provenance on {environment}…", { + environment: label, + }); if (result._tag === "Failure") { message = isTokenEfficiencyUnsupportedError(Cause.squash(result.cause)) - ? `Not supported on ${label}` - : `Unavailable on ${label}`; + ? gt("Not supported on {environment}", { environment: label }) + : gt("Unavailable on {environment}", { environment: label }); } return

    {message}

    ; } @@ -171,13 +187,24 @@ function EnvironmentProvenance(props: {
    {props.showEnvironmentLabel ?

    {label}

    : null}

    - {sourceLabel(active.source)} · Revision {shortRevision(active.blobSha)} {active.source === "bundled" && active.upstreamCommit !== undefined - ? ` · Pinned ${shortRevision(active.upstreamCommit)}` - : ""} + ? gt("{source} · Revision {revision} · Pinned {pinned}", { + source: sourceLabel(active.source), + revision: shortRevision(active.blobSha), + pinned: shortRevision(active.upstreamCommit), + }) + : gt("{source} · Revision {revision}", { + source: sourceLabel(active.source), + revision: shortRevision(active.blobSha), + })}

    - Last successful check: + + Last successful check:{" "} + + + +

    {(failedOutcomeMessage ?? failureMessage) ? (

    {failedOutcomeMessage ?? failureMessage}

    @@ -191,7 +218,7 @@ function EnvironmentProvenance(props: { disabled={!canRefresh || refreshing} onClick={() => void refreshNow()} > - {refreshing ? "Refreshing…" : "Refresh now"} + {refreshing ? gt("Refreshing…") : gt("Refresh now")}
    diff --git a/apps/web/src/plusplus/settings/TokenEfficiencySettings.tsx b/apps/web/src/plusplus/settings/TokenEfficiencySettings.tsx index 0209f6b8469db..819277bcb65f7 100644 --- a/apps/web/src/plusplus/settings/TokenEfficiencySettings.tsx +++ b/apps/web/src/plusplus/settings/TokenEfficiencySettings.tsx @@ -1,4 +1,5 @@ import { TOKEN_EFFICIENCY_LINKS } from "@t3tools/plusplus-extensions/tokenEfficiency"; +import { T, useGT, Var } from "gt-react"; import { SettingsRow, SettingsSection } from "../../components/settings/settingsLayout"; import { Switch } from "../../components/ui/switch"; @@ -17,6 +18,8 @@ import { tokenEfficiencyMixed, } from "./tokenEfficiencySettings.logic"; +const TOKEN_EFFICIENCY_REPOSITORY_NAME = "undefdev/token-efficiency"; + export function TokenEfficiencySettings() { const context = useOptionalSettingsScope(); if (context === null) return null; @@ -24,6 +27,7 @@ export function TokenEfficiencySettings() { } function TokenEfficiencySettingsContent() { + const gt = useGT(); const { scope, environments, connectedEnvironments, targets } = useSettingsScope(); const run = useRunScopedPlan(); const writeAllowed = useScopedSettingsWriteAllowed(); @@ -33,11 +37,11 @@ function TokenEfficiencySettingsContent() { const scopeSupportsToggle = scope.kind === "project" || scope.kind === "checkout"; return ( - + + Give agents a short checklist for reducing unnecessary context and tool output. Adapted from{" "} - undefdev/token-efficiency + {TOKEN_EFFICIENCY_REPOSITORY_NAME} . Disabled by default. - + } control={ - {isChecking ? "Checking…" : "Check again"} + {isChecking ? gt("Checking…") : gt("Check again")} } /> @@ -54,16 +56,16 @@ function UpstreamReleaseRowContent() { return ( - Create local upstream merge draft + Create local upstream merge draft } /> @@ -71,6 +73,7 @@ function UpstreamReleaseRowContent() { } export function UpstreamReleaseRow() { + const gt = useGT(); if (!isUpstreamReleaseNotificationBuild) { return null; } @@ -79,7 +82,7 @@ export function UpstreamReleaseRow() { return ( <> - + ); diff --git a/apps/web/src/plusplus/settings/contextBridgeSettings.logic.ts b/apps/web/src/plusplus/settings/contextBridgeSettings.logic.ts index 485e90f5b85c8..5f8047cecbfe7 100644 --- a/apps/web/src/plusplus/settings/contextBridgeSettings.logic.ts +++ b/apps/web/src/plusplus/settings/contextBridgeSettings.logic.ts @@ -3,6 +3,9 @@ import { type ProviderDriverKind, PROVIDER_DISPLAY_NAMES, } from "@t3tools/contracts"; +import { msg } from "gt-react"; + +import { m, type MessageResolver } from "~/i18n/messages"; import type { ProviderInstanceEntry } from "~/providerInstances"; export type ContextBridgeFeature = "instructions" | "skills" | "hooks"; @@ -85,11 +88,15 @@ export function buildRouteOptions( rowDriver: string, defaultSource: string, availableDrivers: ReadonlyArray, + resolve: MessageResolver = m, ): ReadonlyArray { const defaultSourceLabel = resolveDriverLabel(defaultSource, availableDrivers); const options: RouteOption[] = [ - { value: "native", label: "Native" }, - { value: "default", label: "Default (" + defaultSourceLabel + ")" }, + { value: "native", label: resolve(msg("Native", { $context: "context bridge source" })) }, + { + value: "default", + label: resolve(msg("Default ({source})", { source: defaultSourceLabel })), + }, ]; for (const { driver, label } of availableDrivers) { diff --git a/apps/web/src/plusplus/settings/tokenEfficiencySearch.ts b/apps/web/src/plusplus/settings/tokenEfficiencySearch.ts index 338cdd73b0c0f..f803f39f09fd6 100644 --- a/apps/web/src/plusplus/settings/tokenEfficiencySearch.ts +++ b/apps/web/src/plusplus/settings/tokenEfficiencySearch.ts @@ -1,9 +1,11 @@ +import { msg } from "gt-react"; + import type { SettingsSearchItem } from "../../components/settings/settingsSearch"; export const TOKEN_EFFICIENCY_SETTINGS_SEARCH_ITEMS = [ { id: "token-efficiency", - title: "Token efficiency", + title: msg("Token efficiency"), to: "/settings/projects", }, ] as const satisfies ReadonlyArray; diff --git a/apps/web/src/plusplus/settings/tokenEfficiencySettings.logic.ts b/apps/web/src/plusplus/settings/tokenEfficiencySettings.logic.ts index 9e2558c3707ec..ed6ec7cb423ab 100644 --- a/apps/web/src/plusplus/settings/tokenEfficiencySettings.logic.ts +++ b/apps/web/src/plusplus/settings/tokenEfficiencySettings.logic.ts @@ -3,6 +3,9 @@ import { withProjectTokenEfficiency, } from "@t3tools/plusplus-extensions/tokenEfficiency"; +import { msg } from "gt-react"; + +import { m } from "../../i18n/messages"; import { projectOverrideWrites, type ScopedSettingsTarget, @@ -46,6 +49,10 @@ export function planTokenEfficiencyPatch( unavailableReason: serverWrites.length > 0 ? null - : "Connect the selected checkouts, or update their environments, to save a project override.", + : m( + msg( + "Connect the selected checkouts, or update their environments, to save a project override.", + ), + ), }; } diff --git a/apps/web/src/plusplus/sidebar/SidebarUpstreamReleasePill.tsx b/apps/web/src/plusplus/sidebar/SidebarUpstreamReleasePill.tsx index 8056db60764e9..329649bb3ccaa 100644 --- a/apps/web/src/plusplus/sidebar/SidebarUpstreamReleasePill.tsx +++ b/apps/web/src/plusplus/sidebar/SidebarUpstreamReleasePill.tsx @@ -1,3 +1,5 @@ +import { useGT } from "gt-react"; + import { useNewThreadHandler } from "~/hooks/useHandleNewThread"; import { startUpstreamMerge, @@ -15,6 +17,7 @@ import { } from "../upstreamRelease.logic"; function SidebarUpstreamReleasePillContent() { + const gt = useGT(); useUpstreamReleasePolling(); const eligible = useUpstreamMergeEligible(); const newThread = useNewThreadHandler(); @@ -28,11 +31,17 @@ function SidebarUpstreamReleasePillContent() { const { tag } = result; const deferred = shouldDeferUpstreamMerge(desktopUpdateState); const title = deferred - ? `Upstream ${tag} ready, install fork update first` - : `Upstream ${tag} ready to merge`; + ? gt("Upstream {tag} ready, install fork update first", { tag }) + : gt("Upstream {tag} ready to merge", { tag }); const description = deferred - ? `Upstream release ${tag} is not yet merged into main. Install the pending fork update before merging upstream.` - : `Upstream release ${tag} is not yet merged into main. Click to create a local merge draft thread in your fork checkout. Nothing is pushed.`; + ? gt( + "Upstream release {tag} is not yet merged into main. Install the pending fork update before merging upstream.", + { tag }, + ) + : gt( + "Upstream release {tag} is not yet merged into main. Click to create a local merge draft thread in your fork checkout. Nothing is pushed.", + { tag }, + ); const handleClick = () => { if (deferred) { diff --git a/apps/web/src/plusplus/state/upstreamRelease.ts b/apps/web/src/plusplus/state/upstreamRelease.ts index 871abca10d44d..af38322a34ca8 100644 --- a/apps/web/src/plusplus/state/upstreamRelease.ts +++ b/apps/web/src/plusplus/state/upstreamRelease.ts @@ -8,6 +8,7 @@ import { } from "@t3tools/client-runtime/operations"; import { runAtomCommand, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime"; import { AsyncResult, Atom } from "effect/reactivity"; +import { msg } from "gt-react"; import { useEffect } from "react"; import { @@ -49,8 +50,18 @@ import { upstreamMergeAccess, } from "./upstreamMergeAccess"; -const NO_PROJECT_FOUND_MESSAGE = `No project found for github.com/${FORK_REPOSITORY}. Add the fork checkout as a project first.`; -const START_MERGE_FAILED_MESSAGE = "Could not start upstream merge"; +const NO_PROJECT_FOUND_MESSAGE = msg( + "No project found for github.com/{repository}. Add the fork checkout as a project first.", + { repository: FORK_REPOSITORY }, +); +const START_MERGE_FAILED_MESSAGE = msg("Could not start upstream merge"); +const UPDATE_FORK_FIRST_TITLE = msg("Update the fork first"); +const UPDATE_FORK_FIRST_DESCRIPTION = msg( + "A desktop update is ready. Update the fork before merging upstream.", +); +const MERGE_DRAFT_INCOMPLETE_MESSAGE = msg( + "The merge draft is missing its project, model, or workspace settings.", +); export type NewThreadRunner = ReturnType; interface StartUpstreamMergeOptions { @@ -144,8 +155,8 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: "Update the fork first", - description: "A desktop update is ready. Update the fork before merging upstream.", + title: m(UPDATE_FORK_FIRST_TITLE), + description: m(UPDATE_FORK_FIRST_DESCRIPTION), }), ); return; @@ -158,7 +169,7 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: NO_PROJECT_FOUND_MESSAGE, + title: m(NO_PROJECT_FOUND_MESSAGE), }), ); return; @@ -171,8 +182,8 @@ async function startUpstreamMergeUnchecked( type: "error", title: pushAccess === undefined - ? "Couldn't check push access to WianVDM/t3code" - : "No push access to WianVDM/t3code", + ? m(msg("Couldn't check push access to {repository}"), { repository: FORK_REPOSITORY }) + : m(msg("No push access to {repository}"), { repository: FORK_REPOSITORY }), }), ); return; @@ -182,7 +193,7 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: START_MERGE_FAILED_MESSAGE, + title: m(START_MERGE_FAILED_MESSAGE), description: m(ORCHESTRATION_OPERATE_DENIED_MESSAGE), }), ); @@ -193,7 +204,7 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: "Could not open a new thread. Open the sidebar and try again.", + title: m(msg("Could not open a new thread. Open the sidebar and try again.")), }), ); return; @@ -227,8 +238,8 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: START_MERGE_FAILED_MESSAGE, - description: "The merge draft is missing its project, model, or workspace settings.", + title: m(START_MERGE_FAILED_MESSAGE), + description: m(MERGE_DRAFT_INCOMPLETE_MESSAGE), }), ); return; @@ -260,8 +271,8 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: START_MERGE_FAILED_MESSAGE, - description: "The merge draft is missing its project, model, or workspace settings.", + title: m(START_MERGE_FAILED_MESSAGE), + description: m(MERGE_DRAFT_INCOMPLETE_MESSAGE), }), ); return; @@ -314,8 +325,8 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: "Update the fork first", - description: "A desktop update is ready. Update the fork before merging upstream.", + title: m(UPDATE_FORK_FIRST_TITLE), + description: m(UPDATE_FORK_FIRST_DESCRIPTION), }), ); return; @@ -341,8 +352,9 @@ async function startUpstreamMergeUnchecked( toastManager.add( stackedThreadToast({ type: "error", - title: START_MERGE_FAILED_MESSAGE, - description: error instanceof Error ? error.message : "Failed to start the merge agent.", + title: m(START_MERGE_FAILED_MESSAGE), + description: + error instanceof Error ? error.message : m(msg("Failed to start the merge agent.")), }), ); } @@ -360,7 +372,7 @@ export async function runManualUpstreamCheck(): Promise { toastManager.add( stackedThreadToast({ type: "error", - title: "Could not check upstream releases", + title: m(msg("Could not check upstream releases")), description: result.reason, }), ); @@ -372,12 +384,16 @@ export async function runManualUpstreamCheck(): Promise { const toastId = toastManager.add( stackedThreadToast({ type: "info", - title: `Upstream ${result.tag} is ready to merge`, + title: m(msg("Upstream {tag} is ready to merge"), { tag: result.tag }), ...(shouldDeferMerge - ? { description: "Update the fork first, then create a local upstream merge draft." } + ? { + description: m( + msg("Update the fork first, then create a local upstream merge draft."), + ), + } : { actionProps: { - children: "Create local upstream merge draft", + children: m(msg("Create local upstream merge draft")), onClick: () => { toastManager.close(toastId); void startUpstreamMerge(result.tag); diff --git a/apps/web/src/plusplus/upstreamRelease.logic.ts b/apps/web/src/plusplus/upstreamRelease.logic.ts index 7f813d4531b32..c1e6946998827 100644 --- a/apps/web/src/plusplus/upstreamRelease.logic.ts +++ b/apps/web/src/plusplus/upstreamRelease.logic.ts @@ -70,6 +70,7 @@ export function isUpstreamCacheEntryFresh(entry: UpstreamReleaseCacheEntry, now: } export function buildUpstreamMergePrompt(tag: string): string { + // oxlint-disable-next-line t3code/no-untranslated-copy -- agent prompt; agents get English return `Merge upstream release ${tag} (https://github.com/pingdotgg/t3code/releases/tag/${tag}) into this fork. 1. Run \`node scripts/upstream-sync.ts --tag ${tag} prepare\`. Let the script create \`sync/upstream-${tag}\` and handle the \`git merge ${tag}\` mechanics; the final commit must be a real merge commit (no squash, no rebase). diff --git a/apps/web/src/plusplus/usage/MonetaryUsage.tsx b/apps/web/src/plusplus/usage/MonetaryUsage.tsx index a2585890eb554..a69e3131c148a 100644 --- a/apps/web/src/plusplus/usage/MonetaryUsage.tsx +++ b/apps/web/src/plusplus/usage/MonetaryUsage.tsx @@ -1,4 +1,5 @@ import type { LimitAccount, LimitPool } from "@t3tools/shared/usageLimits"; +import { T, useMessages } from "gt-react"; import type { ReactNode } from "react"; import { monetaryUsageOf, monetaryUsageText } from "./monetaryUsage.logic"; @@ -13,6 +14,7 @@ export function MonetaryUsageAccounts({ readonly showEmptyLabel: boolean; readonly renderAccountName: (account: LimitAccount, className: string) => ReactNode; }) { + const m = useMessages(); const rows = pool.accounts.flatMap((account) => { const monetary = monetaryUsageOf(account.limits); return monetary ? [{ account, monetary }] : []; @@ -21,13 +23,15 @@ export function MonetaryUsageAccounts({ return (
    {showEmptyLabel ? ( - No rate-limit windows reported + + No rate-limit windows reported + ) : null} {rows.map(({ account, monetary }) => ( {renderAccountName(account, "min-w-0 truncate font-medium text-foreground")} - {monetaryUsageText(monetary)} + {monetaryUsageText(monetary, m)} ))} diff --git a/apps/web/src/plusplus/usage/PooledMonetaryUsage.tsx b/apps/web/src/plusplus/usage/PooledMonetaryUsage.tsx index 3916c8f572928..8b43f4f588fac 100644 --- a/apps/web/src/plusplus/usage/PooledMonetaryUsage.tsx +++ b/apps/web/src/plusplus/usage/PooledMonetaryUsage.tsx @@ -1,6 +1,7 @@ import type { ProviderDriverKind } from "@t3tools/contracts"; import { formatUsd } from "@t3tools/shared/usageFormat"; import type { LimitAccount } from "@t3tools/plusplus-extensions/usageReporting"; +import { useGT } from "gt-react"; import { ModelVendorIcon, usesModelVendorIcon } from "./modelVendorIcon"; import { monetaryUsageOf } from "./monetaryUsage.logic"; @@ -15,18 +16,22 @@ function MonetaryRow({ label, value }: { readonly label: string; readonly value: } export function SegmentMonetaryUsage({ limits }: { readonly limits: LimitAccount["limits"] }) { + const gt = useGT(); const monetary = monetaryUsageOf(limits); if (!monetary) return null; return (
    {monetary.usedUsd !== undefined ? ( - + ) : null} {monetary.remainingUsd !== undefined ? ( - + ) : null} {monetary.limitUsd !== undefined ? ( - + ) : null}
    ); diff --git a/apps/web/src/plusplus/usage/monetaryUsage.logic.ts b/apps/web/src/plusplus/usage/monetaryUsage.logic.ts index a54be04b75712..7bcf20cf1c5be 100644 --- a/apps/web/src/plusplus/usage/monetaryUsage.logic.ts +++ b/apps/web/src/plusplus/usage/monetaryUsage.logic.ts @@ -1,5 +1,8 @@ import { formatUsd } from "@t3tools/shared/usageFormat"; import { readMonetaryUsage, type LimitAccount } from "@t3tools/plusplus-extensions/usageReporting"; +import { msg } from "gt-react"; + +import { m, type MessageResolver } from "~/i18n/messages"; export type MonetaryUsage = NonNullable; @@ -12,11 +15,17 @@ export function monetaryUsageOf(limits: LimitAccount["limits"]): MonetaryUsage | : monetary; } -export function monetaryUsageText(monetary: MonetaryUsage): string { +export function monetaryUsageText(monetary: MonetaryUsage, resolve: MessageResolver = m): string { return [ - monetary.usedUsd !== undefined ? `${formatUsd(monetary.usedUsd)} used` : null, - monetary.remainingUsd !== undefined ? `${formatUsd(monetary.remainingUsd)} left` : null, - monetary.limitUsd !== undefined ? `${formatUsd(monetary.limitUsd)} limit` : null, + monetary.usedUsd !== undefined + ? resolve(msg("{amount} used"), { amount: formatUsd(monetary.usedUsd) }) + : null, + monetary.remainingUsd !== undefined + ? resolve(msg("{amount} left"), { amount: formatUsd(monetary.remainingUsd) }) + : null, + monetary.limitUsd !== undefined + ? resolve(msg("{amount} limit"), { amount: formatUsd(monetary.limitUsd) }) + : null, ] .filter((part) => part !== null) .join(" · "); diff --git a/plusplus/seams.json b/plusplus/seams.json index 978f19b90e84d..79fff5c72885f 100644 --- a/plusplus/seams.json +++ b/plusplus/seams.json @@ -582,6 +582,156 @@ } ] }, + "apps/mobile/src/i18n/translations/de.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-de", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:50ba82e6371f73ce" + } + ] + }, + "apps/mobile/src/i18n/translations/en.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-en", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:ec909742f4121d42" + } + ] + }, + "apps/mobile/src/i18n/translations/es.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-es", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:e77f74fde5565c99" + } + ] + }, + "apps/mobile/src/i18n/translations/fr.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-fr", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:18665037e206be99" + } + ] + }, + "apps/mobile/src/i18n/translations/ja.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-ja", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:fabdffb6858a369d" + } + ] + }, + "apps/mobile/src/i18n/translations/ko.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-ko", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:575c89273dd07ea7" + } + ] + }, + "apps/mobile/src/i18n/translations/pt-BR.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-pt-br", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:9ccd0e6f70621518" + } + ] + }, + "apps/mobile/src/i18n/translations/ru.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-ru", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:23386cdf0c0a029c" + } + ] + }, + "apps/mobile/src/i18n/translations/sv.json": { + "delta": [54, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-sv", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:90925a3898687d2c" + } + ] + }, + "apps/mobile/src/i18n/translations/zh.json": { + "delta": [52, 0], + "seams": [ + { + "id": "generated.mobile-i18n-catalog-zh", + "feature": "generated", + "mechanism": "generated", + "anchor": { + "file": true + }, + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings. Take upstream, then regenerate and re-add the ++ translations.", + "fingerprint": "sha256:909681fa52fcda72" + } + ] + }, "apps/mobile/src/widgets/subscriptionUsageSnapshot.ts": { "delta": [1, 1], "seams": [ @@ -1265,7 +1415,7 @@ "legacy": true }, "apps/web/src/components/settings/AboutVersionTitle.tsx": { - "delta": [3, 1], + "delta": [2, 3], "legacy": true }, "apps/web/src/components/settings/MultipleAccountsNote.tsx": { @@ -1311,7 +1461,7 @@ "legacy": true }, "apps/web/src/components/settings/UpdateTrackSwitchDialog.tsx": { - "delta": [16, 14], + "delta": [20, 14], "legacy": true }, "apps/web/src/components/settings/scopedSettings.ts": { @@ -1330,7 +1480,7 @@ ] }, "apps/web/src/components/settings/settingsSearch.ts": { - "delta": [26, 0], + "delta": [23, 0], "legacy": true }, "apps/web/src/components/settings/useScopedSettings.ts": { @@ -1475,7 +1625,7 @@ "legacy": true }, "apps/web/src/i18n/translations/de.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-de", @@ -1484,13 +1634,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:3bc8c7e1e99b8d1d" } ] }, "apps/web/src/i18n/translations/en.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-en", @@ -1499,13 +1649,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:46254bfe9f5361fe" } ] }, "apps/web/src/i18n/translations/es.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-es", @@ -1514,13 +1664,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:2cc6b3f84e12e42b" } ] }, "apps/web/src/i18n/translations/fr.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-fr", @@ -1529,13 +1679,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:5387ec712dc6237b" } ] }, "apps/web/src/i18n/translations/ja.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-ja", @@ -1544,13 +1694,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:7a20e1b5f58d89cc" } ] }, "apps/web/src/i18n/translations/ko.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-ko", @@ -1559,13 +1709,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:6f68eca34afb0215" } ] }, "apps/web/src/i18n/translations/pt-BR.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-pt-br", @@ -1574,13 +1724,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:1a872ccb29547e62" } ] }, "apps/web/src/i18n/translations/ru.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-ru", @@ -1589,13 +1739,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:7ff809610838a432" } ] }, "apps/web/src/i18n/translations/sv.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-sv", @@ -1604,13 +1754,13 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:47552a385241daf8" } ] }, "apps/web/src/i18n/translations/zh.json": { - "delta": [0, 6], + "delta": [128, 6], "seams": [ { "id": "generated.web-i18n-catalog-zh", @@ -1619,7 +1769,7 @@ "anchor": { "file": true }, - "reason": "Regenerated by `vp run i18n:generate`: the fork drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate.", + "reason": "Regenerated by `vp run i18n:generate`: the fork adds translated ++ strings and drops upstream strings whose calls it removed (relaunch-command copy, npm registry lookup). Take upstream, then regenerate and re-add the ++ translations.", "fingerprint": "sha256:8f8db1609b8c31f0" } ] @@ -2427,7 +2577,7 @@ "legacy": true }, "vite.config.ts": { - "delta": [2, 2], + "delta": [0, 2], "legacy": true } }, diff --git a/vite.config.ts b/vite.config.ts index 8f635def1375e..996b2aa7423af 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -592,8 +592,6 @@ export default defineConfig({ "**/*.test-fixtures.ts", "**/{test-fixtures,*TestFixtures}.ts", "apps/mobile/src/features/development/**", - // ++ copy predates i18n; drop this once the ++ strings are wrapped. - "apps/*/src/plusplus/**", "packages/client-runtime/src/rpc/**", ], rules: { "t3code/no-untranslated-copy": "error" },