Skip to content

Commit 55a1fc6

Browse files
fix(UserSettings): do not show language setting (#2989)
1 parent 45732e1 commit 55a1fc6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/containers/UserSettings/settings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ export const appearanceSection: SettingsSection = {
225225
title: i18n('section.appearance'),
226226
settings: [
227227
themeSetting,
228-
languageSetting,
229228
invertedDisksSetting,
230229
binaryDataInPlainTextDisplay,
231230
showDomainDatabase,

src/utils/i18n/i18n.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ import type {KeysData} from '@gravity-ui/i18n';
22
import {I18N} from '@gravity-ui/i18n';
33
import {configure as configureUiKit} from '@gravity-ui/uikit';
44

5-
import {settingsManager} from '../../services/settings';
6-
import {LANGUAGE_KEY} from '../constants';
7-
85
enum Lang {
96
En = 'en',
107
Ru = 'ru',
118
}
129

1310
const defaultLang = Lang.En;
14-
const currentLang = settingsManager.readUserSettingsValue(LANGUAGE_KEY, defaultLang) as Lang;
11+
12+
// Disable russian language while it is not properly supported
13+
// Force English locale for users who previously selected Russian when the setting was available
14+
// const currentLang = settingsManager.readUserSettingsValue(LANGUAGE_KEY, defaultLang) as Lang;
15+
const currentLang = Lang.En;
1516

1617
const i18n = new I18N({
1718
lang: currentLang,

0 commit comments

Comments
 (0)