From c1a65fbe8b95a83edd0389a99b9aaaf3ae07d51d Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:53:49 +0300 Subject: [PATCH 01/19] fix(docs): update some required information about plugin in README Information about semantics of plugin was stale (using comma as separated and other): updated this, also add link to the wikipedia. Part of fixes from #73 --- .markdownlint.json | 13 +++++-------- README.md | 31 +++++++++++++------------------ 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/.markdownlint.json b/.markdownlint.json index 9e87bc5..748728d 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -4,14 +4,11 @@ "no-inline-html": { "allowed_elements": [ "br", - "details", + "p", + "a", + "div", "img", - "li", - "summary", - "ul", - "unknown", - "Tabs", - "TabItem" + "h3" ] } -} \ No newline at end of file +} diff --git a/README.md b/README.md index a7e8584..809a398 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,7 @@ -About the project ------------------ +## About the project Unfortunately, Obsidian™ does not, for some reason, have the ability to edit any file extensions that the user would like to edit, and the plugins that exist for this application are an inconvenient format for the end user, for example, entering a full-fledged JSON in one line. @@ -54,8 +53,7 @@ Project is created and “written” with help of: -Getting started ---------------- +## Getting started Before asking questions, read this block because here is all the primary information on the project, which can answer your future not-yet asked questions. @@ -102,13 +100,14 @@ Guidelines for installation of source code of this project: -Usage ------ +## Usage Usage of UNITADE plugin is very easy and comfortable for common user, by default, you can edit any plain text (.TXT) files in your vault, but if you want to add custom extensions, you can easy do it with plugin's settings, there is an instruction: 1. Go to your vault's settings and seek for "community plugins" sector, if you have restricted mode, repeat first and second steps of official installation guide[^2]; -2. If you have installed plugin and app saw it, you can see element named "UNITADE": open it and seek for setting named “extensions” and type an array of extensions, separated by comma; +2. If you have installed plugin and app saw it, you can see element named "UNITADE": open it and seek for setting named “extensions” and type an array of extensions, separated by "greater-than sign" (`>`); + - This method applies only if you want to read files as .MD extensions, for more information about settings, modes and other things in the plugin, read the wikipedia of plugin: + 3. Now, you can edit extensions which you typed in settings.

[^]

@@ -116,8 +115,7 @@ Usage of UNITADE plugin is very easy and comfortable for common user, by default -Roadmap -------- +## Roadmap -Contributing ------------- +## Contributing Contributions are what make open source community such an interest place to be in, so any form of contribution are greatly appreciated. @@ -154,6 +151,7 @@ If you want to contribute to this project, please, read contributioning policy a > For one-single file contributioning, use a more quicker way without forking the repository through website. More about it in this article: + - [“Working with forks”](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork/) about syncing one-file fork;

[^]

@@ -161,10 +159,9 @@ More about it in this article: -License -------- +## License -Project thanks the [Electron.js](https://github.com/electron/electron/) and [Angular.js](https://github.com/angular/angular/) for their amazing repository scripts and entire infrastructure, which partially were imported to this repository. +Project thanks the [Electron.js](https://github.com/electron/electron/) and [Angular.js](https://github.com/angular/angular/) for their amazing repository scripts and entire infrastructure, which partially were imported to this repository. > For individual licensing and credits information, seek correspondive files and/or sources. @@ -181,8 +178,7 @@ Project itself is being distributed under the [MIT License](https://choosealicen -Contact -------- +## Contact For any legal purposes, you can contact developer/maintainer through its e-mail: @@ -198,8 +194,7 @@ If the developer/maintainer didn't answered, or you have other questions in natu -Acknowledgments ---------------- +## Acknowledgments - https://shields.io/ - https://simpleicons.org/ From 68b382494a37026f4a732a3cd04a34ab55e5e326 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:20:51 +0300 Subject: [PATCH 02/19] fix(locales): sync locales and implement them in stale settings tab --- source/locales/langs/en.ts | 54 ++++++++++++++++++++- source/settings.ts | 96 +++++++++++++++++++------------------- 2 files changed, 101 insertions(+), 49 deletions(-) diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index b30ba0c..5b5548d 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -33,7 +33,7 @@ export const LOCALES_EN = { 0: "UNITADE's settings:", 1: "Errors:", 2: "Advanced block", - 3: "Code editor block:", + 3: "Code editor block", 4: "Additionals", }, "SETTINGS_EXTENSIONS": { @@ -167,5 +167,57 @@ export const LOCALES_EN = { }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/settings.ts b/source/settings.ts index f363bcf..3e3c40b 100644 --- a/source/settings.ts +++ b/source/settings.ts @@ -721,9 +721,9 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { containerEl.createEl('h3', { text: this.locale.getLocaleItem('UNITADE_SETTINGS_COMMON')[3]! }); new Setting(containerEl) - .setName('Enable code editor module:') - .setDesc('This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.') - .setTooltip('May cause lags and other issues.') + .setName(this.locale.getLocaleItem('SETTINGS_CODE_EDITOR')[0]!) + .setDesc(this.locale.getLocaleItem('SETTINGS_CODE_EDITOR')[1]!) + .setTooltip(this.locale.getLocaleItem('SETTINGS_CODE_EDITOR')[2]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.enabled) @@ -738,23 +738,23 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { await this.plugin.uptSettings(next); - await this.__updateErrors(); + this.__updateErrors(); this.__uptCEConfig([ - useDefaultExtensions, editorExtensionsInput, codeExtensionsWarn, editorTheme, + useDefaultExtensions, editorExtensionsInput, codeExtensionsWarn, editorTheme, editorFolding, editorWordWrapping, editorLineNumbers, editorMinimapping, editorValidationSemantic, editorValidationSyntax, editorFontSize, editorFontFamily, editorFontLigatures - ], value); + ], value); }) return toggle; }); const useDefaultExtensions = new Setting(containerEl) - .setName('Use default extensions:') - .setDesc('If disabled, code editor module will require to input its own extensions, otherwise, it would use "simple" extensions from config.') - .setTooltip('This block also can be replaced by grouped extensions.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_USE_DEFAULT')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_USE_DEFAULT')[1]!) + .setTooltip(this.locale.getLocaleItem('CODE_EDITOR_USE_DEFAULT')[2]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.use_default_extensions) @@ -770,9 +770,9 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { await this.plugin.uptSettings(next); this.__uptCEConfig([editorExtensionsInput, codeExtensionsWarn], !value); - - if(this.plugin.settings.debug_mode) - console.debug(`HIDE EDITOR EXTENSIONS? =${value ? 'NO.' : 'YES.'}`); + + if (this.plugin.settings.debug_mode) + console.debug(`HIDE EDITOR EXTENSIONS? =${value ? 'NO.' : 'YES.'}`); }); return toggle; @@ -821,7 +821,7 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { codeExtensionsText.style.fontSize = '80%'; codeExtensionsText.style.margin = '10px'; codeExtensionsText.style.color = 'green'; - codeExtensionsText.innerHTML = 'Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to "clone" extensions, use specified feature.'; + codeExtensionsText.innerHTML = this.locale.getLocaleItem('CODE_EDITOR_USE_DEFAULT')[3]!; codeExtensionsWarn.infoEl.appendChild(codeExtensionsText); @@ -830,10 +830,10 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { editorExtensionsInput.inputEl.style.minHeight = '36px'; const editorFolding = new Setting(containerEl) - .setName('Enable folding:') - .setDesc('A feature that allows you to hide (collapse) parts of your code to improve readability.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[1]!) .addToggle(toggle => { - toggle + toggle .setValue(this.plugin.settings.code_editor_settings.folding) .onChange(async (value) => { const next = { @@ -846,13 +846,13 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { await this.plugin.uptSettings(next); }); - + return toggle; }); const editorLineNumbers = new Setting(containerEl) - .setName('Line numbers:') - .setDesc('Feature to display line numbers in the editor.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_LINE_NUMBERS')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_LINE_NUMBERS')[1]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.line_numbers) @@ -872,8 +872,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorWordWrapping = new Setting(containerEl) - .setName('Word wrapping:') - .setDesc('Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_WORD_WRAPPING')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_WORD_WRAPPING')[1]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.word_wrapping) @@ -893,10 +893,10 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorMinimapping = new Setting(containerEl) - .setName('Enable minimapping:') - .setDesc('Feature that provides a thumbnail view of the entire document.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_MINIMAPPING')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_MINIMAPPING')[1]!) .addToggle(toggle => { - toggle + toggle .setValue(this.plugin.settings.code_editor_settings.minimapping) .onChange(async (value) => { const next = { @@ -914,8 +914,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorValidationSemantic = new Setting(containerEl) - .setName('Enable semantic validation:') - .setDesc('This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_SEMANTIC_VALIDATION')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_SEMANTIC_VALIDATION')[1]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.validation_semantic) @@ -935,8 +935,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorValidationSyntax = new Setting(containerEl) - .setName('Enable syntax validation:') - .setDesc('This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_SYNTAX_VALIDATION')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_SYNTAX_VALIDATION')[1]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.validation_syntax) @@ -956,8 +956,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorTheme = new Setting(containerEl) - .setName('Editor theme:') - .setDesc('Choose specific theme for code editor, visually affects syntax highlighting.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_EDIT_THEME')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_EDIT_THEME')[1]!) .addDropdown(dropdown => { dropdown .addOptions(CONSTANTS.themes) @@ -971,22 +971,22 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }, }; - if(this.plugin.settings.debug_mode) + if (this.plugin.settings.debug_mode) console.debug('CAUGHT THEME FOR THE EDITOR:' + `${value};`); await this.plugin.uptSettings(next); this.__updateErrors(); - + }); return dropdown; }); - containerEl.createEl('h4', { text: 'Font settings for code editor:' }); + containerEl.createEl('h4', { text: this.locale.getLocaleItem('SETTINGS_CODE_EDITOR')[3]! }); const editorFontSize = new Setting(containerEl) - .setName('Font size:') + .setName(this.locale.getLocaleItem('CODE_EDITOR_FONT_SIZE')[0]!) .addSlider(slider => { slider .setValue(this.plugin.settings.code_editor_settings.font_size) @@ -1007,8 +1007,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorFontFamily = new Setting(containerEl) - .setName('Font family:') - .setDesc('Write here existing font families and fonts themselves: input format like in any code editor.') + .setName(this.locale.getLocaleItem('CODE_EDITOR_FONT_FAMILY')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_FONT_FAMILY')[1]!) .addTextArea(text => { text .setValue(this.plugin.settings.code_editor_settings.font_family) @@ -1028,9 +1028,9 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { }); const editorFontLigatures = new Setting(containerEl) - .setName('Font ligatures:') - .setDesc('If your font supports ligatures, you can turn them on.') - .setTooltip('If ligatures are not supported by font, this would not work') + .setName(this.locale.getLocaleItem('CODE_EDITOR_FONT_LIGATURES')[0]!) + .setDesc(this.locale.getLocaleItem('CODE_EDITOR_FONT_LIGATURES')[1]!) + .setTooltip(this.locale.getLocaleItem('CODE_EDITOR_FONT_LIGATURES')[2]!) .addToggle(toggle => { toggle .setValue(this.plugin.settings.code_editor_settings.font_ligatures) @@ -1156,15 +1156,15 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { mbConfigInput.inputEl.style.display = mbConfigEnabled ? 'block' : 'none'; } - private __uptCEConfig(configCodeEditorElements: (TextAreaComponent|Setting)[], configCodeEditorEnabled: boolean): void { - for(const configCodeEditorElement of configCodeEditorElements) { - if(configCodeEditorElement instanceof TextAreaComponent) { - configCodeEditorElement.inputEl.style.display = configCodeEditorEnabled ? 'block' : 'none'; - } else if(configCodeEditorElement instanceof Setting) { - configCodeEditorElement.settingEl.style.display = configCodeEditorEnabled ? 'block' : 'none'; - } else { - throw new Error('Unknown type of throwable entity.'); - } + private __uptCEConfig(configCodeEditorElements: (TextAreaComponent | Setting)[], configCodeEditorEnabled: boolean): void { + for (const configCodeEditorElement of configCodeEditorElements) { + if (configCodeEditorElement instanceof TextAreaComponent) { + configCodeEditorElement.inputEl.style.display = configCodeEditorEnabled ? 'block' : 'none'; + } else if (configCodeEditorElement instanceof Setting) { + configCodeEditorElement.settingEl.style.display = configCodeEditorEnabled ? 'block' : 'none'; + } else { + throw new Error('Unknown type of throwable entity.'); + } } } From ea6f6f25df0fc372afe5062034481886db625c03 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:26:03 +0300 Subject: [PATCH 03/19] fix(locales): sync locales between languages and fix bug when settings appear null This things occurs because different language may not contain specified elements, for example, translation for code editor font size and etc. Part of fixes from #73 --- source/locales/langs/ar.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/cz.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/da.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/de.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/es.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/fr.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/hi.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/id.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/it.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/ja.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/ko.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/nl.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/no.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/pl.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/pt.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/pt_br.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/ro.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/ru.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/sq.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/tr.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/uk.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/zh.ts | 133 ++++++++++++++++++++++++++++++++-- source/locales/langs/zh_tw.ts | 133 ++++++++++++++++++++++++++++++++-- 23 files changed, 2944 insertions(+), 115 deletions(-) diff --git a/source/locales/langs/ar.ts b/source/locales/langs/ar.ts index 217f761..82fed0a 100644 --- a/source/locales/langs/ar.ts +++ b/source/locales/langs/ar.ts @@ -29,9 +29,16 @@ * `ar: "العربية (جزئي)"` */ export const LOCALES_AR = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_AR = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_AR = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/cz.ts b/source/locales/langs/cz.ts index 192f42b..67848c0 100644 --- a/source/locales/langs/cz.ts +++ b/source/locales/langs/cz.ts @@ -29,9 +29,16 @@ * `cz: "čeština"` */ export const LOCALES_CZ = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_CZ = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_CZ = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/da.ts b/source/locales/langs/da.ts index dc9e81b..182db57 100644 --- a/source/locales/langs/da.ts +++ b/source/locales/langs/da.ts @@ -29,9 +29,16 @@ * `da: "Dansk"` */ export const LOCALES_DA = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_DA = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_DA = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/de.ts b/source/locales/langs/de.ts index ff2bed4..c49c8f2 100644 --- a/source/locales/langs/de.ts +++ b/source/locales/langs/de.ts @@ -29,9 +29,16 @@ * `de: "Deutsch"` */ export const LOCALES_DE = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_DE = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_DE = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/es.ts b/source/locales/langs/es.ts index 817aded..62fbf73 100644 --- a/source/locales/langs/es.ts +++ b/source/locales/langs/es.ts @@ -29,9 +29,16 @@ * `es: "Español"` */ export const LOCALES_ES = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_ES = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_ES = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/fr.ts b/source/locales/langs/fr.ts index 3f85133..bdfc91b 100644 --- a/source/locales/langs/fr.ts +++ b/source/locales/langs/fr.ts @@ -29,9 +29,16 @@ * `fr: "Français"` */ export const LOCALES_FR = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_FR = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_FR = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/hi.ts b/source/locales/langs/hi.ts index fa7baf2..da6dd2c 100644 --- a/source/locales/langs/hi.ts +++ b/source/locales/langs/hi.ts @@ -29,9 +29,16 @@ * `hi: "हिन्दी (आंशिक)"` */ export const LOCALES_HI = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_HI = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_HI = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/id.ts b/source/locales/langs/id.ts index fdfce7d..73c0048 100644 --- a/source/locales/langs/id.ts +++ b/source/locales/langs/id.ts @@ -29,9 +29,16 @@ * `id: "Bahasa Indonesia"` */ export const LOCALES_ID = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_ID = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_ID = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/it.ts b/source/locales/langs/it.ts index 7a0847a..85f4f01 100644 --- a/source/locales/langs/it.ts +++ b/source/locales/langs/it.ts @@ -29,9 +29,16 @@ * `it: "Italiano"` */ export const LOCALES_IT = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_IT = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_IT = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/ja.ts b/source/locales/langs/ja.ts index a178229..6a73885 100644 --- a/source/locales/langs/ja.ts +++ b/source/locales/langs/ja.ts @@ -29,9 +29,16 @@ * `ja: "日本語"` */ export const LOCALES_JA = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_JA = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_JA = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/ko.ts b/source/locales/langs/ko.ts index 3b4a498..13a1c53 100644 --- a/source/locales/langs/ko.ts +++ b/source/locales/langs/ko.ts @@ -29,9 +29,16 @@ * `ko: "한국어"` */ export const LOCALES_KO = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_KO = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_KO = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/nl.ts b/source/locales/langs/nl.ts index c808688..c63fef1 100644 --- a/source/locales/langs/nl.ts +++ b/source/locales/langs/nl.ts @@ -29,9 +29,16 @@ * `nl: "Nederlands (gedeeltelijk)"` */ export const LOCALES_NL = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_NL = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_NL = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/no.ts b/source/locales/langs/no.ts index 9f7bf68..38f7221 100644 --- a/source/locales/langs/no.ts +++ b/source/locales/langs/no.ts @@ -29,9 +29,16 @@ * `no: "Norsk"` */ export const LOCALES_NO = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_NO = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_NO = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/pl.ts b/source/locales/langs/pl.ts index 0ab7187..1c2ec12 100644 --- a/source/locales/langs/pl.ts +++ b/source/locales/langs/pl.ts @@ -29,9 +29,16 @@ * `pl: "język polski"` */ export const LOCALES_PL = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_PL = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_PL = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/pt.ts b/source/locales/langs/pt.ts index 807de0d..8848a53 100644 --- a/source/locales/langs/pt.ts +++ b/source/locales/langs/pt.ts @@ -29,9 +29,16 @@ * `pt: "Português"` */ export const LOCALES_PT = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_PT = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_PT = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/pt_br.ts b/source/locales/langs/pt_br.ts index b0cd37c..b2433b7 100644 --- a/source/locales/langs/pt_br.ts +++ b/source/locales/langs/pt_br.ts @@ -29,9 +29,16 @@ * `"pt-BR": "Portugues do Brasil"` */ export const LOCALES_PT_BR = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_PT_BR = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_PT_BR = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/ro.ts b/source/locales/langs/ro.ts index bd81207..dd32657 100644 --- a/source/locales/langs/ro.ts +++ b/source/locales/langs/ro.ts @@ -29,9 +29,16 @@ * `ro: "Română"` */ export const LOCALES_RO = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_RO = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_RO = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/ru.ts b/source/locales/langs/ru.ts index 363389b..f38c8c3 100644 --- a/source/locales/langs/ru.ts +++ b/source/locales/langs/ru.ts @@ -29,9 +29,16 @@ * `ru: "Pусский"` */ export const LOCALES_RU = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_RU = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_RU = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/sq.ts b/source/locales/langs/sq.ts index 7433bc5..48a54a1 100644 --- a/source/locales/langs/sq.ts +++ b/source/locales/langs/sq.ts @@ -29,9 +29,16 @@ * `sq: "Shqip"` */ export const LOCALES_SQ = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_SQ = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_SQ = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/tr.ts b/source/locales/langs/tr.ts index 0ce6e74..af1a21b 100644 --- a/source/locales/langs/tr.ts +++ b/source/locales/langs/tr.ts @@ -29,9 +29,16 @@ * `tr: "Türkçe (kısmi)"` */ export const LOCALES_TR = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_TR = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_TR = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/uk.ts b/source/locales/langs/uk.ts index 944e5b6..031a093 100644 --- a/source/locales/langs/uk.ts +++ b/source/locales/langs/uk.ts @@ -29,9 +29,16 @@ * `uk: "Український"` */ export const LOCALES_UK = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_UK = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_UK = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/zh.ts b/source/locales/langs/zh.ts index df7afeb..87610b8 100644 --- a/source/locales/langs/zh.ts +++ b/source/locales/langs/zh.ts @@ -29,9 +29,16 @@ * `zh: "简体中文"` */ export const LOCALES_ZH = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_ZH = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_ZH = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; diff --git a/source/locales/langs/zh_tw.ts b/source/locales/langs/zh_tw.ts index 156f88e..4b868a8 100644 --- a/source/locales/langs/zh_tw.ts +++ b/source/locales/langs/zh_tw.ts @@ -29,9 +29,16 @@ * `"zh-TW": "繁體中文"` */ export const LOCALES_ZH_TW = { + "UNITADE_SETTINGS_COMMON": { + 0: "UNITADE's settings:", + 1: "Errors:", + 2: "Advanced block", + 3: "Code editor block", + 4: "Additionals", + }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons (';')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", @@ -57,12 +64,12 @@ export const LOCALES_ZH_TW = { "SETTINGS_ONLOAD_REGISTRY": { 0: "On-load extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: last part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when an unsafe on-load registry is enabled." }, "SETTINGS_ONLOAD_UNSAFE": { 0: "On-load unsafe extension registry:", 1: "If enabled, plugin will now registry every file's extension (this setting: every part of extensions sequence) when OBSIDIAN catches event of new file appearing in vault.", - "info": "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." + 2: "This mode is interchangeable (that is, disabled) when a normal on-load registry is enabled." }, "SETTINGS_WARNING_MSG": { 0: "ATTENTION: this setting can cause a “spam attack” with extensions in the OBSIDIAN extension registry and damage some files due to the editing format of the application itself, be careful when using this functionality." @@ -84,17 +91,133 @@ export const LOCALES_ZH_TW = { }, "SETTINGS_GROUP_EXTENSIONS": { 0: "Grouped extensions:", - 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by (',') commas)." + 1: "Enter by specified syntax extensions which you want to treat as other custom extensions (groups are separated by (';') semicolons while values are separated by ('>') symbols).", + 2: "For list of views view the docs of the plugin, more information on the wiki." }, "SETTINGS_GROUP_MSG": { 0: "Keep in mind, this setting is unstable due entire infrastructure of plugin and OBSIDIAN's API, it is recommended to turn off every other setting and clear them if possible before using this module: you can setup every other module just in this block." }, "SETTINGS_BAREFILES": { 0: "Barefiles on-load registry:", - 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry." + 1: "If enabled, plugin will try to register files without extensions (so-called bare files): for files with only extension (so-called dot files) use on-load extension registry.", + 2: "This settings registries empty extension, which could be done manually within extension settings block." }, "MODALS_INCLUDE_REGISTRY": { 0: "Include in extensions registry:", 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "SETTINGS_FORCE_UNLOAD": { + 0: "Force-unload", + 1: "On click, causes imitation of disabling plugin, meaning, reloading registry of extensions in vault to default mode." + }, + "SETTINGS_RELOAD_REGISTRIES": { + 0: "Reload registries", + 1: "Reloads views and registries extensions providing new settings and data to the app and keeping experience up-to-date with config." + }, + "SETTINGS_DEBUG_MODE": { + 0: "Debug mode:", + 1: "This mode starts output in application's console about actions you do.", + 2: "Do not use this mode if you are not developer or familliar with console." + }, + "SETTINGS_SILENCE_ERRORS": { + 0: "Silence errors:", + 1: "This mode silences every error and disables notifications: could help in case of error spamming." + }, + "MODAL_EDIT_EXTENSION": { + 0: "Edit extension" + }, + "MODAL_CREATE_WITH_EXTENSION": { + 0: "Create with extension" + }, + "MODAL_EDIT_MULTIPLE": { + 0: "Edit multiple extensions", + 1: "Rename multiple files" + }, + "SETTINGS_COMPATIBILITY": { + 0: "Compatibility module:", + 1: "If turned on, plugin on it's start would try to parse configs of it's past versions to new config with old data: may be unstable, turned off by default." + }, + "SETTINGS_COMPATIBILITY_BUTTON": { + 0: "Make config compatible", + 1: "Upon click, plugin would try to make config compatible with it's new functionality and config iteration." + }, + "BUTTON_WIKI": { + 0: "Open plugin's wiki", + 1: "Upon click, redirects to the GitHub's wiki page of project which contains documentation about entire plugin.", + 2: "This would redirect you in external link. Internet access required.", + 3: "Open wiki" + }, + "MODAL_INCLUDE_IN_REGISTRY": { + 0: "Include in extensions registry:", + 1: "If enabled, generated file's extension would be inserted in extensions array." + }, + "ERROR_REGISTRY_EXTENSION": { + 0: "Could not register extension: {0} to view as {1}.\nIt's already registered.", + 1: "Could not register extension: {0} to view as {1}.\n{2}", + 2: "Couldn't unregistry extension: {0}.", + 3: "Error with registering extensions:" + }, + "ERROR_COMMON_MESSAGE": { + 0: "Error from UNITADE plugin:" + }, + "SETTINGS_CASE_INSENSITIVE": { + 0: "Case insensitive mode:", + 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", + 2: "Unstable on UNIX-systems." + }, + "MODAL_EDIT_FENCE": { + 0: "Edit code fence" + }, + "SETTINGS_CODE_EDITOR": { + 0: "Enable code editor module:", + 1: "This mode will enable code editor functionalities like syntax highlighting, IntelliSence and etc.", + 2: "May cause lags and other issues.", + 3: "Font settings for code editor:" + }, + "CODE_EDITOR_USE_DEFAULT": { + 0: "Use default extensions:", + 1: "If disabled, code editor module will require to input its own extensions, otherwise, it would use \"simple\" extensions from config.", + 2: "This block also can be replaced by grouped extensions.", + 3: "Be aware, this extensions must be excluding from every other, otherwise error with rendering may occure, to \"clone\" extensions, use specified feature.", + }, + "CODE_EDITOR_FOLDING": { + 0: "Enable folding:", + 1: "A feature that allows you to hide (collapse) parts of your code to improve readability." + }, + "CODE_EDITOR_LINE_NUMBERS": { + 0: "Line numbers:", + 1: "Feature to display line numbers in the editor." + }, + "CODE_EDITOR_WORD_WRAPPING": { + 0: "Word wrapping:", + 1: "Feature that allows text to automatically wrap to the next line if it exceeds the width of the editor." + }, + "CODE_EDITOR_MINIMAPPING": { + 0: "Enable minimapping:", + 1: "Feature that provides a thumbnail view of the entire document." + }, + "CODE_EDITOR_SEMANTIC_VALIDATION": { + 0: "Enable semantic validation:", + 1: "This process checks the code for logical errors and the correct use of variables, functions, and other elements. Semantic validation takes into account the context and meaning of the code." + }, + "CODE_EDITOR_SYNTAX_VALIDATION": { + 0: "Enable syntax validation:", + 1: "This process checks code for errors related to its structure and syntax. It analyzes whether the code follows the rules of the programming language." + }, + "CODE_EDITOR_EDIT_THEME": { + 0: "Editor theme:", + 1: "Choose specific theme for code editor, visually affects syntax highlighting." + }, + "CODE_EDITOR_FONT_SIZE": { + 0: "Font size:" + }, + "CODE_EDITOR_FONT_FAMILY": { + 0: "Font family:", + 1: "Write here existing font families and fonts themselves: input format like in any code editor." + }, + "CODE_EDITOR_FONT_LIGATURES": { + 0: "Font ligatures:", + 1: "If your font supports ligatures, you can turn them on.", + 2: "If ligatures are not supported by font, this would not work." } }; From 969afd4b69646905166e019f2fd762fdcf0d3373 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:31:55 +0300 Subject: [PATCH 04/19] build(esbuild): add plugin to automatically copy files of plugin build to test folder --- esbuild.config.mjs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index f8f243d..20e7164 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -35,6 +35,22 @@ let manifest = { } } +let autotest = { + name: 'main', + setuo(build) { + build.onEnd(() => { + const PUT_YOUR_PATH_HERE_IF_ENABLED = ''; + const ENABLED = true; + + if (ENABLED) { + fs.copyFile('out/manifest.json', PUT_YOUR_PATH_HERE_IF_ENABLED); + fs.copyFile('out/main.js', PUT_YOUR_PATH_HERE_IF_ENABLED); + fs.copyFile('out/styles.css', PUT_YOUR_PATH_HERE_IF_ENABLED); + } + }); + } +} + const prod = (process.argv[2] === "production"); const context = await esbuild.context({ @@ -63,7 +79,8 @@ const context = await esbuild.context({ }, }, assigner, - manifest + manifest, + autotest ], bundle: true, external: [ From 73014372429512064e4a6c458ac271be681039c4 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:32:59 +0300 Subject: [PATCH 05/19] build(esbuild-tracking): write special .BAT script to disable worktree for esbuild --- build-tracking.bat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 build-tracking.bat diff --git a/build-tracking.bat b/build-tracking.bat new file mode 100644 index 0000000..ac46d1c --- /dev/null +++ b/build-tracking.bat @@ -0,0 +1,25 @@ +SET "CLONESH=esbuild.config.mjs" + +FOR /F "tokens=*" %%i IN ('git ls-files -v %CLONESH%') DO SET "CURRENT_STATUS=%%i" + +IF "%CURRENT_STATUS:~0,1%"=="S" ( + ECHO Currently, the file %CLONESH% is skipped. + ECHO Turning file tracking back ON... + git update-index --no-skip-worktree "%CLONESH%" + IF ERRORLEVEL 0 ( + ECHO File tracking turned on successfully. + ) ELSE ( + ECHO Error: Could not turn file tracking on. + ) +) ELSE ( + ECHO Currently, the file %CLONESH% is being tracked. + ECHO Turning file tracking OFF... + git update-index --skip-worktree "%CLONESH%" + IF ERRORLEVEL 0 ( + ECHO File tracking turned off successfully. + ) ELSE ( + ECHO Error: Could not turn file tracking off. + ) +) + +EXIT /B 0 From e56c1bb58135991b212e189053a1c8ec1d3635d4 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:41:13 +0300 Subject: [PATCH 06/19] chore(esbuild): fix mispronounces in code, add namings to plugins --- esbuild.config.mjs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 20e7164..50ce78d 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -13,7 +13,7 @@ if you want to view the source, please visit the github repository of this plugi `; let assigner = { - name: 'main', + name: 'assigner', setup(build) { build.onEnd(() => { const main = fs.readFileSync('main.css', 'utf8'); @@ -27,7 +27,7 @@ let assigner = { } let manifest = { - name: 'main', + name: 'manifest', setup(build) { build.onEnd(() => { fs.writeFileSync('out/manifest.json', fs.readFileSync('manifest.json'), 'utf8'); @@ -36,16 +36,16 @@ let manifest = { } let autotest = { - name: 'main', - setuo(build) { + name: 'autotest', + setup(build) { build.onEnd(() => { const PUT_YOUR_PATH_HERE_IF_ENABLED = ''; - const ENABLED = true; + const ENABLED = false; if (ENABLED) { - fs.copyFile('out/manifest.json', PUT_YOUR_PATH_HERE_IF_ENABLED); - fs.copyFile('out/main.js', PUT_YOUR_PATH_HERE_IF_ENABLED); - fs.copyFile('out/styles.css', PUT_YOUR_PATH_HERE_IF_ENABLED); + fs.copyFileSync('out/manifest.json', PUT_YOUR_PATH_HERE_IF_ENABLED); + fs.copyFileSync('out/main.js', PUT_YOUR_PATH_HERE_IF_ENABLED); + fs.copyFileSync('out/styles.css', PUT_YOUR_PATH_HERE_IF_ENABLED); } }); } From aea311487557040916375da8677b39249d5e56f1 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:42:26 +0300 Subject: [PATCH 07/19] fix(settings): now "use default extensions" and input are synchronized in settings tab Error was defined by case, when "use default extensions" was enabled, but extensions input was NOT hidden. Part of fixes from #73 --- source/settings.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/settings.ts b/source/settings.ts index 3e3c40b..f20fec7 100644 --- a/source/settings.ts +++ b/source/settings.ts @@ -829,6 +829,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { editorExtensionsInput.inputEl.style.height = '48px'; editorExtensionsInput.inputEl.style.minHeight = '36px'; + this.__uptCEConfig([editorExtensionsInput, codeExtensionsWarn], !this.plugin.settings.code_editor_settings.use_default_extensions); + const editorFolding = new Setting(containerEl) .setName(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[0]!) .setDesc(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[1]!) From 4a2b3f71dd14a27580fbe561543be44343d59a11 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:02:00 +0300 Subject: [PATCH 08/19] docs(settings): add warning about case-insensitive mode in settings --- source/locales/langs/ar.ts | 3 ++- source/locales/langs/cz.ts | 3 ++- source/locales/langs/da.ts | 3 ++- source/locales/langs/de.ts | 3 ++- source/locales/langs/en.ts | 3 ++- source/locales/langs/es.ts | 3 ++- source/locales/langs/fr.ts | 3 ++- source/locales/langs/hi.ts | 3 ++- source/locales/langs/id.ts | 3 ++- source/locales/langs/it.ts | 3 ++- source/locales/langs/ja.ts | 3 ++- source/locales/langs/ko.ts | 3 ++- source/locales/langs/nl.ts | 3 ++- source/locales/langs/no.ts | 3 ++- source/locales/langs/pl.ts | 3 ++- source/locales/langs/pt.ts | 3 ++- source/locales/langs/pt_br.ts | 3 ++- source/locales/langs/ro.ts | 3 ++- source/locales/langs/ru.ts | 3 ++- source/locales/langs/sq.ts | 3 ++- source/locales/langs/tr.ts | 3 ++- source/locales/langs/uk.ts | 3 ++- source/locales/langs/zh.ts | 3 ++- source/locales/langs/zh_tw.ts | 3 ++- source/settings.ts | 10 +++++++++- 25 files changed, 57 insertions(+), 25 deletions(-) diff --git a/source/locales/langs/ar.ts b/source/locales/langs/ar.ts index 82fed0a..5d757f0 100644 --- a/source/locales/langs/ar.ts +++ b/source/locales/langs/ar.ts @@ -163,7 +163,8 @@ export const LOCALES_AR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/cz.ts b/source/locales/langs/cz.ts index 67848c0..7fbb13f 100644 --- a/source/locales/langs/cz.ts +++ b/source/locales/langs/cz.ts @@ -163,7 +163,8 @@ export const LOCALES_CZ = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/da.ts b/source/locales/langs/da.ts index 182db57..0e8dffa 100644 --- a/source/locales/langs/da.ts +++ b/source/locales/langs/da.ts @@ -163,7 +163,8 @@ export const LOCALES_DA = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/de.ts b/source/locales/langs/de.ts index c49c8f2..1763b1b 100644 --- a/source/locales/langs/de.ts +++ b/source/locales/langs/de.ts @@ -163,7 +163,8 @@ export const LOCALES_DE = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index 5b5548d..e115355 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -163,7 +163,8 @@ export const LOCALES_EN = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/es.ts b/source/locales/langs/es.ts index 62fbf73..2d49ed9 100644 --- a/source/locales/langs/es.ts +++ b/source/locales/langs/es.ts @@ -163,7 +163,8 @@ export const LOCALES_ES = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/fr.ts b/source/locales/langs/fr.ts index bdfc91b..e9c1c6d 100644 --- a/source/locales/langs/fr.ts +++ b/source/locales/langs/fr.ts @@ -163,7 +163,8 @@ export const LOCALES_FR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/hi.ts b/source/locales/langs/hi.ts index da6dd2c..88634d0 100644 --- a/source/locales/langs/hi.ts +++ b/source/locales/langs/hi.ts @@ -163,7 +163,8 @@ export const LOCALES_HI = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/id.ts b/source/locales/langs/id.ts index 73c0048..9c8b89f 100644 --- a/source/locales/langs/id.ts +++ b/source/locales/langs/id.ts @@ -163,7 +163,8 @@ export const LOCALES_ID = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/it.ts b/source/locales/langs/it.ts index 85f4f01..251fb6d 100644 --- a/source/locales/langs/it.ts +++ b/source/locales/langs/it.ts @@ -163,7 +163,8 @@ export const LOCALES_IT = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ja.ts b/source/locales/langs/ja.ts index 6a73885..f0f7f9b 100644 --- a/source/locales/langs/ja.ts +++ b/source/locales/langs/ja.ts @@ -163,7 +163,8 @@ export const LOCALES_JA = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ko.ts b/source/locales/langs/ko.ts index 13a1c53..8c8fc63 100644 --- a/source/locales/langs/ko.ts +++ b/source/locales/langs/ko.ts @@ -163,7 +163,8 @@ export const LOCALES_KO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/nl.ts b/source/locales/langs/nl.ts index c63fef1..7803327 100644 --- a/source/locales/langs/nl.ts +++ b/source/locales/langs/nl.ts @@ -163,7 +163,8 @@ export const LOCALES_NL = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/no.ts b/source/locales/langs/no.ts index 38f7221..5a21da1 100644 --- a/source/locales/langs/no.ts +++ b/source/locales/langs/no.ts @@ -163,7 +163,8 @@ export const LOCALES_NO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pl.ts b/source/locales/langs/pl.ts index 1c2ec12..9439096 100644 --- a/source/locales/langs/pl.ts +++ b/source/locales/langs/pl.ts @@ -163,7 +163,8 @@ export const LOCALES_PL = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pt.ts b/source/locales/langs/pt.ts index 8848a53..55b0d98 100644 --- a/source/locales/langs/pt.ts +++ b/source/locales/langs/pt.ts @@ -163,7 +163,8 @@ export const LOCALES_PT = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/pt_br.ts b/source/locales/langs/pt_br.ts index b2433b7..11d6421 100644 --- a/source/locales/langs/pt_br.ts +++ b/source/locales/langs/pt_br.ts @@ -163,7 +163,8 @@ export const LOCALES_PT_BR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ro.ts b/source/locales/langs/ro.ts index dd32657..dd1ab50 100644 --- a/source/locales/langs/ro.ts +++ b/source/locales/langs/ro.ts @@ -163,7 +163,8 @@ export const LOCALES_RO = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/ru.ts b/source/locales/langs/ru.ts index f38c8c3..f31dae9 100644 --- a/source/locales/langs/ru.ts +++ b/source/locales/langs/ru.ts @@ -163,7 +163,8 @@ export const LOCALES_RU = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/sq.ts b/source/locales/langs/sq.ts index 48a54a1..6b5504e 100644 --- a/source/locales/langs/sq.ts +++ b/source/locales/langs/sq.ts @@ -163,7 +163,8 @@ export const LOCALES_SQ = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/tr.ts b/source/locales/langs/tr.ts index af1a21b..a1fdc26 100644 --- a/source/locales/langs/tr.ts +++ b/source/locales/langs/tr.ts @@ -163,7 +163,8 @@ export const LOCALES_TR = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/uk.ts b/source/locales/langs/uk.ts index 031a093..a302607 100644 --- a/source/locales/langs/uk.ts +++ b/source/locales/langs/uk.ts @@ -163,7 +163,8 @@ export const LOCALES_UK = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/zh.ts b/source/locales/langs/zh.ts index 87610b8..ee36b9c 100644 --- a/source/locales/langs/zh.ts +++ b/source/locales/langs/zh.ts @@ -163,7 +163,8 @@ export const LOCALES_ZH = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/locales/langs/zh_tw.ts b/source/locales/langs/zh_tw.ts index 4b868a8..e0119ee 100644 --- a/source/locales/langs/zh_tw.ts +++ b/source/locales/langs/zh_tw.ts @@ -163,7 +163,8 @@ export const LOCALES_ZH_TW = { "SETTINGS_CASE_INSENSITIVE": { 0: "Case insensitive mode:", 1: "If turned on, plugin would registry every upper and lower case variations of extension to provide Windows-like experience for extension.", - 2: "Unstable on UNIX-systems." + 2: "Unstable on UNIX-systems.", + 3: "CAUTION: this mode can potentially \"infinitly\" crash your Vault if you got too many extensions and/or massive extensions, be extra cautious when using this mode!" }, "MODAL_EDIT_FENCE": { 0: "Edit code fence" diff --git a/source/settings.ts b/source/settings.ts index f20fec7..0e8ac7c 100644 --- a/source/settings.ts +++ b/source/settings.ts @@ -224,7 +224,7 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { this.__updateErrors(); }); - new Setting(containerEl) + const caseInsenstiveExtensions = new Setting(containerEl) .setName(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[0]!) .setDesc(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[1]!) .setTooltip(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[2]!) @@ -245,6 +245,14 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { return toggle; }); + const onCaseInsensWarning = document.createElement('div'); + onCaseInsensWarning.style.fontSize = '80%'; + onCaseInsensWarning.style.margin = '10px'; + onCaseInsensWarning.style.color = 'darkRed'; + onCaseInsensWarning.innerHTML = this.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[3]!; + + caseInsenstiveExtensions.infoEl.appendChild(onCaseInsensWarning); + configInput.inputEl.style.width = '100%'; configInput.inputEl.style.height = '48px'; configInput.inputEl.style.minHeight = '36px'; From 1f7bd8f7c3d44dbb5356b08a1bd822ac29db0bc4 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:21:39 +0300 Subject: [PATCH 09/19] chore(versions-semantics): update unsupported versions and issues with them --- .github/ISSUE_TEMPLATE/01_bug_report.yml | 11 +++--- .github/ISSUE_TEMPLATE/03_feature_request.yml | 1 + UNSUPPORTED_VERSIONS.md | 34 ++++++++++++++++--- 3 files changed, 34 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml index 4539843..2413649 100644 --- a/.github/ISSUE_TEMPLATE/01_bug_report.yml +++ b/.github/ISSUE_TEMPLATE/01_bug_report.yml @@ -34,13 +34,9 @@ body: label: Version of an project's essence description: What version of an project's essence are you running. options: - - "2.2.1" - - "2.2.0" - - "2.1.3" - - "2.1.2" - - "2.1.1" - - "2.1.0" - - "2.0.0" + - "3.0.1" + - "3.0.0" + - "Other (specify in issue)" default: 0 validations: required: true @@ -54,6 +50,7 @@ body: - macOS - Linux - Mobile (specify) + - Not important - type: checkboxes id: terms attributes: diff --git a/.github/ISSUE_TEMPLATE/03_feature_request.yml b/.github/ISSUE_TEMPLATE/03_feature_request.yml index 99ff4ad..9a6e8de 100644 --- a/.github/ISSUE_TEMPLATE/03_feature_request.yml +++ b/.github/ISSUE_TEMPLATE/03_feature_request.yml @@ -37,6 +37,7 @@ body: - Windows - macOS - Linux + - Mobile (specify) - Not important - type: checkboxes id: terms diff --git a/UNSUPPORTED_VERSIONS.md b/UNSUPPORTED_VERSIONS.md index 531db61..91b86e2 100644 --- a/UNSUPPORTED_VERSIONS.md +++ b/UNSUPPORTED_VERSIONS.md @@ -28,26 +28,50 @@ Before publishing issue, PRs to any version of plugin check, is this version sup 2.1.0 - ✅ + ❎ 2.1.1 - ✅ + ❎ 2.1.2 - ✅ + ❎ 2.1.3 - ✅ + ❎ 2.2.0 - ✅ + ❎ 2.2.1 + ❎ + + + 2.2.1 + ❎ + + + 2.3.0 + ❎ + + + 2.3.1 + ❎ + + + 2.4.0 + ❎ + + + 3.0.0 + ❎ + + + 3.0.1 ✅ From 5fa385c67a67a37e510053b01596e1db5be946df Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:25:17 +0300 Subject: [PATCH 10/19] chore(semantics): write a little semantics about different tags of repository --- data/release/semantics.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 data/release/semantics.md diff --git a/data/release/semantics.md b/data/release/semantics.md new file mode 100644 index 0000000..2673855 --- /dev/null +++ b/data/release/semantics.md @@ -0,0 +1,4 @@ +The semantics of UNITADE are defined by two release formats: + +1. **Releases following the "v\*." pattern**: These releases are created specifically for Semantic Versioning purposes, are independent of Obsidian’s release system, and do not include release notes. +2. **Releases following the "\*." pattern**: These are special releases intended for Obsidian’s plugin update system and include release notes. From 166b6ca2c9a38a8ec8307fc8daeb7f4f0ae10e08 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:29:58 +0300 Subject: [PATCH 11/19] fix(locales-settings): remove misinformation about separating symbols Part of fixes from #73 --- source/locales/langs/en.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index e115355..0a5b0bd 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -38,7 +38,7 @@ export const LOCALES_EN = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>')." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", From 722e361e51cb0fddfe707816505369b001d9c3a6 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:37:36 +0300 Subject: [PATCH 12/19] docs(settings): add warning about errors spam in extensions input --- source/locales/langs/ar.ts | 3 ++- source/locales/langs/cz.ts | 3 ++- source/locales/langs/da.ts | 3 ++- source/locales/langs/de.ts | 3 ++- source/locales/langs/en.ts | 3 ++- source/locales/langs/es.ts | 3 ++- source/locales/langs/fr.ts | 3 ++- source/locales/langs/hi.ts | 3 ++- source/locales/langs/id.ts | 3 ++- source/locales/langs/it.ts | 3 ++- source/locales/langs/ja.ts | 3 ++- source/locales/langs/ko.ts | 3 ++- source/locales/langs/nl.ts | 3 ++- source/locales/langs/no.ts | 3 ++- source/locales/langs/pl.ts | 3 ++- source/locales/langs/pt.ts | 3 ++- source/locales/langs/pt_br.ts | 3 ++- source/locales/langs/ro.ts | 3 ++- source/locales/langs/ru.ts | 3 ++- source/locales/langs/sq.ts | 3 ++- source/locales/langs/tr.ts | 3 ++- source/locales/langs/uk.ts | 3 ++- source/locales/langs/zh.ts | 3 ++- source/locales/langs/zh_tw.ts | 3 ++- 24 files changed, 48 insertions(+), 24 deletions(-) diff --git a/source/locales/langs/ar.ts b/source/locales/langs/ar.ts index 5d757f0..feba20f 100644 --- a/source/locales/langs/ar.ts +++ b/source/locales/langs/ar.ts @@ -38,7 +38,8 @@ export const LOCALES_AR = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/cz.ts b/source/locales/langs/cz.ts index 7fbb13f..609d141 100644 --- a/source/locales/langs/cz.ts +++ b/source/locales/langs/cz.ts @@ -38,7 +38,8 @@ export const LOCALES_CZ = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/da.ts b/source/locales/langs/da.ts index 0e8dffa..d1cd00b 100644 --- a/source/locales/langs/da.ts +++ b/source/locales/langs/da.ts @@ -38,7 +38,8 @@ export const LOCALES_DA = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/de.ts b/source/locales/langs/de.ts index 1763b1b..24d0c8f 100644 --- a/source/locales/langs/de.ts +++ b/source/locales/langs/de.ts @@ -38,7 +38,8 @@ export const LOCALES_DE = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index 0a5b0bd..385a7ed 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -38,7 +38,8 @@ export const LOCALES_EN = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/es.ts b/source/locales/langs/es.ts index 2d49ed9..489d1a0 100644 --- a/source/locales/langs/es.ts +++ b/source/locales/langs/es.ts @@ -38,7 +38,8 @@ export const LOCALES_ES = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/fr.ts b/source/locales/langs/fr.ts index e9c1c6d..369de9c 100644 --- a/source/locales/langs/fr.ts +++ b/source/locales/langs/fr.ts @@ -38,7 +38,8 @@ export const LOCALES_FR = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/hi.ts b/source/locales/langs/hi.ts index 88634d0..dfd5e74 100644 --- a/source/locales/langs/hi.ts +++ b/source/locales/langs/hi.ts @@ -38,7 +38,8 @@ export const LOCALES_HI = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/id.ts b/source/locales/langs/id.ts index 9c8b89f..f9ad683 100644 --- a/source/locales/langs/id.ts +++ b/source/locales/langs/id.ts @@ -38,7 +38,8 @@ export const LOCALES_ID = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/it.ts b/source/locales/langs/it.ts index 251fb6d..eb52378 100644 --- a/source/locales/langs/it.ts +++ b/source/locales/langs/it.ts @@ -38,7 +38,8 @@ export const LOCALES_IT = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/ja.ts b/source/locales/langs/ja.ts index f0f7f9b..ac849c0 100644 --- a/source/locales/langs/ja.ts +++ b/source/locales/langs/ja.ts @@ -38,7 +38,8 @@ export const LOCALES_JA = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/ko.ts b/source/locales/langs/ko.ts index 8c8fc63..3f4965d 100644 --- a/source/locales/langs/ko.ts +++ b/source/locales/langs/ko.ts @@ -38,7 +38,8 @@ export const LOCALES_KO = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/nl.ts b/source/locales/langs/nl.ts index 7803327..6ec6106 100644 --- a/source/locales/langs/nl.ts +++ b/source/locales/langs/nl.ts @@ -38,7 +38,8 @@ export const LOCALES_NL = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/no.ts b/source/locales/langs/no.ts index 5a21da1..82aeaf7 100644 --- a/source/locales/langs/no.ts +++ b/source/locales/langs/no.ts @@ -38,7 +38,8 @@ export const LOCALES_NO = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/pl.ts b/source/locales/langs/pl.ts index 9439096..37ee7df 100644 --- a/source/locales/langs/pl.ts +++ b/source/locales/langs/pl.ts @@ -38,7 +38,8 @@ export const LOCALES_PL = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/pt.ts b/source/locales/langs/pt.ts index 55b0d98..1ee4156 100644 --- a/source/locales/langs/pt.ts +++ b/source/locales/langs/pt.ts @@ -38,7 +38,8 @@ export const LOCALES_PT = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/pt_br.ts b/source/locales/langs/pt_br.ts index 11d6421..2c696ec 100644 --- a/source/locales/langs/pt_br.ts +++ b/source/locales/langs/pt_br.ts @@ -38,7 +38,8 @@ export const LOCALES_PT_BR = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/ro.ts b/source/locales/langs/ro.ts index dd1ab50..c7ddb12 100644 --- a/source/locales/langs/ro.ts +++ b/source/locales/langs/ro.ts @@ -38,7 +38,8 @@ export const LOCALES_RO = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/ru.ts b/source/locales/langs/ru.ts index f31dae9..7676b3b 100644 --- a/source/locales/langs/ru.ts +++ b/source/locales/langs/ru.ts @@ -38,7 +38,8 @@ export const LOCALES_RU = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/sq.ts b/source/locales/langs/sq.ts index 6b5504e..e6f1b41 100644 --- a/source/locales/langs/sq.ts +++ b/source/locales/langs/sq.ts @@ -38,7 +38,8 @@ export const LOCALES_SQ = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/tr.ts b/source/locales/langs/tr.ts index a1fdc26..d2877f4 100644 --- a/source/locales/langs/tr.ts +++ b/source/locales/langs/tr.ts @@ -38,7 +38,8 @@ export const LOCALES_TR = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/uk.ts b/source/locales/langs/uk.ts index a302607..b4df366 100644 --- a/source/locales/langs/uk.ts +++ b/source/locales/langs/uk.ts @@ -38,7 +38,8 @@ export const LOCALES_UK = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/zh.ts b/source/locales/langs/zh.ts index ee36b9c..d4a552d 100644 --- a/source/locales/langs/zh.ts +++ b/source/locales/langs/zh.ts @@ -38,7 +38,8 @@ export const LOCALES_ZH = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", diff --git a/source/locales/langs/zh_tw.ts b/source/locales/langs/zh_tw.ts index e0119ee..928a8b1 100644 --- a/source/locales/langs/zh_tw.ts +++ b/source/locales/langs/zh_tw.ts @@ -38,7 +38,8 @@ export const LOCALES_ZH_TW = { }, "SETTINGS_EXTENSIONS": { 0: "Extensions:", - 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by semicolons ('>')." + 1: "Enter the file extensions that should be registered with the vault and with which the application should start registering (taking into account): input must be separated by \"greater-than sign\" ('>').", + 2: "Be careful with typing extensions in this block, it may start to \"spam\" errors and notifications: to avoid this, you can turn on silencing errors feature in additionals block of settings." }, "SETTINGS_MOBILE_SPECIFIC": { 0: "Mobile-specific:", From 188eb0d6f90e335012ae6132b56f9d22ad194e09 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:38:05 +0300 Subject: [PATCH 13/19] chore*(miscommit): fix of miscommit --- source/settings.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/settings.ts b/source/settings.ts index 0e8ac7c..f7f25d6 100644 --- a/source/settings.ts +++ b/source/settings.ts @@ -224,6 +224,15 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab { this.__updateErrors(); }); + const configWarning = document.createElement('div'); + configWarning.style.fontSize = '80%'; + configWarning.style.margin = '10px'; + configWarning.style.color = 'yellow'; + configWarning.innerHTML = this.locale.getLocaleItem('SETTINGS_EXTENSIONS')[2]!; + + this._config.infoEl.appendChild(configWarning); + + const caseInsenstiveExtensions = new Setting(containerEl) .setName(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[0]!) .setDesc(this.plugin.locale.getLocaleItem('SETTINGS_CASE_INSENSITIVE')[1]!) From 8fe545d447f9cf8ea5dee6b0f04a3c3280f75058 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:45:05 +0300 Subject: [PATCH 14/19] fix(compatibility-module): fix skipping work process after getting undefined field in compatibility module --- source/addons/compatibility.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/source/addons/compatibility.ts b/source/addons/compatibility.ts index b6a595b..af4416e 100644 --- a/source/addons/compatibility.ts +++ b/source/addons/compatibility.ts @@ -34,27 +34,27 @@ export default class CompatibilityModule { private async convert(data: any, version: string): Promise { const settingsMap: { [key: string]: any } = { '1.*': { - extensions: data.extensions.replace(',', '>'), - forced_extensions: data.force_extensions.replace(',', '>'), + extensions: data.extensions?.replace(',', '>') ?? '', + forced_extensions: data.forced_extensions?.replace(',', '>') ?? '', is_onload: Boolean(data.is_dynamic_on), }, '2.0': { - extensions: data.extensions.replace(',', '>'), - grouped_extensions: data.grouped_extensions.replace(',', '>'), + extensions: data.extensions?.replace(',', '>') ?? '', + grouped_extensions: data.grouped_extensions?.replace(',', '>') ?? '', }, '2.1': { - grouped_extensions: data.grouped_extensions.replace(',', '>'), - extensions: data.extensions.replace(';', '>'), - forced_extensions: data.forced_extensions.replace(';', '>'), - ignore_extensions: data.ignore_extensions.replace(';', '>'), - ignore_masks: data.ignore_masks.replace(';', '>'), + grouped_extensions: data.grouped_extensions?.replace(';', '>') ?? '', + extensions: data.extensions?.replace(';', '>') ?? '', + forced_extensions: data.forced_extensions?.replace(';', '>') ?? '', + ignore_extensions: data.ignore_extensions?.replace(';', '>') ?? '', + ignore_masks: data.ignore_masks?.replace(';', '>') ?? '', }, '2.4': { - grouped_extensions: data.grouped_extensions.replace(',', '>'), - extensions: data.extensions.replace(';', '>'), - forced_extensions: data.forced_extensions.replace(';', '>'), - ignore_extensions: data.ignore_extensions.replace(';', '>'), - ignore_masks: data.ignore_masks.replace(';', '>'), + grouped_extensions: data.grouped_extensions?.replace(',', '>') ?? '', + extensions: data.extensions?.replace(';', '>') ?? '', + forced_extensions: data.forced_extensions?.replace(';', '>') ?? '', + ignore_extensions: data.ignore_extensions?.replace(';', '>') ?? '', + ignore_masks: data.ignore_masks?.replace(';', '>') ?? '', }, }; From 590f81dbc221adbef9d733abbe60d55733500d57 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:18:34 +0300 Subject: [PATCH 15/19] feat(modals): now modals support code editor extensions integration --- source/components/modals/file-create.ts | 57 ++++++++++++++++++++++++- source/components/modals/file-edit.ts | 53 +++++++++++++++++++++++ source/components/modals/files-edit.ts | 55 +++++++++++++++++++++++- source/locales/langs/ar.ts | 7 +++ source/locales/langs/cz.ts | 7 +++ source/locales/langs/da.ts | 7 +++ source/locales/langs/de.ts | 7 +++ source/locales/langs/en.ts | 7 +++ source/locales/langs/es.ts | 7 +++ source/locales/langs/fr.ts | 7 +++ source/locales/langs/hi.ts | 7 +++ source/locales/langs/id.ts | 7 +++ source/locales/langs/it.ts | 7 +++ source/locales/langs/ja.ts | 7 +++ source/locales/langs/ko.ts | 7 +++ source/locales/langs/nl.ts | 7 +++ source/locales/langs/no.ts | 7 +++ source/locales/langs/pl.ts | 7 +++ source/locales/langs/pt.ts | 7 +++ source/locales/langs/pt_br.ts | 7 +++ source/locales/langs/ro.ts | 7 +++ source/locales/langs/ru.ts | 7 +++ source/locales/langs/sq.ts | 7 +++ source/locales/langs/tr.ts | 7 +++ source/locales/langs/uk.ts | 7 +++ source/locales/langs/zh.ts | 7 +++ source/locales/langs/zh_tw.ts | 7 +++ 27 files changed, 330 insertions(+), 3 deletions(-) diff --git a/source/components/modals/file-create.ts b/source/components/modals/file-create.ts index d7a09d1..80bdb58 100644 --- a/source/components/modals/file-create.ts +++ b/source/components/modals/file-create.ts @@ -39,6 +39,7 @@ export class TFileCreate extends Modal { private _name: string; private _integration: boolean; + private _integration_code_editor: boolean; constructor( private plugin: UNITADE_PLUGIN, @@ -51,6 +52,7 @@ export class TFileCreate extends Modal { this._name = ''; this._integration = false; + this._integration_code_editor = false; } onOpen(): void { @@ -122,6 +124,34 @@ export class TFileCreate extends Modal { return toggle; }); + + const includeCodeEditor = new Setting(contentEl) + .setName(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[0]!) + .setDesc(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[1]!) + .setTooltip(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[2]!) + .addToggle(toggle => { + toggle + .setValue(this._integration_code_editor) + .onChange(async (value) => { + this._integration_code_editor = value; + }); + + return toggle; + }); + + const onRfAttention = document.createElement('div'); + onRfAttention.style.fontSize = '80%'; + onRfAttention.style.margin = '10px'; + onRfAttention.style.color = 'darkRed'; + onRfAttention.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[3]!; + + const onRfInfo = document.createElement('div'); + onRfInfo.style.fontWeight = 'bold'; + onRfInfo.style.fontSize = '80%'; + onRfInfo.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[4]!; + + includeCodeEditor.nameEl.parentElement!.appendChild(onRfAttention); + includeCodeEditor.nameEl.parentElement!.appendChild(onRfInfo); } onClose() { @@ -133,19 +163,42 @@ export class TFileCreate extends Modal { private async __submit() { this.close(); + const extensions = this._name.split('.').slice(1).join('>'); + if (this._integration) { const next = { ...this.plugin.settings, }; - const extensions = this._name.split('.').slice(1).join(';'); + next.extensions += `>${extensions}`; - next.extensions += `;${extensions}`; + this.plugin.uptSettings(next); + } + + if (this._integration_code_editor) { + const next = { + ...this.plugin.settings, + }; + + if (this.plugin.settings.code_editor_settings.use_default_extensions) + next.extensions += `>${extensions}`; + else + next.code_editor_settings.extensions += `>${extensions}`; this.plugin.uptSettings(next); } await this.app.vault.create(this._pathgen(), ''); + + try { + this.plugin.apply(); + } catch (error) { + if (this.plugin.settings.debug_mode) + console.debug(error); + else { + return; + } + } } private _pathgen(): string { diff --git a/source/components/modals/file-edit.ts b/source/components/modals/file-edit.ts index 0e59696..73e6615 100644 --- a/source/components/modals/file-edit.ts +++ b/source/components/modals/file-edit.ts @@ -42,6 +42,7 @@ export class TFileEdit extends Modal { private _name: string; private _integration: boolean; + private _integration_code_editor: boolean; constructor( private plugin: UNITADE_PLUGIN, @@ -59,6 +60,7 @@ export class TFileEdit extends Modal { this._name = this._filename.split('.').first()!; this._integration = false; + this._integration_code_editor = false; } onOpen(): void { @@ -130,6 +132,34 @@ export class TFileEdit extends Modal { return toggle; }); + + const includeCodeEditor = new Setting(contentEl) + .setName(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[0]!) + .setDesc(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[1]!) + .setTooltip(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[2]!) + .addToggle(toggle => { + toggle + .setValue(this._integration_code_editor) + .onChange(async (value) => { + this._integration_code_editor = value; + }); + + return toggle; + }); + + const onRfAttention = document.createElement('div'); + onRfAttention.style.fontSize = '80%'; + onRfAttention.style.margin = '10px'; + onRfAttention.style.color = 'darkRed'; + onRfAttention.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[3]!; + + const onRfInfo = document.createElement('div'); + onRfInfo.style.fontWeight = 'bold'; + onRfInfo.style.fontSize = '80%'; + onRfInfo.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[4]!; + + includeCodeEditor.nameEl.parentElement!.appendChild(onRfAttention); + includeCodeEditor.nameEl.parentElement!.appendChild(onRfInfo); } onClose() { @@ -151,7 +181,30 @@ export class TFileEdit extends Modal { this.plugin.uptSettings(next); } + if (this._integration_code_editor) { + const next = { + ...this.plugin.settings, + }; + + if (this.plugin.settings.code_editor_settings.use_default_extensions) + next.extensions += `>${this._extension}`; + else + next.code_editor_settings.extensions += `>${this._extension}`; + + this.plugin.uptSettings(next); + } + await this.app.vault.rename(this.target, this.__pathgen()); + + try { + this.plugin.apply(); + } catch (error) { + if (this.plugin.settings.debug_mode) + console.debug(error); + else { + return; + } + } } private __pathgen(): string { diff --git a/source/components/modals/files-edit.ts b/source/components/modals/files-edit.ts index 9f2709d..2fe96cc 100644 --- a/source/components/modals/files-edit.ts +++ b/source/components/modals/files-edit.ts @@ -38,6 +38,7 @@ export class TFilesEdit extends Modal { private _new_extension: string = 'md'; private _integration: boolean; + private _integration_code_editor: boolean; constructor( private plugin: UNITADE_PLUGIN, @@ -48,6 +49,7 @@ export class TFilesEdit extends Modal { this.target ??= [this.plugin.app.vault.getRoot()]; this._integration = false; + this._integration_code_editor = false; } onOpen(): void { @@ -119,6 +121,34 @@ export class TFilesEdit extends Modal { return toggle; }); + + const includeCodeEditor = new Setting(contentEl) + .setName(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[0]!) + .setDesc(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[1]!) + .setTooltip(this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[2]!) + .addToggle(toggle => { + toggle + .setValue(this._integration_code_editor) + .onChange(async (value) => { + this._integration_code_editor = value; + }); + + return toggle; + }); + + const onRfAttention = document.createElement('div'); + onRfAttention.style.fontSize = '80%'; + onRfAttention.style.margin = '10px'; + onRfAttention.style.color = 'darkRed'; + onRfAttention.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[3]!; + + const onRfInfo = document.createElement('div'); + onRfInfo.style.fontWeight = 'bold'; + onRfInfo.style.fontSize = '80%'; + onRfInfo.innerHTML = this.plugin.locale.getLocaleItem('MODAL_INCLUDE_IN_CODE_EDITOR')[4]!; + + includeCodeEditor.nameEl.parentElement!.appendChild(onRfAttention); + includeCodeEditor.nameEl.parentElement!.appendChild(onRfInfo); } onClose() { @@ -135,7 +165,20 @@ export class TFilesEdit extends Modal { ...this.plugin.settings, }; - next.extensions += `;${this._new_extension}`; + next.extensions += `>${this._new_extension}`; + + this.plugin.uptSettings(next); + } + + if (this._integration_code_editor) { + const next = { + ...this.plugin.settings, + }; + + if (this.plugin.settings.code_editor_settings.use_default_extensions) + next.extensions += `>${this._new_extension}`; + else + next.code_editor_settings.extensions += `>${this._new_extension}`; this.plugin.uptSettings(next); } @@ -148,6 +191,16 @@ export class TFilesEdit extends Modal { await this.app.vault.rename(file, this.__pathgen(filepath, name)); }); + + try { + this.plugin.apply(); + } catch (error) { + if (this.plugin.settings.debug_mode) + console.debug(error); + else { + return; + } + } } private __pathgen(path: string, name: string): string { diff --git a/source/locales/langs/ar.ts b/source/locales/langs/ar.ts index feba20f..16f05d6 100644 --- a/source/locales/langs/ar.ts +++ b/source/locales/langs/ar.ts @@ -221,5 +221,12 @@ export const LOCALES_AR = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/cz.ts b/source/locales/langs/cz.ts index 609d141..a2eb59f 100644 --- a/source/locales/langs/cz.ts +++ b/source/locales/langs/cz.ts @@ -221,5 +221,12 @@ export const LOCALES_CZ = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/da.ts b/source/locales/langs/da.ts index d1cd00b..b6269b1 100644 --- a/source/locales/langs/da.ts +++ b/source/locales/langs/da.ts @@ -221,5 +221,12 @@ export const LOCALES_DA = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/de.ts b/source/locales/langs/de.ts index 24d0c8f..f3eb2ab 100644 --- a/source/locales/langs/de.ts +++ b/source/locales/langs/de.ts @@ -221,5 +221,12 @@ export const LOCALES_DE = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/en.ts b/source/locales/langs/en.ts index 385a7ed..958a00e 100644 --- a/source/locales/langs/en.ts +++ b/source/locales/langs/en.ts @@ -221,5 +221,12 @@ export const LOCALES_EN = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/es.ts b/source/locales/langs/es.ts index 489d1a0..ce53104 100644 --- a/source/locales/langs/es.ts +++ b/source/locales/langs/es.ts @@ -221,5 +221,12 @@ export const LOCALES_ES = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/fr.ts b/source/locales/langs/fr.ts index 369de9c..70b756f 100644 --- a/source/locales/langs/fr.ts +++ b/source/locales/langs/fr.ts @@ -221,5 +221,12 @@ export const LOCALES_FR = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/hi.ts b/source/locales/langs/hi.ts index dfd5e74..21c71e5 100644 --- a/source/locales/langs/hi.ts +++ b/source/locales/langs/hi.ts @@ -221,5 +221,12 @@ export const LOCALES_HI = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/id.ts b/source/locales/langs/id.ts index f9ad683..86b2290 100644 --- a/source/locales/langs/id.ts +++ b/source/locales/langs/id.ts @@ -221,5 +221,12 @@ export const LOCALES_ID = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/it.ts b/source/locales/langs/it.ts index eb52378..de25a07 100644 --- a/source/locales/langs/it.ts +++ b/source/locales/langs/it.ts @@ -221,5 +221,12 @@ export const LOCALES_IT = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/ja.ts b/source/locales/langs/ja.ts index ac849c0..516675c 100644 --- a/source/locales/langs/ja.ts +++ b/source/locales/langs/ja.ts @@ -221,5 +221,12 @@ export const LOCALES_JA = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/ko.ts b/source/locales/langs/ko.ts index 3f4965d..b162aae 100644 --- a/source/locales/langs/ko.ts +++ b/source/locales/langs/ko.ts @@ -221,5 +221,12 @@ export const LOCALES_KO = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/nl.ts b/source/locales/langs/nl.ts index 6ec6106..f288bbe 100644 --- a/source/locales/langs/nl.ts +++ b/source/locales/langs/nl.ts @@ -221,5 +221,12 @@ export const LOCALES_NL = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/no.ts b/source/locales/langs/no.ts index 82aeaf7..1c24743 100644 --- a/source/locales/langs/no.ts +++ b/source/locales/langs/no.ts @@ -221,5 +221,12 @@ export const LOCALES_NO = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/pl.ts b/source/locales/langs/pl.ts index 37ee7df..57aaf2b 100644 --- a/source/locales/langs/pl.ts +++ b/source/locales/langs/pl.ts @@ -221,5 +221,12 @@ export const LOCALES_PL = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/pt.ts b/source/locales/langs/pt.ts index 1ee4156..0f36a5d 100644 --- a/source/locales/langs/pt.ts +++ b/source/locales/langs/pt.ts @@ -221,5 +221,12 @@ export const LOCALES_PT = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/pt_br.ts b/source/locales/langs/pt_br.ts index 2c696ec..75559d9 100644 --- a/source/locales/langs/pt_br.ts +++ b/source/locales/langs/pt_br.ts @@ -221,5 +221,12 @@ export const LOCALES_PT_BR = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/ro.ts b/source/locales/langs/ro.ts index c7ddb12..fa2cc9f 100644 --- a/source/locales/langs/ro.ts +++ b/source/locales/langs/ro.ts @@ -221,5 +221,12 @@ export const LOCALES_RO = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/ru.ts b/source/locales/langs/ru.ts index 7676b3b..f081dd9 100644 --- a/source/locales/langs/ru.ts +++ b/source/locales/langs/ru.ts @@ -221,5 +221,12 @@ export const LOCALES_RU = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/sq.ts b/source/locales/langs/sq.ts index e6f1b41..d45d204 100644 --- a/source/locales/langs/sq.ts +++ b/source/locales/langs/sq.ts @@ -221,5 +221,12 @@ export const LOCALES_SQ = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/tr.ts b/source/locales/langs/tr.ts index d2877f4..a006b8e 100644 --- a/source/locales/langs/tr.ts +++ b/source/locales/langs/tr.ts @@ -221,5 +221,12 @@ export const LOCALES_TR = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/uk.ts b/source/locales/langs/uk.ts index b4df366..76a1e7f 100644 --- a/source/locales/langs/uk.ts +++ b/source/locales/langs/uk.ts @@ -221,5 +221,12 @@ export const LOCALES_UK = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/zh.ts b/source/locales/langs/zh.ts index d4a552d..e3ba951 100644 --- a/source/locales/langs/zh.ts +++ b/source/locales/langs/zh.ts @@ -221,5 +221,12 @@ export const LOCALES_ZH = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; diff --git a/source/locales/langs/zh_tw.ts b/source/locales/langs/zh_tw.ts index 928a8b1..8520024 100644 --- a/source/locales/langs/zh_tw.ts +++ b/source/locales/langs/zh_tw.ts @@ -221,5 +221,12 @@ export const LOCALES_ZH_TW = { 0: "Font ligatures:", 1: "If your font supports ligatures, you can turn them on.", 2: "If ligatures are not supported by font, this would not work." + }, + "MODAL_INCLUDE_IN_CODE_EDITOR": { + 0: "Include in code editor module:", + 1: "If enabled, created file would be treated with code editor module instead of just default vanilla extensions as markdown system.", + 2: "If both modes are enabled, it can cause unstable behaviour.", + 3: "If file is treated with both code editor module and default extensions-as-markdown system it can cause unstable behaviour with rendering system, use both modes if your file is an edge-case.", + 4: "If code editor module uses default extensions array (with setting \"use default extensions\"), extension would be inserted in default extensions array, otherwise, it would be inserted in code editor extensions array." } }; From 19bd4e65107b3bb0b19c51e8e9f2e9642a3215cd Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:19:05 +0300 Subject: [PATCH 16/19] fix(modals): now modals are trying to apply new extensions in plugin and fix of semantics for separators From a8934ce171ee94965ca16b869f899ae17ac7a9f8 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:22:41 +0300 Subject: [PATCH 17/19] fix(rendering-extensions): sync default extensions and code extensions Now if "use default extensions" in code editor module enabled, firstly render them as code, then as markdown. --- source/main.ts | 211 +++++++++++++++++++++++++------------------------ 1 file changed, 106 insertions(+), 105 deletions(-) diff --git a/source/main.ts b/source/main.ts index d1ae609..fe7ae4e 100644 --- a/source/main.ts +++ b/source/main.ts @@ -73,13 +73,13 @@ import { FenceEditModal } from './components/modals/codeblock-edit'; import { ContextEditCodeblocks } from './components/contextEditCodeblock'; declare module "obsidian" { - interface Workspace { - on( - name: "hover-link", - callback: (e: MouseEvent) => any, - ctx?: any, - ): EventRef; - } + interface Workspace { + on( + name: "hover-link", + callback: (e: MouseEvent) => any, + ctx?: any, + ): EventRef; + } } export default class UNITADE_PLUGIN extends Plugin { @@ -88,14 +88,14 @@ export default class UNITADE_PLUGIN extends Plugin { private _observer!: MutationObserver; public hover: { - linkText: string; - sourcePath: string; - event: MouseEvent; - } = { - linkText: "", - sourcePath: "", - event: new MouseEvent(""), - }; + linkText: string; + sourcePath: string; + event: MouseEvent; + } = { + linkText: "", + sourcePath: "", + event: new MouseEvent(""), + }; public get settings(): UNITADE_SETTINGS { return this._settings; @@ -115,8 +115,8 @@ export default class UNITADE_PLUGIN extends Plugin { await this.ldSettings(); window.MonacoEnvironment = { - getWorker (_: string, label: string) { - return getWorker(label); + getWorker(_: string, label: string) { + return getWorker(label); } } @@ -237,87 +237,87 @@ export default class UNITADE_PLUGIN extends Plugin { this.registerEvent(this.__ctxFence()); this._observer = new MutationObserver(async (mutation) => { - if (mutation.length !== 1) return; - if (mutation[0].addedNodes.length !== 1) return; - if (this.hover.linkText === null) return; + if (mutation.length !== 1) return; + if (mutation[0].addedNodes.length !== 1) return; + if (this.hover.linkText === null) return; - //@ts-expect-error Accessing runtime API - if (mutation[0].addedNodes[0].className !== "popover hover-popover") return; - const file = this.app.metadataCache.getFirstLinkpathDest(this.hover.linkText, this.hover.sourcePath); - if (!file) return; + //@ts-expect-error Accessing runtime API + if (mutation[0].addedNodes[0].className !== "popover hover-popover") return; + const file = this.app.metadataCache.getFirstLinkpathDest(this.hover.linkText, this.hover.sourcePath); + if (!file) return; let valid: boolean = false; - if(!this.settings.code_editor_settings.use_default_extensions) + if (!this.settings.code_editor_settings.use_default_extensions) valid = this.settings.code_editor_settings.extensions.includes(file.extension); else valid = this.settings.extensions.includes(file.extension); - if (valid === false) return; - const fileContent = await this.app.vault.read(file); - - const node: Node = mutation[0].addedNodes[0]; - const contentEl = createDiv(); - - new ContextEditor( - contentEl, - this, - fileContent, - file.extension, - false, - true - ); - - const w = 700; - const h = 500; - const gep = 10; - if (node instanceof HTMLDivElement) { - const x = this.hover.event.clientX; - const y = this.hover.event.clientY; - const target = this.hover.event.target as HTMLElement; - const targetRect = target.getBoundingClientRect(); - const targetTop = targetRect.top; - const targetBottom = targetRect.bottom; - const targeRight = targetRect.right - node.style.position = "absolute"; - node.style.left = `${x + gep}px`; - - const spaceBelow = window.innerHeight - y - gep * 3; - const spaceAbove = y - gep * 3; - if (spaceBelow > h) { - node.style.top = `${targetBottom + gep}px`; - } else if (spaceAbove > h) { - node.style.top = `${targetTop - h - gep}px`; - } else { - node.style.top = `${targetTop - (h / 2) - gep}px`; - node.style.left = `${targeRight + gep * 2}px`; - } - } - - contentEl.setCssProps({ - "width": `${w}px`, - "height": `${h}px`, - "padding-top": "10px", - "padding-bottom": "10px", - }); - - node.empty(); - node.appendChild(contentEl); - }); - + if (valid === false) return; + const fileContent = await this.app.vault.read(file); + + const node: Node = mutation[0].addedNodes[0]; + const contentEl = createDiv(); + + new ContextEditor( + contentEl, + this, + fileContent, + file.extension, + false, + true + ); + + const w = 700; + const h = 500; + const gep = 10; + if (node instanceof HTMLDivElement) { + const x = this.hover.event.clientX; + const y = this.hover.event.clientY; + const target = this.hover.event.target as HTMLElement; + const targetRect = target.getBoundingClientRect(); + const targetTop = targetRect.top; + const targetBottom = targetRect.bottom; + const targeRight = targetRect.right + node.style.position = "absolute"; + node.style.left = `${x + gep}px`; + + const spaceBelow = window.innerHeight - y - gep * 3; + const spaceAbove = y - gep * 3; + if (spaceBelow > h) { + node.style.top = `${targetBottom + gep}px`; + } else if (spaceAbove > h) { + node.style.top = `${targetTop - h - gep}px`; + } else { + node.style.top = `${targetTop - (h / 2) - gep}px`; + node.style.left = `${targeRight + gep * 2}px`; + } + } + + contentEl.setCssProps({ + "width": `${w}px`, + "height": `${h}px`, + "padding-top": "10px", + "padding-bottom": "10px", + }); + + node.empty(); + node.appendChild(contentEl); + }); + this.registerEvent(this.app.workspace.on("hover-link", async (event: any) => { - const linkText: string = event.linktext; - const sourcePath: string = event.sourcePath; + const linkText: string = event.linktext; + const sourcePath: string = event.sourcePath; - if (!linkText || !sourcePath) return; + if (!linkText || !sourcePath) return; + + this.hover.linkText = linkText; + this.hover.sourcePath = sourcePath; + this.hover.event = event.event; + })); - this.hover.linkText = linkText; - this.hover.sourcePath = sourcePath; - this.hover.event = event.event; - })); - this._observer.observe(document, { childList: true, subtree: true }); - + this.__apply(); } @@ -381,17 +381,17 @@ export default class UNITADE_PLUGIN extends Plugin { private __ctxFence(): EventRef { return this.app.workspace.on("editor-menu", (menu) => { - if (!ContextEditCodeblocks.create(this).isInFence()) { - return; - } - menu.addItem((item) => { - item.setTitle(this.locale.getLocaleItem("MODAL_EDIT_FENCE")[0]!) - .setIcon("code") - .onClick(() => { - FenceEditModal.openOnCurrentCode(this); - }); - }); + if (!ContextEditCodeblocks.create(this).isInFence()) { + return; + } + menu.addItem((item) => { + item.setTitle(this.locale.getLocaleItem("MODAL_EDIT_FENCE")[0]!) + .setIcon("code") + .onClick(() => { + FenceEditModal.openOnCurrentCode(this); + }); }); + }); } ltReady(_app: App): void { @@ -466,10 +466,9 @@ export default class UNITADE_PLUGIN extends Plugin { * @private * @returns {void} */ - private __apply(): void - { + private __apply(): void { /**@ts-expect-error: not part of public API, accessing through runtime. */ - if (this.app.viewRegistry.viewByType['codeview'] === undefined || + if (this.app.viewRegistry.viewByType['codeview'] === undefined || /**@ts-expect-error: not part of public API, accessing through runtime. */ this.app.viewRegistry.viewByType['codeview'] === null) this.registerView('codeview', leaf => new UNITADE_VIEW_CODE(leaf, this)); @@ -483,14 +482,16 @@ export default class UNITADE_PLUGIN extends Plugin { } if (this.is_mobile) { - this.__applyCfg(this.settings.mobile_settings.extensions ?? this.settings.extensions, 'markdown'); + if (!this.settings.code_editor_settings.use_default_extensions) + this.__applyCfg(this.settings.mobile_settings.extensions ?? this.settings.extensions, 'markdown'); } else { - this.__applyCfg(this.settings.extensions, 'markdown'); + if (!this.settings.code_editor_settings.use_default_extensions) + this.__applyCfg(this.settings.extensions, 'markdown'); } - if(this.settings.code_editor_settings.enabled) { - if(this.settings.code_editor_settings.use_default_extensions) { - if(this.is_mobile) + if (this.settings.code_editor_settings.enabled) { + if (this.settings.code_editor_settings.use_default_extensions) { + if (this.is_mobile) this.__applyCfg(this.settings.mobile_settings.extensions ?? this.settings.extensions, 'codeview'); else this.__applyCfg(this.settings.extensions, 'codeview'); @@ -583,7 +584,7 @@ export default class UNITADE_PLUGIN extends Plugin { continue; // If we ignore case difference (example: Windows systems) - if(this.settings.is_case_insensitive) { + if (this.settings.is_case_insensitive) { const rnd_filetype = gencase(extension); for (const type of rnd_filetype) From 55b459c56bd03485a041b526773e4581bd83d693 Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:23:30 +0300 Subject: [PATCH 18/19] chore(release): 3.0.1 --- CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7864c29..d934cee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,37 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [3.0.1](https://github.com/mokkapps/changelog-generator-demo/compare/v3.0.0...v3.0.1) (2024-11-05) + + +### Features + +* **modals:** now modals support code editor extensions integration ([590f81d](https://github.com/mokkapps/changelog-generator-demo/commits/590f81dbc221adbef9d733abbe60d55733500d57)) + + +### Build system + +* **esbuild-tracking:** write special .BAT script to disable worktree for esbuild ([7301437](https://github.com/mokkapps/changelog-generator-demo/commits/73014372429512064e4a6c458ac271be681039c4)) +* **esbuild:** add plugin to automatically copy files of plugin build to test folder ([969afd4](https://github.com/mokkapps/changelog-generator-demo/commits/969afd4b69646905166e019f2fd762fdcf0d3373)) + + +### Documentation + +* **settings:** add warning about case-insensitive mode in settings ([4a2b3f7](https://github.com/mokkapps/changelog-generator-demo/commits/4a2b3f71dd14a27580fbe561543be44343d59a11)) +* **settings:** add warning about errors spam in extensions input ([722e361](https://github.com/mokkapps/changelog-generator-demo/commits/722e361e51cb0fddfe707816505369b001d9c3a6)) + + +### Fixes + +* **compatibility-module:** fix skipping work process after getting undefined field in compatibility module ([8fe545d](https://github.com/mokkapps/changelog-generator-demo/commits/8fe545d447f9cf8ea5dee6b0f04a3c3280f75058)) +* **docs:** update some required information about plugin in README ([c1a65fb](https://github.com/mokkapps/changelog-generator-demo/commits/c1a65fbe8b95a83edd0389a99b9aaaf3ae07d51d)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **locales-settings:** remove misinformation about separating symbols ([166b6ca](https://github.com/mokkapps/changelog-generator-demo/commits/166b6ca2c9a38a8ec8307fc8daeb7f4f0ae10e08)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **locales:** sync locales and implement them in stale settings tab ([68b3824](https://github.com/mokkapps/changelog-generator-demo/commits/68b382494a37026f4a732a3cd04a34ab55e5e326)) +* **locales:** sync locales between languages and fix bug when settings appear null ([ea6f6f2](https://github.com/mokkapps/changelog-generator-demo/commits/ea6f6f25df0fc372afe5062034481886db625c03)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **modals:** now modals are trying to apply new extensions in plugin and fix of semantics for separators ([19bd4e6](https://github.com/mokkapps/changelog-generator-demo/commits/19bd4e65107b3bb0b19c51e8e9f2e9642a3215cd)) +* **rendering-extensions:** sync default extensions and code extensions ([a8934ce](https://github.com/mokkapps/changelog-generator-demo/commits/a8934ce171ee94965ca16b869f899ae17ac7a9f8)) +* **settings:** now "use default extensions" and input are synchronized in settings tab ([aea3114](https://github.com/mokkapps/changelog-generator-demo/commits/aea311487557040916375da8677b39249d5e56f1)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) + ## [3.0.0](https://github.com/mokkapps/changelog-generator-demo/compare/v2.4.0...v3.0.0) (2024-11-03) diff --git a/manifest.json b/manifest.json index f41315a..7931341 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "unitade", "name": "UNITADE.md", - "version": "3.0.0", + "version": "3.0.1", "minAppVersion": "1.0.0", "description": "Effortlessly treat any file extension as note, organize diverse file formats in your vault and take advancements in control of extension system even with custom modals.", "author": "Falcion", diff --git a/package-lock.json b/package-lock.json index 7f3fe6f..f214df0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "unitade", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "unitade", - "version": "3.0.0", + "version": "3.0.1", "hasInstallScript": true, "license": "MIT", "os": [ diff --git a/package.json b/package.json index 11e8e10..5f1cd91 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "unitade", "displayName": "UNITADE.md", "private": true, - "version": "3.0.0", + "version": "3.0.1", "description": "A plugin for note-taking app Obsidian™ which allows you to treat any file extension as markdown note-file", "main": "main.ts", "markdown": "github", From 3b3c7e8f185a5b270cb9a312f8a149041297ffba Mon Sep 17 00:00:00 2001 From: Falcion <57592842+Falcion@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:02:26 +0300 Subject: [PATCH 19/19] chore: add release note for 3.0.1 --- data/release/v3.0.1.md | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 data/release/v3.0.1.md diff --git a/data/release/v3.0.1.md b/data/release/v3.0.1.md new file mode 100644 index 0000000..89709c3 --- /dev/null +++ b/data/release/v3.0.1.md @@ -0,0 +1,53 @@ +### UNITADE.md Plugin for Obsidian v3.0.1 - Release Patch Notes + +This v3.0.1 patch release focuses on minor enhancements, optimizations, and additional guidance for key features, improving overall functionality and user experience. + +--- + +**Improvements and Fixes:** + +- **README and Settings Tab Updates:** Adjusted the README and settings tab to reflect new extension "splitting" semantics, enhancing clarity on configuration and usage. +- **Asynchronous Language Loading (Locales):** Improved asynchronous loading for localization files, ensuring smoother, more reliable multi-language support across the plugin. +- **Error-Spamming Commentary:** Added a comment within the settings block about error-spamming behavior, with a note on how "error silencing" can mitigate unnecessary log entries in specific cases. +- **Code Editor Display Mode Update:** Resolved an issue with asynchronous extension loading in the code editor display mode, improving compatibility and display accuracy. +- **"Use Default Extensions" Note:** Added an in-app comment explaining the basic functionality of the "use default extensions" option, with references to the wiki for advanced details. +- **Case-Insensitive Mode Warning:** Introduced a prominent warning for case-insensitive mode. Due to potential risks, users are cautioned that enabling this mode may cause their vault to crash if applied recklessly. This mode can be safely disabled through the plugin’s JSON config if issues arise. +- **Supported Versions and Issues Templates Update:** Updated supported version files and issue templates to ensure compatibility documentation aligns with the latest plugin functionality. +- **Release Semantics File:** Added a dedicated semantics file in the releases folder, summarizing key changes for reference. +- **"Add to Code Editor Settings" Option:** Introduced an option to add configurations to code editor settings, with a note that this and the core settings are not mutually exclusive but may conflict if both are active simultaneously. +- **Separator Symbol Update:** Adjusted the extension separator symbol from `;` to `>`, aligning with updated parsing rules and improving consistency across plugin versions. +- **Compatibility Module Fix:** Enhanced the compatibility module to eliminate "skipping" behavior following an error in replacement functions, improving reliability. +- **Default Extensions Rendering in Code Editor:** Updated the code editor to render default extensions first as code, followed by markdown formatting, for a clearer, more functional display. + +This patch builds upon the v3.0.0 foundation, delivering critical updates to compatibility, user guidance, and interface consistency. + +### [3.0.1](https://github.com/mokkapps/changelog-generator-demo/compare/v3.0.0...v3.0.1) (2024-11-05) + + +### Features + +* **modals:** now modals support code editor extensions integration ([590f81d](https://github.com/mokkapps/changelog-generator-demo/commits/590f81dbc221adbef9d733abbe60d55733500d57)) + + +### Build system + +* **esbuild-tracking:** write special .BAT script to disable worktree for esbuild ([7301437](https://github.com/mokkapps/changelog-generator-demo/commits/73014372429512064e4a6c458ac271be681039c4)) +* **esbuild:** add plugin to automatically copy files of plugin build to test folder ([969afd4](https://github.com/mokkapps/changelog-generator-demo/commits/969afd4b69646905166e019f2fd762fdcf0d3373)) + + +### Documentation + +* **settings:** add warning about case-insensitive mode in settings ([4a2b3f7](https://github.com/mokkapps/changelog-generator-demo/commits/4a2b3f71dd14a27580fbe561543be44343d59a11)) +* **settings:** add warning about errors spam in extensions input ([722e361](https://github.com/mokkapps/changelog-generator-demo/commits/722e361e51cb0fddfe707816505369b001d9c3a6)) + + +### Fixes + +* **compatibility-module:** fix skipping work process after getting undefined field in compatibility module ([8fe545d](https://github.com/mokkapps/changelog-generator-demo/commits/8fe545d447f9cf8ea5dee6b0f04a3c3280f75058)) +* **docs:** update some required information about plugin in README ([c1a65fb](https://github.com/mokkapps/changelog-generator-demo/commits/c1a65fbe8b95a83edd0389a99b9aaaf3ae07d51d)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **locales-settings:** remove misinformation about separating symbols ([166b6ca](https://github.com/mokkapps/changelog-generator-demo/commits/166b6ca2c9a38a8ec8307fc8daeb7f4f0ae10e08)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **locales:** sync locales and implement them in stale settings tab ([68b3824](https://github.com/mokkapps/changelog-generator-demo/commits/68b382494a37026f4a732a3cd04a34ab55e5e326)) +* **locales:** sync locales between languages and fix bug when settings appear null ([ea6f6f2](https://github.com/mokkapps/changelog-generator-demo/commits/ea6f6f25df0fc372afe5062034481886db625c03)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73) +* **modals:** now modals are trying to apply new extensions in plugin and fix of semantics for separators ([19bd4e6](https://github.com/mokkapps/changelog-generator-demo/commits/19bd4e65107b3bb0b19c51e8e9f2e9642a3215cd)) +* **rendering-extensions:** sync default extensions and code extensions ([a8934ce](https://github.com/mokkapps/changelog-generator-demo/commits/a8934ce171ee94965ca16b869f899ae17ac7a9f8)) +* **settings:** now "use default extensions" and input are synchronized in settings tab ([aea3114](https://github.com/mokkapps/changelog-generator-demo/commits/aea311487557040916375da8677b39249d5e56f1)), closes [#73](https://github.com/Falcion/UNITADE.md/issues/73)