mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
Added translation tag for settings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user