Skip to content

Commit ddda18d

Browse files
committed
Update missing configuration warnings and deletion success messages
- consolidate [Fragment] into 'API setup incomplete' - change [Fragment] to 'api setup incomplete' - translate [Fragment] - translate[Fragment]
1 parent 8a275a1 commit ddda18d

6 files changed

Lines changed: 93 additions & 134 deletions

File tree

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,38 @@
11
export const translations = {
2-
'utils.show-missing-configuration-notification.no-model-configurations-created-yet':
3-
{
4-
en: 'No models configured yet.',
5-
pl: 'Nie skonfigurowano jeszcze żadnych modeli.',
6-
'zh-cn': '尚未配置任何模型。',
7-
ja: 'モデルがまだ設定されていません。',
8-
'zh-tw': '尚未設定任何模型。',
9-
de: 'Noch keine Modelle konfiguriert.',
10-
es: 'Aún no se han configurado modelos.',
11-
fr: 'Pas encore de modèles configurés pour le moment.',
12-
'pt-br': 'Não há modelos configurados ainda.',
13-
ru: 'Модели еще не настроены.',
14-
ko: '아직 구성된 모델이 없습니다.',
15-
it: 'Non ci sono ancora modelli configurati.',
16-
tr: 'Henüz hiçbir model yapılandırılmadı.',
17-
cs: 'Zatím nebyly nakonfigurovány žádné modely.',
18-
hu: 'Még nincsenek modellek konfigurálva.',
19-
bg: 'Все още няма конфигурирани модели.'
20-
},
21-
'utils.show-missing-configuration-notification.no-chatbot-configurations-created-yet':
22-
{
23-
en: 'No chatbots configured yet.',
24-
pl: 'Nie skonfigurowano jeszcze żadnych chatbotów.',
25-
'zh-cn': '尚未配置任何聊天机器人。',
26-
ja: 'チャットボットがまだ設定されていません。',
27-
'zh-tw': '尚未設定任何聊天機器人。',
28-
de: 'Noch keine Chatbots konfiguriert.',
29-
es: 'Aún no se han configurado chatbots.',
30-
fr: 'Pas encore de chatbots configurés pour le moment.',
31-
'pt-br': 'Não há chatbots configurados ainda.',
32-
ru: 'Чат-боты еще не настроены.',
33-
ko: '아직 구성된 챗봇이 없습니다.',
34-
it: 'Non ci sono ancora chatbot configurati.',
35-
tr: 'Henüz hiçbir sohbet robotu yapılandırılmadı.',
36-
cs: 'Zatím nebyli nakonfigurováni žádní chatboti.',
37-
hu: 'Még nincsenek chatbotok konfigurálva.',
38-
bg: 'Все още няма конфигурирани чатботове.'
39-
}
2+
'utils.show-missing-configuration-notification.api-setup-incomplete': {
3+
en: 'API setup incomplete.',
4+
pl: 'Konfiguracja API niekompletna.',
5+
'zh-cn': 'API 设置不完整。',
6+
ja: 'API の設定が不完全です。',
7+
'zh-tw': 'API 設定不完整。',
8+
de: 'API-Einrichtung unvollständig.',
9+
es: 'Configuración de API incompleta.',
10+
fr: 'Configuration de l’API incomplète.',
11+
'pt-br': 'Configuração da API incompleta.',
12+
ru: 'Настройка API не завершена.',
13+
ko: 'API 설정이 불완전합니다.',
14+
it: 'Configurazione API incompleta.',
15+
tr: 'API kurulumu eksik.',
16+
cs: 'Nastavení API je neúplné.',
17+
hu: 'Az API beállítása nem teljes.',
18+
bg: 'Настройката на API е непълна.'
19+
},
20+
'utils.show-missing-configuration-notification.no-chatbots-configured-yet': {
21+
en: 'No chatbots configured yet.',
22+
pl: 'Nie skonfigurowano jeszcze żadnych chatbotów.',
23+
'zh-cn': '尚未配置任何聊天机器人。',
24+
ja: 'チャットボットがまだ設定されていません。',
25+
'zh-tw': '尚未設定任何聊天機器人。',
26+
de: 'Noch keine Chatbots konfiguriert.',
27+
es: 'Aún no se han configurado chatbots.',
28+
fr: 'Pas encore de chatbots configurés pour le moment.',
29+
'pt-br': 'Não há chatbots configurados ainda.',
30+
ru: 'Чат-боты еще не настроены.',
31+
ko: '아직 구성된 챗봇이 없습니다.',
32+
it: 'Non ci sono ancora chatbot configurati.',
33+
tr: 'Henüz hiçbir sohbet robotu yapılandırılmadı.',
34+
cs: 'Zatím nebyli nakonfigurováni žádní chatboti.',
35+
hu: 'Még nincsenek chatbotok konfigurálva.',
36+
bg: 'Все още няма конфигурирани чатботове.'
37+
}
4038
} as const
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
export const translations = {
22
'views.shared.actions.api.delete.deleted': {
3-
en: 'API configuration deleted.',
4-
pl: 'Konfiguracja API usunięta.',
5-
'zh-cn': 'API 配置已删除。',
6-
ja: 'API 構成が削除されました。',
7-
'zh-tw': 'API 配置已刪除。',
8-
de: 'API-Konfiguration gelöscht.',
9-
es: 'Configuración de API eliminada.',
10-
fr: "Configuration de l'API supprimée.",
11-
'pt-br': 'Configuração de API excluída.',
12-
ru: 'Конфигурация API удалена.',
13-
ko: 'API 구성이 삭제되었습니다.',
14-
it: 'Configurazione API eliminata.',
15-
tr: 'API yapılandırması silindi.',
16-
cs: 'Konfigurace API smazána.',
17-
hu: 'API konfiguráció törölve.',
18-
bg: 'API конфигурацията е изтрита.'
3+
en: 'Model deleted.',
4+
pl: 'Usunięto model.',
5+
'zh-cn': '模型已删除。',
6+
ja: 'モデルが削除されました。',
7+
'zh-tw': '模型已刪除。',
8+
de: 'Modell gelöscht.',
9+
es: 'Modelo eliminado.',
10+
fr: 'Modèle supprimé.',
11+
'pt-br': 'Modelo excluído.',
12+
ru: 'Модель удалена.',
13+
ko: '모델이 삭제되었습니다.',
14+
it: 'Modello eliminato.',
15+
tr: 'Model silindi.',
16+
cs: 'Model smazán.',
17+
hu: 'Modell törölve.',
18+
bg: 'Моделът е изтрит.'
1919
}
2020
} as const

‎apps/editor/src/i18n/translations/views/shared/actions/web/delete.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ export const translations = {
1818
bg: 'Без име'
1919
},
2020
'views.shared.actions.web.delete.deleted': {
21-
en: 'Web configuration deleted.',
22-
pl: 'Konfiguracja sieci Web usunięta.',
23-
'zh-cn': 'Web 配置已删除。',
24-
ja: 'Web構成が削除されました。',
25-
'zh-tw': 'Web 配置已刪除。',
26-
de: 'Web-Konfiguration gelöscht.',
27-
es: 'Configuración web eliminada.',
28-
fr: 'Configuration web supprimée.',
29-
'pt-br': 'Configuração web excluída.',
30-
ru: 'Веб-конфигурация удалена.',
31-
ko: '웹 구성이 삭제되었습니다.',
32-
it: 'Configurazione web eliminata.',
33-
tr: 'Web yapılandırması silindi.',
34-
cs: 'Webová konfigurace smazána.',
35-
hu: 'Webes konfiguráció törölve.',
36-
bg: 'Уеб конфигурацията е изтрита.'
21+
en: 'Chatbot deleted.',
22+
pl: 'Usunięto chatbota.',
23+
'zh-cn': '聊天机器人已删除。',
24+
ja: 'チャットボットが削除されました。',
25+
'zh-tw': '聊天機器人已刪除。',
26+
de: 'Chatbot gelöscht.',
27+
es: 'Chatbot eliminado.',
28+
fr: 'Chatbot supprimé.',
29+
'pt-br': 'Chatbot excluído.',
30+
ru: 'Чат-бот удален.',
31+
ko: '챗봇이 삭제되었습니다.',
32+
it: 'Chatbot eliminato.',
33+
tr: 'Sohbet robotu silindi.',
34+
cs: 'Chatbot smazán.',
35+
hu: 'Chatbot törölve.',
36+
bg: 'Чатботът е изтрит.'
3737
}
3838
} as const

