generated from mirrors/plugin-sample-vite-svelte
Notify on auto language detection
All checks were successful
Build on Push and create Release on Tag / build (push) Successful in 47s
All checks were successful
Build on Push and create Release on Tag / build (push) Successful in 47s
This commit is contained in:
parent
68025b9a34
commit
f26a123d1e
3 changed files with 18 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue