Skip to content

Commit a3c70c8

Browse files
committed
Rename the defaults section to default-configurations throughout the settings view and translations
- rename 'defaults' to 'default configurations', also rename translation key
1 parent 0041fd5 commit a3c70c8

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

apps/editor/src/views/settings/frontend/Home/Home.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type NavItem =
3535
| 'chatbots'
3636
| 'model-providers'
3737
| 'configurations'
38-
| 'defaults'
38+
| 'default-configurations'
3939
| 'instructions'
4040

4141
type NavConfigItem = { id: NavItem; label: TranslationKey; is_nested?: boolean }
@@ -74,8 +74,8 @@ const NAV_ITEMS_CONFIG: NavConfigItem[] = [
7474
label: 'sections.api-configurations'
7575
},
7676
{
77-
id: 'defaults',
78-
label: 'configurations.defaults.title',
77+
id: 'default-configurations',
78+
label: 'configurations.default-configurations.title',
7979
is_nested: true
8080
},
8181
{
@@ -171,7 +171,7 @@ export const Home: React.FC<Props> = (props) => {
171171
chatbots: null,
172172
'model-providers': null,
173173
configurations: null,
174-
defaults: null,
174+
'default-configurations': null,
175175
instructions: null
176176
})
177177

apps/editor/src/views/settings/frontend/Home/sections/ApiConfigurationsSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export const ApiConfigurationsSection = forwardRef<HTMLDivElement, Props>(
140140
/>
141141
)}
142142
</UiGroup>
143-
<div ref={(el) => props.set_section_ref('defaults', el)}>
144-
<UiGroup title={t('configurations.defaults.title')}>
143+
<div ref={(el) => props.set_section_ref('default-configurations', el)}>
144+
<UiGroup title={t('configurations.default-configurations.title')}>
145145
<DefaultConfigurationSelector
146146
title={t('configurations.tool.intelligent-update')}
147147
value={props.defaults['intelligent-update'] || null}

apps/editor/src/views/settings/frontend/i18n/translations/configurations.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -234,23 +234,23 @@ export const configurations = {
234234
hu: 'konfigurációk',
235235
bg: 'конфигурации'
236236
},
237-
'configurations.defaults.title': {
238-
en: 'Defaults',
239-
pl: 'Domyślne',
240-
'zh-cn': '默认',
241-
ja: 'デフォルト',
242-
'zh-tw': '預設',
243-
de: 'Standardwerte',
244-
es: 'Predeterminados',
245-
fr: 'Par défaut',
246-
'pt-br': 'Padrões',
247-
ru: 'По умолчанию',
248-
ko: '기본값',
249-
it: 'Predefiniti',
250-
tr: 'Varsayılanlar',
251-
cs: 'Výchozí',
252-
hu: 'Alapértelmezett',
253-
bg: 'По подразбиране'
237+
'configurations.default-configurations.title': {
238+
en: 'Default Configurations',
239+
pl: 'Domyślne konfiguracje',
240+
'zh-cn': '默认配置',
241+
ja: 'デフォルト設定',
242+
'zh-tw': '預設設定',
243+
de: 'Standardkonfigurationen',
244+
es: 'Configuraciones predeterminadas',
245+
fr: 'Configurations par défaut',
246+
'pt-br': 'Configurações Padrão',
247+
ru: 'Конфигурации по умолчанию',
248+
ko: '기본 구성',
249+
it: 'Configurazioni predefinite',
250+
tr: 'Varsayılan Yapılandırmalar',
251+
cs: 'Výchozí konfigurace',
252+
hu: 'Alapértelmezett konfigurációk',
253+
bg: 'Конфигурации по подразбиране'
254254
},
255255
'configurations.tool.code-at-cursor': {
256256
en: 'Code at Cursor',

0 commit comments

Comments
 (0)