Skip to content

Commit 8dcdaa7

Browse files
committed
Migrate git and model information messages to the i18n translation system
- move [Fragment] to i18n - move[Fragment] to i18n in `apps/editor/src/i18n/translations/views/prompt/utils/symbols/git/replace-git-symbols.ts`. add proper index.ts files in parents. - variables should use spaces, not underscores ├── apps │ └── editor │ └── src │ ├── i18n │ │ ├── index.ts │ │ └── translations │ │ ├── commands │ │ │ ├── apply-response.ts │ │ │ ├── copy-markdown.ts │ │ │ ├── history.ts │ │ │ ├── restore-file-selection.ts │ │ │ ├── save-file-selection.ts │ │ │ ├── search-files.ts │ │ │ ├── select-definition-file.ts │ │ │ ├── select-files-of-commit.ts │ │ │ ├── select-imported-files.ts │ │ │ ├── select-referencing-files.ts │ │ │ └── set-ranges.ts │ │ ├── common.ts │ │ ├── features │ │ │ ├── checkpoints.ts │ │ │ ├── context-restoration.ts │ │ │ └── search-files.ts │ │ └── views │ │ ├── common │ │ │ └── handlers │ │ │ └── common.ts │ │ ├── prompt │ │ │ ├── handlers │ │ │ │ ├── copy-prompt.ts │ │ │ │ ├── handle-agentic-search.ts │ │ │ │ ├── hash-sign.ts │ │ │ │ ├── index.ts │ │ │ │ ├── utils │ │ │ │ │ ├── index.ts │ │ │ │ │ └── symbols │ │ │ │ │ ├── git │ │ │ │ │ │ ├── index.ts │ │ │ │ │ │ └── replace-git-symbols.ts │ │ │ │ │ └── index.ts │ │ │ │ └── voice-input.ts │ │ │ ├── index.ts │ │ │ └── utils │ │ │ ├── index.ts │ │ │ └── symbols │ │ │ ├── git │ │ │ │ ├── index.ts │ │ │ │ └── replace-git-symbols.ts │ │ │ └── index.ts │ │ ├── settings │ │ │ └── handlers │ │ │ ├── open-allow-patterns-settings.ts │ │ │ └── open-ignore-patterns-settings.ts │ │ └── shared │ │ └── actions │ │ └── api │ │ ├── common.ts │ │ ├── create │ │ │ └── interactions │ │ │ ├── initial-select-model.ts │ │ │ └── verify-model.ts │ │ └── update │ │ └── interactions │ │ └── edit-model-for-api-config.ts │ └── views │ ├── prompt │ │ └── backend │ │ └── utils │ │ └── symbols │ │ └── git │ │ └── replace-git-symbols.ts │ └── shared │ └── actions │ └── api │ └── create │ └── interactions │ └── initial-select-model.ts └── packages └── shared └── src └── constants └── dictionary.ts
1 parent aadc2a6 commit 8dcdaa7

12 files changed

Lines changed: 156 additions & 83 deletions

