Notify on auto language detection
All checks were successful
Build on Push and create Release on Tag / build (push) Successful in 47s

This commit is contained in:
MassiveBox 2025-12-04 21:42:17 +01:00
parent 68025b9a34
commit f26a123d1e
Signed by: massivebox
GPG key ID: 9B74D3A59181947D
3 changed files with 18 additions and 2 deletions

View file

@ -85,6 +85,9 @@ export default class SpellCheckPlugin extends Plugin {
void this.suggestions.forAllBlocksSuggest(false, true)
const settings = await ProtyleHelper.getDocumentSettings(event.detail.protyle.block.id,
this.settingsUtil.get('enabledByDefault'), this.settingsUtil.get('defaultLanguage'))
if(settings.language == 'auto' && this.settingsUtil.get('online')) {
showMessage(this.i18nx.errors.autoLanguage, -1, 'info')
}
this.currentlyEditing = {
protyle: new ProtyleHelper(event.detail.protyle.contentElement),
enabled: settings.enabled,

View file

@ -109,6 +109,14 @@ export class Settings {
value: 'auto'
})
su.addItem({
type: 'checkbox',
key: 'reportAuto',
title: to.reportAuto.title,
description: to.reportAuto.description,
value: true
})
su.addItem({
type: 'checkbox',
key: 'offline',