@opencode-ai/ui 0.0.0-dev-202608040510 → 0.0.0-dev-202608040714

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/i18n/ar.d.ts +22 -0
  2. package/dist/i18n/br.d.ts +22 -0
  3. package/dist/i18n/bs.d.ts +22 -0
  4. package/dist/i18n/da.d.ts +22 -0
  5. package/dist/i18n/de.d.ts +22 -0
  6. package/dist/i18n/es.d.ts +22 -0
  7. package/dist/i18n/fr.d.ts +22 -0
  8. package/dist/i18n/ja.d.ts +22 -0
  9. package/dist/i18n/ko.d.ts +22 -0
  10. package/dist/i18n/pl.d.ts +22 -0
  11. package/dist/i18n/ru.d.ts +22 -0
  12. package/dist/i18n/th.d.ts +22 -0
  13. package/dist/i18n/tr.d.ts +22 -0
  14. package/dist/i18n/zh.d.ts +22 -0
  15. package/dist/i18n/zht.d.ts +22 -0
  16. package/package.json +1 -1
  17. package/src/i18n/ar.ts +24 -0
  18. package/src/i18n/az.ts +22 -0
  19. package/src/i18n/br.ts +24 -0
  20. package/src/i18n/bs.ts +24 -0
  21. package/src/i18n/da.ts +24 -0
  22. package/src/i18n/de.ts +22 -0
  23. package/src/i18n/en.ts +24 -0
  24. package/src/i18n/es.ts +24 -0
  25. package/src/i18n/fi.ts +22 -0
  26. package/src/i18n/fr.ts +25 -0
  27. package/src/i18n/hi.ts +23 -0
  28. package/src/i18n/id.ts +24 -0
  29. package/src/i18n/it.ts +22 -0
  30. package/src/i18n/ja.ts +24 -0
  31. package/src/i18n/ko.ts +24 -0
  32. package/src/i18n/nl.ts +22 -0
  33. package/src/i18n/no.ts +24 -0
  34. package/src/i18n/pa.ts +22 -0
  35. package/src/i18n/pl.ts +25 -0
  36. package/src/i18n/ru.ts +24 -0
  37. package/src/i18n/sv.ts +22 -0
  38. package/src/i18n/th.ts +24 -0
  39. package/src/i18n/tr.ts +24 -0
  40. package/src/i18n/uk.ts +24 -0
  41. package/src/i18n/ur.ts +22 -0
  42. package/src/i18n/vi.ts +22 -0
  43. package/src/i18n/zh.ts +24 -0
  44. package/src/i18n/zht.ts +24 -0
  45. package/src/v2/components/dialog-v2.css +2 -2
  46. package/src/v2/components/dialog-v2.tsx +3 -1
  47. package/src/v2/components/inline-input-v2.tsx +3 -1
  48. package/src/v2/components/line-comment-v2.css +1 -1
  49. package/src/v2/components/line-comment-v2.tsx +6 -4
  50. package/src/v2/components/tabs-v2.css +4 -4
  51. package/src/v2/components/tabs-v2.tsx +4 -2
  52. package/src/v2/components/text-input-v2.tsx +7 -1
  53. package/src/v2/components/toast-v2.tsx +5 -2
