feat: allow disabling translation for specific languages (#1371)
This commit is contained in:
parent
e197a1dbe9
commit
b48b7f4c16
8 changed files with 130 additions and 12 deletions
|
@ -26,6 +26,7 @@ export interface UserSettings {
|
|||
colorMode?: ColorMode
|
||||
fontSize: FontSize
|
||||
language: string
|
||||
disabledTranslationLanguages: string[]
|
||||
zenMode: boolean
|
||||
themeColors?: ThemeColors
|
||||
}
|
||||
|
@ -56,6 +57,7 @@ export function getDefaultUserSettings(locales: string[]): UserSettings {
|
|||
return {
|
||||
language: getDefaultLanguage(locales),
|
||||
fontSize: DEFAULT_FONT_SIZE,
|
||||
disabledTranslationLanguages: [],
|
||||
zenMode: false,
|
||||
preferences: {},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue