mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 00:13:57 +00:00
translation-select language
This commit is contained in:
@@ -143,19 +143,20 @@ ORDER BY
|
|||||||
label={_t('settings.tabGroup.showServerName', { defaultMessage: 'Show server name alongside database name in title of the tab group' })}
|
label={_t('settings.tabGroup.showServerName', { defaultMessage: 'Show server name alongside database name in title of the tab group' })}
|
||||||
defaultValue={false}
|
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={_t('settings.localization.language', { defaultMessage: 'Language' })}
|
||||||
name="localization.language"
|
name="localization.language"
|
||||||
defaultValue={getSelectedLanguage()}
|
defaultValue={getSelectedLanguage()}
|
||||||
isNative
|
isNative
|
||||||
options={[
|
options={[
|
||||||
{ value: 'en', label: 'English' },
|
{ value: 'en', label: 'English' },
|
||||||
{ value: 'cs', label: 'Czech' },
|
{ value: 'cs', label: 'Čeština' },
|
||||||
|
{ value: 'sk', label: 'Slovenčina' },
|
||||||
]}
|
]}
|
||||||
on:change={() => {
|
on:change={() => {
|
||||||
showModal(ConfirmModal, {
|
showModal(ConfirmModal, {
|
||||||
message: 'Application will be reloaded to apply new language settings',
|
message: _t('settings.localization.reloadWarning', { defaultMessage: 'Application will be reloaded to apply new language settings' }),
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
internalRedirectTo('/');
|
internalRedirectTo('/');
|
||||||
@@ -163,7 +164,7 @@ ORDER BY
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/> -->
|
/>
|
||||||
|
|
||||||
<div class="heading">{_t('settings.dataGrid.title', { defaultMessage: 'Data grid' })}</div>
|
<div class="heading">{_t('settings.dataGrid.title', { defaultMessage: 'Data grid' })}</div>
|
||||||
<FormTextField
|
<FormTextField
|
||||||
|
|||||||
Reference in New Issue
Block a user