mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-17 23:45:59 +00:00
feat: default value for language select
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
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 { _t, getSelectedLanguage } from '../translations';
|
||||||
import { internalRedirectTo } from '../clientAuth';
|
import { internalRedirectTo } from '../clientAuth';
|
||||||
|
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
@@ -123,11 +123,16 @@ ORDER BY
|
|||||||
{/if}
|
{/if}
|
||||||
{/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>
|
<div class="heading">{_t('settings.localization', { defaultMessage: 'Localization' })}</div>
|
||||||
<FormSelectField
|
<FormSelectField
|
||||||
label="Language"
|
label="Language"
|
||||||
name="localization.language"
|
name="localization.language"
|
||||||
|
defaultValue={getSelectedLanguage()}
|
||||||
isNative
|
isNative
|
||||||
options={[
|
options={[
|
||||||
{ value: 'en', label: 'English' },
|
{ value: 'en', label: 'English' },
|
||||||
|
|||||||
Reference in New Issue
Block a user