‎apps/editor/src/utils/show-missing-configuration-notification.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ export const show_missing_configuration_notification = async (
88
const open_settings_label = t('common.open-settings')
99
const result = await vscode.window.showInformationMessage(
1010
type == 'api'
11-
? t(
12-
'utils.show-missing-configuration-notification.no-model-configurations-created-yet'
13-
)
11+
? t('utils.show-missing-configuration-notification.api-setup-incomplete')
1412
: t(
15-
'utils.show-missing-configuration-notification.no-chatbot-configurations-created-yet'
13+
'utils.show-missing-configuration-notification.no-chatbots-configured-yet'
1614
),
1715
open_settings_label
1816
)

‎apps/editor/src/views/prompt/frontend/Main/MainView/MainView.tsx‎

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -286,41 +286,22 @@ export const MainView: React.FC<Props> = (props) => {
286286

287287
{props.target == TARGET.API &&
288288
props.setup_progress &&
289-
!props.setup_progress.has_provider && (
289+
(!props.setup_progress.has_provider ||
290+
props.api_configurations.length == 0) && (
290291
<>
291292
<UiStatusBar
292293
theme="warning"
293294
icon="codicon-warning"
294-
label={t('providers.missing-provider')}
295+
label={t('configurations.api-setup-incomplete')}
295296
actions={[
296297
{
297298
id: 'settings',
298299
icon: 'codicon-gear',
299300
label: t('action.settings'),
300301
title: t('action.settings'),
301-
on_click: props.on_manage_providers
302-
}
303-
]}
304-
/>
305-
<UiSeparator height={4} />
306-
</>
307-
)}
308-
309-
{props.target == TARGET.API &&
310-
props.setup_progress?.has_provider &&
311-
props.api_configurations.length == 0 && (
312-
<>
313-
<UiStatusBar
314-
theme="warning"
315-
icon="codicon-warning"
316-
label={t('configurations.missing-model')}
317-
actions={[
318-
{
319-
id: 'settings',
320-
icon: 'codicon-gear',
321-
label: t('action.settings'),
322-
title: t('action.settings'),
323-
on_click: props.on_manage_models
302+
on_click: !props.setup_progress.has_provider
303+
? props.on_manage_providers
304+
: props.on_manage_models
324305
}
325306
]}
326307
/>

‎apps/editor/src/views/prompt/frontend/i18n/translations/configurations.ts‎

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
export const configurations = {
2-
'providers.missing-provider': {
3-
en: 'Missing provider',
4-
pl: 'Brak providera',
5-
'zh-cn': '缺少提供商',
6-
ja: 'プロバイダーが不足しています',
7-
'zh-tw': '缺少供應商',
8-
de: 'Fehlender Anbieter',
9-
es: 'Falta proveedor',
10-
fr: 'Fournisseur manquant',
11-
'pt-br': 'Provedor ausente',
12-
ru: 'Отсутствует провайдер',
13-
ko: '제공자가 누락되었습니다',
14-
it: 'Fornitore mancante',
15-
tr: 'Eksik sağlayıcı',
16-
cs: 'Chybějící poskytovatel',
17-
hu: 'Hiányzó szolgáltató',
18-
bg: 'Липсващ доставчик'
19-
},
20-
'configurations.missing-model': {
21-
en: 'Missing model',
22-
pl: 'Brak modelu',
23-
'zh-cn': '缺少模型',
24-
ja: 'モデルが不足しています',
25-
'zh-tw': '缺少模型',
26-
de: 'Fehlendes Modell',
27-
es: 'Falta modelo',
28-
fr: 'Modèle manquant',
29-
'pt-br': 'Modelo ausente',
30-
ru: 'Отсутствует модель',
31-
ko: '모델이 누락되었습니다',
32-
it: 'Modello mancante',
33-
tr: 'Eksik model',
34-
cs: 'Chybějící model',
35-
hu: 'Hiányzó modell',
36-
bg: 'Липсващ модел'
2+
'configurations.api-setup-incomplete': {
3+
en: 'API setup incomplete',
4+
pl: 'Konfiguracja API niekompletna',
5+
'zh-cn': 'API 设置不完整',
6+
ja: 'API の設定が不完全です',
7+
'zh-tw': 'API 設定不完整',
8+
de: 'API-Einrichtung unvollständig',
9+
es: 'Configuración de API incompleta',
10+
fr: 'Configuration de l’API incomplète',
11+
'pt-br': 'Configuração da API incompleta',
12+
ru: 'Настройка API не завершена',
13+
ko: 'API 설정이 불완전합니다',
14+
it: 'Configurazione API incompleta',
15+
tr: 'API kurulumu eksik',
16+
cs: 'Nastavení API je neúplné',
17+
hu: 'Az API beállítása nem teljes',
18+
bg: 'Настройката на API е непълна'
3719
},
3820
'configurations.empty': {
3921
en: 'No models configured yet',

0 commit comments

Comments
 (0)