File tree

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
export const translations = {
22
'views.common.handlers.common.confirm-discard-unsaved-changes': {
3-
en: 'Discard unsaved changes to the {item_type}?',
4-
pl: 'Odrzucić niezapisane zmiany w {item_type}?',
5-
'zh-cn': '放弃对 {item_type} 的未保存更改?',
6-
ja: '{item_type} への未保存の変更を破棄しますか?',
7-
'zh-tw': '放棄對 {item_type} 的未保存更改?',
8-
de: 'Nicht gespeicherte Änderungen an {item_type} verwerfen?',
9-
es: '¿Descartar los cambios no guardados en {item_type}?',
10-
fr: 'Ignorer les modifications non enregistrées pour {item_type} ?',
11-
'pt-br': 'Descartar alterações não salvas em {item_type}?',
12-
ru: 'Отменить несохраненные изменения в {item_type}?',
13-
ko: '{item_type}에 대한 저장되지 않은 변경 사항을 취소하시겠습니까?',
14-
it: 'Ignorare le modifiche non salvate a {item_type}?',
15-
tr: '{item_type} üzerindeki kaydedilmemiş değişiklikler atılsın mı?',
16-
cs: 'Zahodit neuložené změny v {item_type}?',
17-
hu: 'Elveti a(z) {item_type} nem mentett változtatásait?',
18-
bg: 'Отхвърляне на незапазените промени в {item_type}?'
3+
en: 'Discard unsaved changes to the {item type}?',
4+
pl: 'Odrzucić niezapisane zmiany w {item type}?',
5+
'zh-cn': '放弃对 {item type} 的未保存更改?',
6+
ja: '{item type} への未保存の変更を破棄しますか?',
7+
'zh-tw': '放棄對 {item type} 的未保存更改?',
8+
de: 'Nicht gespeicherte Änderungen an {item type} verwerfen?',
9+
es: '¿Descartar los cambios no guardados en {item type}?',
10+
fr: 'Ignorer les modifications non enregistrées pour {item type} ?',
11+
'pt-br': 'Descartar alterações não salvas em {item type}?',
12+
ru: 'Отменить несохраненные изменения в {item type}?',
13+
ko: '{item type}에 대한 저장되지 않은 변경 사항을 취소하시겠습니까?',
14+
it: 'Ignorare le modifiche non salvate a {item type}?',
15+
tr: '{item type} üzerindeki kaydedilmemiş değişiklikler atılsın mı?',
16+
cs: 'Zahodit neuložené změny v {item type}?',
17+
hu: 'Elveti a(z) {item type} nem mentett változtatásait?',
18+
bg: 'Отхвърляне на незапазените промени в {item type}?'
1919
},
2020
'views.common.handlers.common.unsaved-changes-will-be-lost': {
21-
en: 'If you discard, updates to the {item_type} will be lost.',
22-
pl: 'Jeśli odrzucisz, aktualizacje {item_type} zostaną utracone.',
23-
'zh-cn': '如果放弃,对 {item_type} 的更新将会丢失。',
24-
ja: '破棄すると、{item_type} への更新は失われます。',
25-
'zh-tw': '如果放棄,對 {item_type} 的更新將會遺失。',
26-
de: 'Wenn Sie verwerfen, gehen die Aktualisierungen an {item_type} verloren.',
27-
es: 'Si descarta, se perderán las actualizaciones de {item_type}.',
28-
fr: 'Si vous ignorez, les mises à jour de {item_type} seront perdues.',
21+
en: 'If you discard, updates to the {item type} will be lost.',
22+
pl: 'Jeśli odrzucisz, aktualizacje {item type} zostaną utracone.',
23+
'zh-cn': '如果放弃,对 {item type} 的更新将会丢失。',
24+
ja: '破棄すると、{item type} への更新は失われます。',
25+
'zh-tw': '如果放棄,對 {item type} 的更新將會遺失。',
26+
de: 'Wenn Sie verwerfen, gehen die Aktualisierungen an {item type} verloren.',
27+
es: 'Si descarta, se perderán las actualizaciones de {item type}.',
28+
fr: 'Si vous ignorez, les mises à jour de {item type} seront perdues.',
2929
'pt-br':
30-
'Se você descartar, as atualizações em {item_type} serão perdidas.',
31-
ru: 'Если вы отмените, обновления {item_type} будут потеряны.',
32-
ko: '취소하면 {item_type}에 대한 업데이트가 손실됩니다.',
33-
it: 'Se ignori, gli aggiornamenti a {item_type} andranno persi.',
34-
tr: 'Vazgeçerseniz, {item_type} üzerindeki güncellemeler kaybolur.',
35-
cs: 'Pokud zahodíte, aktualizace {item_type} budou ztraceny.',
36-
hu: 'Ha elveti, a(z) {item_type} frissítései elvesznek.',
37-
bg: 'Ако отхвърлите, актуализациите на {item_type} ще бъдат загубени.'
30+
'Se você descartar, as atualizações em {item type} serão perdidas.',
31+
ru: 'Если вы отмените, обновления {item type} будут потеряны.',
32+
ko: '취소하면 {item type}에 대한 업데이트가 손실됩니다.',
33+
it: 'Se ignori, gli aggiornamenti a {item type} andranno persi.',
34+
tr: 'Vazgeçerseniz, {item type} üzerindeki güncellemeler kaybolur.',
35+
cs: 'Pokud zahodíte, aktualizace {item type} budou ztraceny.',
36+
hu: 'Ha elveti, a(z) {item type} frissítései elvesznek.',
37+
bg: 'Ако отхвърлите, актуализациите на {item type} ще бъдат загубени.'
3838
}
3939
} as const
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
export const translations = {
22
'views.prompt.handlers.utils.symbols.git.replace-git-symbols.commit-seems-empty':
33
{
4-
en: 'Commit {commit_hash} seems empty.',
5-
pl: 'Commit {commit_hash} wydaje się być pusty.',
6-
'zh-cn': '提交 {commit_hash} 似乎是空的。',
7-
ja: 'コミット {commit_hash} は空のようです。',
8-
'zh-tw': '提交 {commit_hash} 似乎是空的。',
9-
de: 'Commit {commit_hash} scheint leer zu sein.',
10-
es: 'El commit {commit_hash} parece estar vacío.',
11-
fr: 'Le commit {commit_hash} semble vide.',
12-
'pt-br': 'O commit {commit_hash} parece estar vazio.',
13-
ru: 'Коммит {commit_hash} кажется пустым.',
14-
ko: '커밋 {commit_hash}이(가) 비어 있는 것 같습니다.',
15-
it: 'Il commit {commit_hash} sembra vuoto.',
16-
tr: 'Commit {commit_hash} boş görünüyor.',
17-
cs: 'Commit {commit_hash} se zdá být prázdný.',
18-
hu: 'A(z) {commit_hash} commit üresnek tűnik.',
19-
bg: 'Комитът {commit_hash} изглежда празен.'
4+
en: 'Commit {commit hash} seems empty.',
5+
pl: 'Commit {commit hash} wydaje się być pusty.',
6+
'zh-cn': '提交 {commit hash} 似乎是空的。',
7+
ja: 'コミット {commit hash} は空のようです。',
8+
'zh-tw': '提交 {commit hash} 似乎是空的。',
9+
de: 'Commit {commit hash} scheint leer zu sein.',
10+
es: 'El commit {commit hash} parece estar vacío.',
11+
fr: 'Le commit {commit hash} semble vide.',
12+
'pt-br': 'O commit {commit hash} parece estar vazio.',
13+
ru: 'Коммит {commit hash} кажется пустым.',
14+
ko: '커밋 {commit hash}이(가) 비어 있는 것 같습니다.',
15+
it: 'Il commit {commit hash} sembra vuoto.',
16+
tr: 'Commit {commit hash} boş görünüyor.',
17+
cs: 'Commit {commit hash} se zdá být prázdný.',
18+
hu: 'A(z) {commit hash} commit üresnek tűnik.',
19+
bg: 'Комитът {commit hash} изглежда празен.'
2020
}
2121
} as const
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { translations as handlers } from './handlers'
2+
import { translations as utils } from './utils'
23

