Added translation tag for settings

This commit is contained in:
Stela Augustinova
2025-11-27 09:11:33 +01:00
parent c6b5ee164b
commit 06a9a93d1c
2 changed files with 10 additions and 9 deletions

View File

@@ -19,7 +19,7 @@
const electron = getElectron(); const electron = getElectron();
let restartWarning = false; let restartWarning = false;
</script> </script>
<div class="heading">{_t('settings.general', { defaultMessage: 'General' })}</div>
{#if electron} {#if electron}
<div class="heading">{_t('settings.appearance', { defaultMessage: 'Appearance' })}</div> <div class="heading">{_t('settings.appearance', { defaultMessage: 'Appearance' })}</div>
<FormCheckboxField <FormCheckboxField

View File

@@ -11,59 +11,60 @@
import OtherSettings from "../settings/OtherSettings.svelte"; import OtherSettings from "../settings/OtherSettings.svelte";
import LicenseSettings from "../settings/LicenseSettings.svelte"; import LicenseSettings from "../settings/LicenseSettings.svelte";
import { isProApp } from "../utility/proTools"; import { isProApp } from "../utility/proTools";
import { _t } from "../translations";
const menuItems = [ const menuItems = [
{ {
label: 'General', label: _t('settings.general', { defaultMessage: 'General' }),
identifier: 'general', identifier: 'general',
component: GeneralSettings, component: GeneralSettings,
props: {}, props: {},
testid: 'settings-general', testid: 'settings-general',
}, },
{ {
label: 'Connection', label: _t('settings.connection', { defaultMessage: 'Connection' }),
identifier: 'connection', identifier: 'connection',
component: ConnectionSettings, component: ConnectionSettings,
props: {}, props: {},
testid: 'settings-connection', testid: 'settings-connection',
}, },
{ {
label: 'Themes', label: _t('settings.theme', { defaultMessage: 'Themes' }),
identifier: 'theme', identifier: 'theme',
component: ThemeSettings, component: ThemeSettings,
props: {}, props: {},
testid: 'settings-themes', testid: 'settings-themes',
}, },
{ {
label: 'Default Actions', label: _t('settings.defaultActions', { defaultMessage: 'Default Actions' }),
identifier: 'default-actions', identifier: 'default-actions',
component: DefaultActionsSettings, component: DefaultActionsSettings,
props: {}, props: {},
testid: 'settings-default-actions', testid: 'settings-default-actions',
}, },
{ {
label: 'Behaviour', label: _t('settings.behaviour', { defaultMessage: 'Behaviour' }),
identifier: 'behaviour', identifier: 'behaviour',
component: BehaviourSettings, component: BehaviourSettings,
props: {}, props: {},
testid: 'settings-behaviour', testid: 'settings-behaviour',
}, },
{ {
label: 'External Tools', label: _t('settings.externalTools', { defaultMessage: 'External Tools' }),
identifier: 'external-tools', identifier: 'external-tools',
component: ExternalToolsSettings, component: ExternalToolsSettings,
props: {}, props: {},
testid: 'settings-external-tools', testid: 'settings-external-tools',
}, },
isProApp() && { isProApp() && {
label: 'License', label: _t('settings.license', { defaultMessage: 'License' }),
identifier: 'license', identifier: 'license',
component: LicenseSettings, component: LicenseSettings,
props: {}, props: {},
testid: 'settings-license', testid: 'settings-license',
}, },
{ {
label: 'Other', label: _t('settings.other', { defaultMessage: 'Other' }),
identifier: 'other', identifier: 'other',
component: OtherSettings, component: OtherSettings,
props: {}, props: {},