1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Desktop: Resolves #10835: Allow specifying custom language data URLs (#10846)

This commit is contained in:
Henry Heino
2024-08-09 03:29:39 -07:00
committed by GitHub
parent 6ce55a5737
commit 806377e6ee
9 changed files with 108 additions and 13 deletions

View File

@ -498,6 +498,34 @@ const builtInMetadata = (Setting: typeof SettingType) => {
isGlobal: true,
},
'ocr.languageDataPath': {
value: '',
type: SettingItemType.String,
advanced: true,
public: true,
appTypes: [AppType.Desktop],
label: () => _('OCR: Language data URL or path'),
storage: SettingStorage.File,
isGlobal: true,
},
'ocr.clearLanguageDataCache': {
value: false,
type: SettingItemType.Bool,
public: false,
appTypes: [AppType.Desktop],
storage: SettingStorage.Database,
},
'ocr.clearLanguageDataCacheButton': {
value: null as null,
type: SettingItemType.Button,
advanced: true,
public: true,
appTypes: [AppType.Desktop],
label: () => _('OCR: Clear cache and re-download language data files'),
},
theme: {
value: Setting.THEME_LIGHT,
type: SettingItemType.Int,