mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 16:26:00 +00:00
feat: add basic language switch to settings
This commit is contained in:
@@ -39,6 +39,8 @@
|
|||||||
import { derived } from 'svelte/store';
|
import { derived } from 'svelte/store';
|
||||||
import { safeFormatDate } from 'dbgate-tools';
|
import { safeFormatDate } from 'dbgate-tools';
|
||||||
import FormDefaultActionField from './FormDefaultActionField.svelte';
|
import FormDefaultActionField from './FormDefaultActionField.svelte';
|
||||||
|
import { _t } from '../translations';
|
||||||
|
import { internalRedirectTo } from '../clientAuth';
|
||||||
|
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
let restartWarning = false;
|
let restartWarning = false;
|
||||||
@@ -122,6 +124,21 @@ ORDER BY
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<FormCheckboxField name="tabGroup.showServerName" label="Show server name alongside database name in title of the tab group" defaultValue={false} />
|
<FormCheckboxField name="tabGroup.showServerName" label="Show server name alongside database name in title of the tab group" defaultValue={false} />
|
||||||
|
<div class="heading">{_t('settings.localization', { defaultMessage: 'Localization' })}</div>
|
||||||
|
<FormSelectField
|
||||||
|
label="Language"
|
||||||
|
name="localization.language"
|
||||||
|
isNative
|
||||||
|
options={[
|
||||||
|
{ value: 'en-US', label: 'English' },
|
||||||
|
{ value: 'cs-CZ', label: 'Czech' },
|
||||||
|
]}
|
||||||
|
on:change={() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
internalRedirectTo('/');
|
||||||
|
}, 100);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
<div class="heading">Data grid</div>
|
<div class="heading">Data grid</div>
|
||||||
<FormTextField
|
<FormTextField
|
||||||
|
|||||||
Reference in New Issue
Block a user