package/src/i18n/sv.ts CHANGED
@@ -48,6 +48,7 @@ export const dict: Record<string, string> = {
48
48
  "ui.lineComment.editorLabel.prefix": "Kommenterar ",
49
49
  "ui.lineComment.editorLabel.suffix": "",
50
50
  "ui.lineComment.placeholder": "Lägg till kommentar",
51
+ "ui.lineComment.contextPlaceholder": "Lägg till kontext för den här ändringen",
51
52
  "ui.lineComment.submit": "Kommentera",
52
53
  "ui.lineComment.cancel": "Avbryt",
53
54
  "ui.sessionTurn.steps.show": "Visa steg",
@@ -109,6 +110,23 @@ export const dict: Record<string, string> = {
109
110
  "ui.fileSearch.nextMatch": "Nästa match",
110
111
  "ui.fileSearch.close": "Stäng sökning",
111
112
  "ui.messageNav.newMessage": "Nytt meddelande",
113
+ "ui.promptInput.noMatchingItems": "Inga matchande objekt",
114
+ "ui.promptInput.commands": "Kommandon",
115
+ "ui.promptInput.dropFiles": "Släpp filer för att bifoga dem",
116
+ "ui.promptInput.removeAttachment": "Ta bort bilagan",
117
+ "ui.promptInput.label": "Prompt",
118
+ "ui.promptInput.placeholder.shell": "Ange skalkommando...",
119
+ "ui.promptInput.placeholder.normal": "Fråga vad som helst, {{slash}} för kommandon, {{at}} för kontext...",
120
+ "ui.promptInput.add": "Lägg till bilder och filer",
121
+ "ui.promptInput.attachments": "Bilder och filer",
122
+ "ui.promptInput.context": "Kontext",
123
+ "ui.promptInput.shell": "Skalkommando",
124
+ "ui.promptInput.chooseAgent": "Välj agent",
125
+ "ui.promptInput.chooseModel": "Välj modell",
126
+ "ui.promptInput.chooseVariant": "Välj modellvariant",
127
+ "ui.promptInput.send": "Skicka",
128
+ "ui.promptInput.stop": "Stoppa",
129
+ "ui.tabs.close": "Stäng fliken",
112
130
  "ui.textField.copyToClipboard": "Kopiera till urklipp",
113
131
  "ui.textField.copyLink": "Kopiera länk",
114
132
  "ui.textField.copied": "Kopierad",
@@ -122,11 +140,13 @@ export const dict: Record<string, string> = {
122
140
  "ui.tool.task": "Uppgift",
123
141
  "ui.tool.webfetch": "Webbhämtning",
124
142
  "ui.tool.websearch": "Webbsökning",
143
+ "ui.tool.websearch.provider": "{{provider}} Webbsökning",
125
144
  "ui.tool.shell": "Shell",
126
145
  "ui.tool.patch": "Patch",
127
146
  "ui.tool.todos": "Att göra",
128
147
  "ui.tool.todos.read": "Läs att göra-listan",
129
148
  "ui.tool.questions": "Frågor",
149
+ "ui.tool.questions.numbered": "Frågor {{number}}",
130
150
  "ui.tool.agent": "{{type}}-agent",
131
151
  "ui.tool.agent.default": "Agent",
132
152
  "ui.tool.skill": "Färdighet",
@@ -138,6 +158,8 @@ export const dict: Record<string, string> = {
138
158
  "ui.common.question.one": "fråga",
139
159
  "ui.common.question.other": "frågor",
140
160
  "ui.common.add": "Lägg till",
161
+ "ui.common.clear": "Rensa",
162
+ "ui.common.file": "Fil",
141
163
  "ui.common.back": "Tillbaka",
142
164
  "ui.common.cancel": "Avbryt",
143
165
  "ui.common.confirm": "Bekräfta",
package/src/i18n/th.ts CHANGED
@@ -49,6 +49,7 @@ export const dict = {
49
49
  "ui.lineComment.editorLabel.prefix": "กำลังแสดงความคิดเห็นที่ ",
50
50
  "ui.lineComment.editorLabel.suffix": "",
51
51
  "ui.lineComment.placeholder": "เพิ่มความคิดเห็น",
52
+ "ui.lineComment.contextPlaceholder": "เพิ่มบริบทสำหรับการเปลี่ยนแปลงนี้",
52
53
  "ui.lineComment.submit": "แสดงความคิดเห็น",
53
54
  "ui.lineComment.cancel": "ยกเลิก",
54
55
 
@@ -114,6 +115,25 @@ export const dict = {
114
115
 
115
116
  "ui.messageNav.newMessage": "ข้อความใหม่",
116
117
 
118
+ "ui.promptInput.noMatchingItems": "ไม่พบรายการที่ตรงกัน",
119
+ "ui.promptInput.commands": "คำสั่ง",
120
+ "ui.promptInput.dropFiles": "วางไฟล์เพื่อแนบ",
121
+ "ui.promptInput.removeAttachment": "เอาไฟล์แนบออก",
122
+ "ui.promptInput.label": "พรอมต์",
123
+ "ui.promptInput.placeholder.shell": "ป้อนคำสั่งเชลล์...",
124
+ "ui.promptInput.placeholder.normal": "ถามอะไรก็ได้ {{slash}} สำหรับคำสั่ง {{at}} สำหรับบริบท...",
125
+ "ui.promptInput.add": "เพิ่มรูปภาพและไฟล์",
126
+ "ui.promptInput.attachments": "รูปภาพและไฟล์",
127
+ "ui.promptInput.context": "บริบท",
128
+ "ui.promptInput.shell": "คำสั่งเชลล์",
129
+ "ui.promptInput.chooseAgent": "เลือกเอเจนต์",
130
+ "ui.promptInput.chooseModel": "เลือกโมเดล",
131
+ "ui.promptInput.chooseVariant": "เลือกรูปแบบโมเดล",
132
+ "ui.promptInput.send": "ส่ง",
133
+ "ui.promptInput.stop": "หยุด",
134
+
135
+ "ui.tabs.close": "ปิดแท็บ",
136
+
117
137
  "ui.textField.copyToClipboard": "คัดลอกไปยังคลิปบอร์ด",
118
138
  "ui.textField.copyLink": "คัดลอกลิงก์",
119
139
  "ui.textField.copied": "คัดลอกแล้ว",
@@ -128,11 +148,13 @@ export const dict = {
128
148
  "ui.tool.grep": "Grep",
129
149
  "ui.tool.webfetch": "ดึงจากเว็บ",
130
150
  "ui.tool.websearch": "ค้นหาเว็บ",
151
+ "ui.tool.websearch.provider": "{{provider}} ค้นหาเว็บ",
131
152
  "ui.tool.shell": "เชลล์",
132
153
  "ui.tool.patch": "แพตช์",
133
154
  "ui.tool.todos": "รายการงาน",
134
155
  "ui.tool.todos.read": "อ่านรายการงาน",
135
156
  "ui.tool.questions": "คำถาม",
157
+ "ui.tool.questions.numbered": "คำถาม {{number}}",
136
158
  "ui.tool.agent": "เอเจนต์ {{type}}",
137
159
  "ui.tool.agent.default": "เอเจนต์",
138
160
 
@@ -142,6 +164,8 @@ export const dict = {
142
164
  "ui.common.question.other": "คำถาม",
143
165
 
144
166
  "ui.common.add": "เพิ่ม",
167
+ "ui.common.clear": "ล้าง",
168
+ "ui.common.file": "ไฟล์",
145
169
  "ui.common.back": "ย้อนกลับ",
146
170
  "ui.common.cancel": "ยกเลิก",
147
171
  "ui.common.confirm": "ยืนยัน",
package/src/i18n/tr.ts CHANGED
@@ -55,6 +55,7 @@ export const dict = {
55
55
  "ui.lineComment.editorLabel.prefix": "Yorum yapılıyor: ",
56
56
  "ui.lineComment.editorLabel.suffix": "",
57
57
  "ui.lineComment.placeholder": "Yorum ekle",
58
+ "ui.lineComment.contextPlaceholder": "Bu değişiklik için bağlam ekle",
58
59
  "ui.lineComment.submit": "Yorum yap",
59
60
  "ui.lineComment.cancel": "İptal",
60
61
 
@@ -120,6 +121,25 @@ export const dict = {
120
121
 
121
122
  "ui.messageNav.newMessage": "Yeni mesaj",
122
123
 
124
+ "ui.promptInput.noMatchingItems": "Eşleşen öğe yok",
125
+ "ui.promptInput.commands": "Komutlar",
126
+ "ui.promptInput.dropFiles": "Eklemek için dosyaları bırakın",
127
+ "ui.promptInput.removeAttachment": "Eki kaldır",
128
+ "ui.promptInput.label": "İstem",
129
+ "ui.promptInput.placeholder.shell": "Kabuk komutu girin...",
130
+ "ui.promptInput.placeholder.normal": "Bir şey sorun, {{slash}} komutlar için, {{at}} bağlam için...",
131
+ "ui.promptInput.add": "Görsel ve dosya ekle",
132
+ "ui.promptInput.attachments": "Görseller ve dosyalar",
133
+ "ui.promptInput.context": "Bağlam",
134
+ "ui.promptInput.shell": "Kabuk komutu",
135
+ "ui.promptInput.chooseAgent": "Ajan seç",
136
+ "ui.promptInput.chooseModel": "Model seç",
137
+ "ui.promptInput.chooseVariant": "Model varyantı seç",
138
+ "ui.promptInput.send": "Gönder",
139
+ "ui.promptInput.stop": "Durdur",
140
+
141
+ "ui.tabs.close": "Sekmeyi kapat",
142
+
123
143
  "ui.textField.copyToClipboard": "Panoya kopyala",
124
144
  "ui.textField.copyLink": "Bağlantıyı kopyala",
125
145
  "ui.textField.copied": "Kopyalandı",
@@ -134,11 +154,13 @@ export const dict = {
134
154
  "ui.tool.grep": "Grep",
135
155
  "ui.tool.webfetch": "Web içeriğini getir",
136
156
  "ui.tool.websearch": "Web araması",
157
+ "ui.tool.websearch.provider": "{{provider}} Web araması",
137
158
  "ui.tool.shell": "Kabuk",
138
159
  "ui.tool.patch": "Yama",
139
160
  "ui.tool.todos": "Görevler",
140
161
  "ui.tool.todos.read": "Görevleri oku",
141
162
  "ui.tool.questions": "Sorular",
163
+ "ui.tool.questions.numbered": "Sorular {{number}}",
142
164
  "ui.tool.agent": "{{type}} ajanı",
143
165
  "ui.tool.agent.default": "Ajan",
144
166
 
@@ -148,6 +170,8 @@ export const dict = {
148
170
  "ui.common.question.other": "soru",
149
171
 
150
172
  "ui.common.add": "Ekle",
173
+ "ui.common.clear": "Temizle",
174
+ "ui.common.file": "Dosya",
151
175
  "ui.common.back": "Geri",
152
176
  "ui.common.cancel": "İptal",
153
177
  "ui.common.confirm": "Onayla",
package/src/i18n/uk.ts CHANGED
@@ -51,6 +51,7 @@ export const dict: Record<string, string> = {
51
51
  "ui.lineComment.editorLabel.prefix": "Коментування: ",
52
52
  "ui.lineComment.editorLabel.suffix": "",
53
53
  "ui.lineComment.placeholder": "Додати коментар",
54
+ "ui.lineComment.contextPlaceholder": "Додати контекст для цієї зміни",
54
55
  "ui.lineComment.submit": "Коментувати",
55
56
  "ui.lineComment.cancel": "Скасувати",
56
57
 
@@ -129,6 +130,25 @@ export const dict: Record<string, string> = {
129
130
 
130
131
  "ui.messageNav.newMessage": "Нове повідомлення",
131
132
 
133
+ "ui.promptInput.noMatchingItems": "Відповідних елементів немає",
134
+ "ui.promptInput.commands": "Команди",
135
+ "ui.promptInput.dropFiles": "Перетягніть файли, щоб прикріпити",
136
+ "ui.promptInput.removeAttachment": "Видалити вкладення",
137
+ "ui.promptInput.label": "Запит",
138
+ "ui.promptInput.placeholder.shell": "Введіть команду оболонки...",
139
+ "ui.promptInput.placeholder.normal": "Запитайте що завгодно, {{slash}} для команд, {{at}} для контексту...",
140
+ "ui.promptInput.add": "Додати зображення та файли",
141
+ "ui.promptInput.attachments": "Зображення та файли",
142
+ "ui.promptInput.context": "Контекст",
143
+ "ui.promptInput.shell": "Команда оболонки",
144
+ "ui.promptInput.chooseAgent": "Вибрати агента",
145
+ "ui.promptInput.chooseModel": "Вибрати модель",
146
+ "ui.promptInput.chooseVariant": "Вибрати варіант моделі",
147
+ "ui.promptInput.send": "Надіслати",
148
+ "ui.promptInput.stop": "Зупинити",
149
+
150
+ "ui.tabs.close": "Закрити вкладку",
151
+
132
152
  "ui.textField.copyToClipboard": "Копіювати в буфер обміну",
133
153
  "ui.textField.copyLink": "Копіювати посилання",
134
154
  "ui.textField.copied": "Скопійовано",
@@ -144,11 +164,13 @@ export const dict: Record<string, string> = {
144
164
  "ui.tool.task": "Завдання",
145
165
  "ui.tool.webfetch": "Веб-отримання",
146
166
  "ui.tool.websearch": "Веб-пошук",
167
+ "ui.tool.websearch.provider": "{{provider}} Веб-пошук",
147
168
  "ui.tool.shell": "Оболонка",
148
169
  "ui.tool.patch": "Патч",
149
170
  "ui.tool.todos": "Завдання",
150
171
  "ui.tool.todos.read": "Читати завдання",
151
172
  "ui.tool.questions": "Запитання",
173
+ "ui.tool.questions.numbered": "Запитання {{number}}",
152
174
  "ui.tool.agent": "Агент {{type}}",
153
175
  "ui.tool.agent.default": "Агент",
154
176
  "ui.tool.skill": "Навичка",
@@ -163,6 +185,8 @@ export const dict: Record<string, string> = {
163
185
  "ui.common.question.other": "запитань",
164
186
 
165
187
  "ui.common.add": "Додати",
188
+ "ui.common.clear": "Очистити",
189
+ "ui.common.file": "Файл",
166
190
  "ui.common.back": "Назад",
167
191
  "ui.common.cancel": "Скасувати",
168
192
  "ui.common.confirm": "Підтвердити",
package/src/i18n/ur.ts CHANGED
@@ -49,6 +49,7 @@ export const dict: Record<string, string> = {
49
49
  "ui.lineComment.editorLabel.prefix": "اس پر تبصرہ کیا جا رہا ہے: ",
50
50
  "ui.lineComment.editorLabel.suffix": "",
51
51
  "ui.lineComment.placeholder": "تبصرہ شامل کریں۔",
52
+ "ui.lineComment.contextPlaceholder": "اس تبدیلی کا سیاق و سباق شامل کریں",
52
53
  "ui.lineComment.submit": "تبصرہ کریں",
53
54
  "ui.lineComment.cancel": "منسوخ کریں۔",
54
55
  "ui.sessionTurn.steps.show": "اقدامات دکھائیں۔",
@@ -110,6 +111,23 @@ export const dict: Record<string, string> = {
110
111
  "ui.fileSearch.nextMatch": "اگلی مماثلت",
111
112
  "ui.fileSearch.close": "تلاش بند کریں۔",
112
113
  "ui.messageNav.newMessage": "نیا پیغام",
114
+ "ui.promptInput.noMatchingItems": "کوئی مماثل آئٹم نہیں ملا",
115
+ "ui.promptInput.commands": "کمانڈز",
116
+ "ui.promptInput.dropFiles": "منسلک کرنے کے لیے فائلیں یہاں چھوڑیں",
117
+ "ui.promptInput.removeAttachment": "منسلکہ ہٹائیں",
118
+ "ui.promptInput.label": "پرامپٹ",
119
+ "ui.promptInput.placeholder.shell": "شیل کمانڈ درج کریں...",
120
+ "ui.promptInput.placeholder.normal": "کچھ بھی پوچھیں، {{slash}} کمانڈز کے لیے، {{at}} سیاق و سباق کے لیے...",
121
+ "ui.promptInput.add": "تصاویر اور فائلیں شامل کریں",
122
+ "ui.promptInput.attachments": "تصاویر اور فائلیں",
123
+ "ui.promptInput.context": "سیاق و سباق",
124
+ "ui.promptInput.shell": "شیل کمانڈ",
125
+ "ui.promptInput.chooseAgent": "ایجنٹ منتخب کریں",
126
+ "ui.promptInput.chooseModel": "ماڈل منتخب کریں",
127
+ "ui.promptInput.chooseVariant": "ماڈل کی قسم منتخب کریں",
128
+ "ui.promptInput.send": "بھیجیں",
129
+ "ui.promptInput.stop": "روکیں",
130
+ "ui.tabs.close": "ٹیب بند کریں",
113
131
  "ui.textField.copyToClipboard": "کلپ بورڈ پر کاپی کریں۔",
114
132
  "ui.textField.copyLink": "لنک کاپی کریں۔",
115
133
  "ui.textField.copied": "کاپی ہو گیا",
@@ -123,11 +141,13 @@ export const dict: Record<string, string> = {
123
141
  "ui.tool.task": "کام",
124
142
  "ui.tool.webfetch": "ویب فیچ",
125
143
  "ui.tool.websearch": "ویب تلاش",
144
+ "ui.tool.websearch.provider": "{{provider}} ویب تلاش",
126
145
  "ui.tool.shell": "شیل",
127
146
  "ui.tool.patch": "پیچ",
128
147
  "ui.tool.todos": "زیر التوا کام",
129
148
  "ui.tool.todos.read": "زیر التوا کام پڑھیں",
130
149
  "ui.tool.questions": "سوالات",
150
+ "ui.tool.questions.numbered": "سوالات {{number}}",
131
151
  "ui.tool.agent": "{{type}} ایجنٹ",
132
152
  "ui.tool.agent.default": "ایجنٹ",
133
153
  "ui.tool.skill": "مہارت",
@@ -139,6 +159,8 @@ export const dict: Record<string, string> = {
139
159
  "ui.common.question.one": "سوال",
140
160
  "ui.common.question.other": "سوالات",
141
161
  "ui.common.add": "شامل کریں۔",
162
+ "ui.common.clear": "صاف کریں",
163
+ "ui.common.file": "فائل",
142
164
  "ui.common.back": "واپس",
143
165
  "ui.common.cancel": "منسوخ کریں۔",
144
166
  "ui.common.confirm": "تصدیق کریں۔",
package/src/i18n/vi.ts CHANGED
@@ -48,6 +48,7 @@ export const dict: Record<string, string> = {
48
48
  "ui.lineComment.editorLabel.prefix": "Bình luận về ",
49
49
  "ui.lineComment.editorLabel.suffix": "",
50
50
  "ui.lineComment.placeholder": "Thêm nhận xét",
51
+ "ui.lineComment.contextPlaceholder": "Thêm ngữ cảnh cho thay đổi này",
51
52
  "ui.lineComment.submit": "Bình luận",
52
53
  "ui.lineComment.cancel": "Hủy",
53
54
  "ui.sessionTurn.steps.show": "Hiển thị các bước",
@@ -109,6 +110,23 @@ export const dict: Record<string, string> = {
109
110
  "ui.fileSearch.nextMatch": "Kết quả khớp tiếp theo",
110
111
  "ui.fileSearch.close": "Đóng tìm kiếm",
111
112
  "ui.messageNav.newMessage": "Tin nhắn mới",
113
+ "ui.promptInput.noMatchingItems": "Không có mục phù hợp",
114
+ "ui.promptInput.commands": "Lệnh",
115
+ "ui.promptInput.dropFiles": "Thả tệp để đính kèm",
116
+ "ui.promptInput.removeAttachment": "Xóa tệp đính kèm",
117
+ "ui.promptInput.label": "Lời nhắc",
118
+ "ui.promptInput.placeholder.shell": "Nhập lệnh shell...",
119
+ "ui.promptInput.placeholder.normal": "Hỏi bất cứ điều gì, {{slash}} để dùng lệnh, {{at}} để thêm ngữ cảnh...",
120
+ "ui.promptInput.add": "Thêm hình ảnh và tệp",
121
+ "ui.promptInput.attachments": "Hình ảnh và tệp",
122
+ "ui.promptInput.context": "Ngữ cảnh",
123
+ "ui.promptInput.shell": "Lệnh shell",
124
+ "ui.promptInput.chooseAgent": "Chọn tác nhân",
125
+ "ui.promptInput.chooseModel": "Chọn mô hình",
126
+ "ui.promptInput.chooseVariant": "Chọn biến thể mô hình",
127
+ "ui.promptInput.send": "Gửi",
128
+ "ui.promptInput.stop": "Dừng",
129
+ "ui.tabs.close": "Đóng tab",
112
130
  "ui.textField.copyToClipboard": "Sao chép vào bảng tạm",
113
131
  "ui.textField.copyLink": "Sao chép liên kết",
114
132
  "ui.textField.copied": "Đã sao chép",
@@ -122,11 +140,13 @@ export const dict: Record<string, string> = {
122
140
  "ui.tool.task": "Nhiệm vụ",
123
141
  "ui.tool.webfetch": "Webfetch",
124
142
  "ui.tool.websearch": "Tìm kiếm trên web",
143
+ "ui.tool.websearch.provider": "{{provider}} Tìm kiếm trên web",
125
144
  "ui.tool.shell": "Shell",
126
145
  "ui.tool.patch": "Bản vá",
127
146
  "ui.tool.todos": "Việc cần làm",
128
147
  "ui.tool.todos.read": "Đọc việc cần làm",
129
148
  "ui.tool.questions": "Câu hỏi",
149
+ "ui.tool.questions.numbered": "Câu hỏi {{number}}",
130
150
  "ui.tool.agent": "Tác nhân {{type}}",
131
151
  "ui.tool.agent.default": "Tác nhân",
132
152
  "ui.tool.skill": "Kỹ năng",
@@ -138,6 +158,8 @@ export const dict: Record<string, string> = {
138
158
  "ui.common.question.one": "câu hỏi",
139
159
  "ui.common.question.other": "câu hỏi",
140
160
  "ui.common.add": "Thêm",
161
+ "ui.common.clear": "Xóa",
162
+ "ui.common.file": "Tệp",
141
163
  "ui.common.back": "Quay lại",
142
164
  "ui.common.cancel": "Hủy",
143
165
  "ui.common.confirm": "Xác nhận",
package/src/i18n/zh.ts CHANGED
@@ -53,6 +53,7 @@ export const dict = {
53
53
  "ui.lineComment.editorLabel.prefix": "正在评论",
54
54
  "ui.lineComment.editorLabel.suffix": "",
55
55
  "ui.lineComment.placeholder": "添加评论",
56
+ "ui.lineComment.contextPlaceholder": "添加此更改的上下文",
56
57
  "ui.lineComment.submit": "发布评论",
57
58
  "ui.lineComment.cancel": "取消",
58
59
 
@@ -116,6 +117,25 @@ export const dict = {
116
117
 
117
118
  "ui.messageNav.newMessage": "新消息",
118
119
 
120
+ "ui.promptInput.noMatchingItems": "没有匹配项",
121
+ "ui.promptInput.commands": "命令",
122
+ "ui.promptInput.dropFiles": "拖放文件以添加附件",
123
+ "ui.promptInput.removeAttachment": "移除附件",
124
+ "ui.promptInput.label": "提示词",
125
+ "ui.promptInput.placeholder.shell": "输入 shell 命令...",
126
+ "ui.promptInput.placeholder.normal": "随便问点什么, {{slash}} 可查看命令, {{at}} 可添加上下文...",
127
+ "ui.promptInput.add": "添加图片和文件",
128
+ "ui.promptInput.attachments": "图片和文件",
129
+ "ui.promptInput.context": "上下文",
130
+ "ui.promptInput.shell": "Shell 命令",
131
+ "ui.promptInput.chooseAgent": "选择智能体",
132
+ "ui.promptInput.chooseModel": "选择模型",
133
+ "ui.promptInput.chooseVariant": "选择模型变体",
134
+ "ui.promptInput.send": "发送",
135
+ "ui.promptInput.stop": "停止",
136
+
137
+ "ui.tabs.close": "关闭标签页",
138
+
119
139
  "ui.textField.copyToClipboard": "复制到剪贴板",
120
140
  "ui.textField.copyLink": "复制链接",
121
141
  "ui.textField.copied": "已复制",
@@ -130,11 +150,13 @@ export const dict = {
130
150
  "ui.tool.grep": "Grep",
131
151
  "ui.tool.webfetch": "Webfetch",
132
152
  "ui.tool.websearch": "网页搜索",
153
+ "ui.tool.websearch.provider": "{{provider}} 网页搜索",
133
154
  "ui.tool.shell": "Shell",
134
155
  "ui.tool.patch": "补丁",
135
156
  "ui.tool.todos": "待办",
136
157
  "ui.tool.todos.read": "读取待办",
137
158
  "ui.tool.questions": "问题",
159
+ "ui.tool.questions.numbered": "问题 {{number}}",
138
160
  "ui.tool.agent": "{{type}} 智能体",
139
161
  "ui.tool.agent.default": "智能体",
140
162
 
@@ -144,6 +166,8 @@ export const dict = {
144
166
  "ui.common.question.other": "个问题",
145
167
 
146
168
  "ui.common.add": "添加",
169
+ "ui.common.clear": "清除",
170
+ "ui.common.file": "文件",
147
171
  "ui.common.back": "返回",
148
172
  "ui.common.cancel": "取消",
149
173
  "ui.common.confirm": "确认",
package/src/i18n/zht.ts CHANGED
@@ -53,6 +53,7 @@ export const dict = {
53
53
  "ui.lineComment.editorLabel.prefix": "正在留言於 ",
54
54
  "ui.lineComment.editorLabel.suffix": "",
55
55
  "ui.lineComment.placeholder": "新增留言",
56
+ "ui.lineComment.contextPlaceholder": "新增此變更的相關資訊",
56
57
  "ui.lineComment.submit": "留言",
57
58
  "ui.lineComment.cancel": "取消",
58
59
 
@@ -116,6 +117,25 @@ export const dict = {
116
117
 
117
118
  "ui.messageNav.newMessage": "新訊息",
118
119
 
120
+ "ui.promptInput.noMatchingItems": "沒有符合的項目",
121
+ "ui.promptInput.commands": "命令",
122
+ "ui.promptInput.dropFiles": "拖放檔案以附加",
123
+ "ui.promptInput.removeAttachment": "移除附件",
124
+ "ui.promptInput.label": "提示詞",
125
+ "ui.promptInput.placeholder.shell": "輸入 shell 命令...",
126
+ "ui.promptInput.placeholder.normal": "想問什麼都可以, {{slash}} 可使用命令, {{at}} 可加入上下文...",
127
+ "ui.promptInput.add": "新增圖片和檔案",
128
+ "ui.promptInput.attachments": "圖片和檔案",
129
+ "ui.promptInput.context": "上下文",
130
+ "ui.promptInput.shell": "shell 命令",
131
+ "ui.promptInput.chooseAgent": "選擇代理程式",
132
+ "ui.promptInput.chooseModel": "選擇模型",
133
+ "ui.promptInput.chooseVariant": "選擇模型變體",
134
+ "ui.promptInput.send": "傳送",
135
+ "ui.promptInput.stop": "停止",
136
+
137
+ "ui.tabs.close": "關閉分頁",
138
+
119
139
  "ui.textField.copyToClipboard": "複製到剪貼簿",
120
140
  "ui.textField.copyLink": "複製連結",
121
141
  "ui.textField.copied": "已複製",
@@ -130,11 +150,13 @@ export const dict = {
130
150
  "ui.tool.grep": "Grep",
131
151
  "ui.tool.webfetch": "Webfetch",
132
152
  "ui.tool.websearch": "網頁搜尋",
153
+ "ui.tool.websearch.provider": "{{provider}} 網頁搜尋",
133
154
  "ui.tool.shell": "Shell",
134
155
  "ui.tool.patch": "修補",
135
156
  "ui.tool.todos": "待辦",
136
157
  "ui.tool.todos.read": "讀取待辦",
137
158
  "ui.tool.questions": "問題",
159
+ "ui.tool.questions.numbered": "問題 {{number}}",
138
160
  "ui.tool.agent": "{{type}} 代理程式",
139
161
  "ui.tool.agent.default": "代理程式",
140
162
 
@@ -144,6 +166,8 @@ export const dict = {
144
166
  "ui.common.question.other": "個問題",
145
167
 
146
168
  "ui.common.add": "新增",
169
+ "ui.common.clear": "清除",
170
+ "ui.common.file": "檔案",
147
171
  "ui.common.back": "返回",
148
172
  "ui.common.cancel": "取消",
149
173
  "ui.common.confirm": "確認",
@@ -109,8 +109,8 @@
109
109
  width: 20px;
110
110
  height: 20px;
111
111
  margin-top: -2px;
112
- margin-right: -2px;
113
- margin-left: auto;
112
+ margin-inline-end: -2px;
113
+ margin-inline-start: auto;
114
114
  border-radius: 4px;
115
115
  flex-shrink: 0;
116
116
  cursor: pointer;
@@ -1,5 +1,6 @@
1
1
  import { Dialog as Kobalte } from "@kobalte/core/dialog"
2
2
  import { type ComponentProps, type JSXElement, type ParentProps, Show, children, splitProps } from "solid-js"
3
+ import { useI18n } from "../../context/i18n"
3
4
  import "./dialog-v2.css"
4
5
 
5
6
  export interface DialogProps extends ParentProps {
@@ -51,6 +52,7 @@ export function DialogTitleGroup(props: DialogTitleGroupProps) {
51
52
  }
52
53
 
53
54
  export function DialogHeader(props: DialogHeaderProps) {
55
+ const i18n = useI18n()
54
56
  const [local] = splitProps(props, ["closeLabel", "hideClose", "children"])
55
57
  const hideClose = () => local.hideClose === true
56
58
 
@@ -58,7 +60,7 @@ export function DialogHeader(props: DialogHeaderProps) {
58
60
  <div data-slot="dialog-header" data-hide-close={hideClose() ? "" : undefined}>
59
61
  {local.children}
60
62
  {!hideClose() && (
61
- <Kobalte.CloseButton data-slot="dialog-close-button" aria-label={local.closeLabel ?? "Close"}>
63
+ <Kobalte.CloseButton data-slot="dialog-close-button" aria-label={local.closeLabel ?? i18n.t("ui.common.close")}>
62
64
  <svg
63
65
  width="16"
64
66
  height="16"
@@ -1,5 +1,6 @@
1
1
  import { type ComponentProps, type JSX, Show, splitProps } from "solid-js"
2
2
  import { Icon } from "./icon"
3
+ import { useI18n } from "../../context/i18n"
3
4
  import "./inline-input-v2.css"
4
5
 
5
6
  export interface InlineInputV2Props extends Omit<ComponentProps<"input">, "type" | "prefix"> {
@@ -22,6 +23,7 @@ export interface InlineInputV2Props extends Omit<ComponentProps<"input">, "type"
22
23
  }
23
24
 
24
25
  export function InlineInputV2(props: InlineInputV2Props) {
26
+ const i18n = useI18n()
25
27
  const [local, inputProps] = splitProps(props, [
26
28
  "class",
27
29
  "classList",
@@ -92,7 +94,7 @@ export function InlineInputV2(props: InlineInputV2Props) {
92
94
  <button
93
95
  type="button"
94
96
  data-slot="inline-input-v2-icon-button"
95
- aria-label={local.copyLabel ?? "Copy"}
97
+ aria-label={local.copyLabel ?? i18n.t("ui.message.copy")}
96
98
  disabled={local.disabled}
97
99
  onClick={local.onCopyClick}
98
100
  >
@@ -228,7 +228,7 @@
228
228
  border-radius: 4px;
229
229
  background: transparent;
230
230
  color: var(--v2-text-text-base);
231
- text-align: left;
231
+ text-align: start;
232
232
  cursor: pointer;
233
233
  }
234
234
 
@@ -1,5 +1,6 @@
1
1
  import { For, Show, createSignal, onMount, splitProps, type ComponentProps, type JSX } from "solid-js"
2
2
  import { FileIcon } from "../../components/file-icon"
3
+ import { useI18n } from "../../context/i18n"
3
4
  import { useFilteredList } from "../../hooks"
4
5
  import { ButtonV2 } from "./button-v2"
5
6
  import "./line-comment-v2.css"
@@ -86,6 +87,7 @@ function pathDirectory(path: string) {
86
87
  }
87
88
 
88
89
  export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
90
+ const i18n = useI18n()
89
91
  let textareaRef: HTMLTextAreaElement | undefined
90
92
  const [mentionOpen, setMentionOpen] = createSignal(false)
91
93
 
@@ -106,7 +108,7 @@ export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
106
108
  "classList",
107
109
  ])
108
110
 
109
- const heading = () => local.heading ?? "Comment"
111
+ const heading = () => local.heading ?? i18n.t("ui.lineComment.submit")
110
112
  const canSubmit = () => local.value.trim().length > 0
111
113
 
112
114
  const closeMention = () => {
@@ -211,7 +213,7 @@ export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
211
213
  }}
212
214
  data-slot="line-comment-v2-textarea"
213
215
  rows={local.rows ?? 3}
214
- placeholder={local.placeholder ?? "Add context for this change"}
216
+ placeholder={local.placeholder ?? i18n.t("ui.lineComment.contextPlaceholder")}
215
217
  value={local.value}
216
218
  onInput={(e) => {
217
219
  local.onInput(e.currentTarget.value)
@@ -291,10 +293,10 @@ export function LineCommentEditorV2(props: LineCommentEditorV2Props) {
291
293
  <div data-slot="line-comment-v2-footer-meta">{local.selection}</div>
292
294
  <div data-slot="line-comment-v2-footer-actions">
293
295
  <ButtonV2 type="button" size="normal" variant="neutral" onClick={() => local.onCancel()}>
294
- {local.cancelLabel ?? "Cancel"}
296
+ {local.cancelLabel ?? i18n.t("ui.lineComment.cancel")}
295
297
  </ButtonV2>
296
298
  <ButtonV2 type="button" size="normal" variant="contrast" disabled={!canSubmit()} onClick={submit}>
297
- {local.submitLabel ?? "Comment"}
299
+ {local.submitLabel ?? i18n.t("ui.lineComment.submit")}
298
300
  </ButtonV2>
299
301
  </div>
300
302
  </div>
@@ -71,7 +71,7 @@
71
71
  [data-component="tabs-v2"] [data-slot="tabs-v2-close-button"] {
72
72
  width: 20px;
73
73
  height: 20px;
74
- margin-left: -5px;
74
+ margin-inline-start: -5px;
75
75
  flex: none;
76
76
  display: flex;
77
77
  align-items: center;
@@ -109,7 +109,7 @@
109
109
  background-color: var(--v2-border-border-base);
110
110
  position: absolute;
111
111
  bottom: 0px;
112
- left: -8px;
112
+ inset-inline-start: -8px;
113
113
  }
114
114
 
115
115
  [data-component="tabs-v2"][data-variant="pill"][data-orientation="horizontal"] [data-slot="tabs-v2-list"] {
@@ -183,12 +183,12 @@
183
183
  padding: 12px;
184
184
  gap: 4px;
185
185
  overflow-y: auto;
186
- border-right: 1px solid var(--v2-border-border-base);
186
+ border-inline-end: 1px solid var(--v2-border-border-base);
187
187
  }
188
188
 
189
189
  [data-component="tabs-v2"][data-variant="settings"][data-orientation="vertical"] [data-slot="tabs-v2-section-title"] {
190
190
  width: 100%;
191
- padding-left: 4px;
191
+ padding-inline-start: 4px;
192
192
  color: var(--v2-text-text-muted);
193
193
  font-size: 12px;
194
194
  font-weight: 500;
@@ -1,6 +1,7 @@
1
1
  import { Tabs as Kobalte } from "@kobalte/core/tabs"
2
2
  import { Show, splitProps, type JSX } from "solid-js"
3
3
  import type { ComponentProps, ParentProps, Component } from "solid-js"
4
+ import { useI18n } from "../../context/i18n"
4
5
  import "./tabs-v2.css"
5
6
 
6
7
  export interface TabsV2Props extends ComponentProps<typeof Kobalte> {
@@ -74,7 +75,7 @@ function TabsV2Trigger(props: ParentProps<TabsV2TriggerProps>) {
74
75
  {split.children}
75
76
  <Show when={split.subtext}>
76
77
  {(subtext) => (
77
- <span data-slot="tabs-v2-subtext" class="ml-2 text-xs text-text-weak">
78
+ <span data-slot="tabs-v2-subtext" class="ms-2 text-xs text-text-weak">
78
79
  {subtext()}
79
80
  </span>
80
81
  )}
@@ -86,12 +87,13 @@ function TabsV2Trigger(props: ParentProps<TabsV2TriggerProps>) {
86
87
  }
87
88
 
88
89
  function TabsV2CloseButton(props: TabsV2CloseButtonProps) {
90
+ const i18n = useI18n()
89
91
  const [split, rest] = splitProps(props, ["class", "classList", "onClick"])
90
92
  return (
91
93
  <div
92
94
  role="button"
93
95
  tabindex={0}
94
- aria-label="Close tab"
96
+ aria-label={i18n.t("ui.tabs.close")}
95
97
  data-slot="tabs-v2-close-button"
96
98
  {...rest}
97
99
  classList={{