34
export const translations = {
4-
...handlers
5+
...handlers,
6+
...utils
57
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { translations as symbols } from './symbols'
2+
3+
export const translations = {
4+
...symbols
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { translations as replace_git_symbols } from './replace-git-symbols'
2+
3+
export const translations = {
4+
...replace_git_symbols
5+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
export const translations = {
2+
'views.prompt.utils.symbols.git.replace-git-symbols.no-changes-found-between-branches':
3+
{
4+
en: 'No changes found between current branch and {branch name}.',
5+
pl: 'Nie znaleziono zmian między bieżącą gałęzią a {branch name}.',
6+
'zh-cn': '当前分支与 {branch name} 之间未发现更改。',
7+
ja: '現在のブランチと {branch name} の間に変更は見つかりませんでした。',
8+
'zh-tw': '當前分支與 {branch name} 之間未發現更改。',
9+
de: 'Es wurden keine Änderungen zwischen dem aktuellen Branch und {branch name} gefunden.',
10+
es: 'No se encontraron cambios entre la rama actual y {branch name}.',
11+
fr: 'Aucune modification trouvée entre la branche actuelle et {branch name}.',
12+
'pt-br':
13+
'Nenhuma alteração encontrada entre a branch atual e {branch name}.',
14+
ru: 'Не найдено изменений между текущей веткой и {branch name}.',
15+
ko: '현재 브랜치와 {branch name} 사이에 변경 사항이 없습니다.',
16+
it: 'Nessuna modifica trovata tra il branch corrente e {branch name}.',
17+
tr: 'Mevcut dal ile {branch name} arasında hiçbir değişiklik bulunamadı.',
18+
cs: 'Mezi aktuální větví a {branch name} nebyly nalezeny žádné změny.',
19+
hu: 'Nem található változás a jelenlegi ág és a(z) {branch name} között.',
20+
bg: 'Не са намерени промени между текущия клон и {branch name}.'
21+
},
22+
'views.prompt.utils.symbols.git.replace-git-symbols.no-changes-found-between-branches-in-folder':
23+
{
24+
en: 'No changes found between current branch and {branch name} in {folder name}.',
25+
pl: 'Nie znaleziono zmian między bieżącą gałęzią a {branch name} w {folder name}.',
26+
'zh-cn': '在 {folder name} 中未发现当前分支与 {branch name} 之间的更改。',
27+
ja: '{folder name} 内の現在のブランチと {branch name} の間に変更は見つかりませんでした。',
28+
'zh-tw': '在 {folder name} 中未發現當前分支與 {branch name} 之間的更改。',
29+
de: 'Es wurden keine Änderungen zwischen dem aktuellen Branch und {branch name} in {folder name} gefunden.',
30+
es: 'No se encontraron cambios entre la rama actual y {branch name} en {folder name}.',
31+
fr: 'Aucune modification trouvée entre la branche actuelle et {branch name} dans {folder name}.',
32+
'pt-br':
33+
'Nenhuma alteração encontrada entre a branch atual e {branch name} em {folder name}.',
34+
ru: 'Не найдено изменений между текущей веткой и {branch name} в {folder name}.',
35+
ko: '{folder name}에서 현재 브랜치와 {branch name} 사이에 변경 사항이 없습니다.',
36+
it: 'Nessuna modifica trovata tra il branch corrente e {branch name} in {folder name}.',
37+
tr: '{folder name} içinde mevcut dal ile {branch name} arasında hiçbir değişiklik bulunamadı.',
38+
cs: 'Mezi aktuální větví a {branch name} v {folder name} nebyly nalezeny žádné změny.',
39+
hu: 'Nem található változás a jelenlegi ág és a(z) {branch name} között a(z) {folder name} mappában.',
40+
bg: 'Не са намерени промени между текущия клон и {branch name} в {folder name}.'
41+
}
42+
} as const
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { translations as git } from './git'
2+
3+
export const translations = {
4+
...git
5+
}

‎apps/editor/src/i18n/translations/views/shared/actions/api/create/interactions/initial-select-model.ts‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,27 @@ export const translations = {
5454
cs: 'Načítání modelů...',
5555
hu: 'Modellek lekérése...',
5656
bg: 'Извличане на модели...'
57+
},
58+
'views.shared.actions.api.create.interactions.initial-select-model.models-route-not-found':
59+
{
60+
en: "The '/models' route was not found for {{provider name}}. This might mean the provider does not support listing models.",
61+
pl: "Nie znaleziono ścieżki '/models' dla {{provider name}}. Może to oznaczać, że dostawca nie obsługuje listowania modeli.",
62+
'zh-cn':
63+
"找不到 {{provider name}} 的 '/models' 路由。这可能意味着该提供商不支持列出模型。",
64+
ja: "{{provider name}} の '/models' ルートが見つかりませんでした。これは、プロバイダーがモデルのリスト表示をサポートしていない可能性があることを意味します。",
65+
'zh-tw':
66+
"找不到 {{provider name}} 的 '/models' 路由。這可能意味著該提供商不支持列出模型。",
67+
de: "Die Route '/models' wurde für {{provider name}} nicht gefunden. Dies könnte bedeuten, dass der Anbieter das Auflisten von Modellen nicht unterstützt.",
68+
es: "No se encontró la ruta '/models' para {{provider name}}. Esto podría significar que el proveedor no soporta listar modelos.",
69+
fr: "La route '/models' n'a pas été trouvée pour {{provider name}}. Cela pourrait signifier que le fournisseur ne prend pas en charge la liste des modèles.",
70+
'pt-br':
71+
"A rota '/models' não foi encontrada para {{provider name}}. Isso pode significar que o provedor não suporta a listagem de modelos.",
72+
ru: "Маршрут '/models' не найден для {{provider name}}. Это может означать, что провайдер не поддерживает список моделей.",
73+
ko: "{{provider name}}에 대한 '/models' 경로를 찾을 수 없습니다. 이는 공급자가 모델 나열을 지원하지 않을 수 있음을 의미합니다.",
74+
it: "La route '/models' non è stata trovata per {{provider name}}. Questo potrebbe significare che il provider non supporta l'elenco dei modelli.",
75+
tr: "{{provider name}} için '/models' rotası bulunamadı. Bu, sağlayıcının modelleri listelemeyi desteklemediği anlamına gelebilir.",
76+
cs: "Trasa '/models' nebyla nalezena pro {{provider name}}. To může znamenat, že poskytovatel nepodporuje výpis modelů.",
77+
hu: "A '/models' útvonal nem található ehhez: {{provider name}}. Ez azt jelentheti, hogy a szolgáltató nem támogatja a modellek listázását.",
78+
bg: "Маршрутът '/models' не беше намерен за {{provider name}}. Това може да означава, че доставчикът не поддържа списък с модели."
5779
}
5880
} as const

0 commit comments

Comments
 (0)