Skip to content

Commit

Permalink
Change language setting name
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0l92 committed Mar 13, 2022
1 parent edbddca commit 3c0775f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joplin-plugin-drawio",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"dist": "webpack --joplin-plugin-config buildMain && webpack --joplin-plugin-config buildExtraScripts && webpack --joplin-plugin-config createArchive",
"prepare": "npm run dist",
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function startDrawio() {
console.log(settings)
const urlParams = [
'embed=1',
'lang=' + settings.language,
'lang=' + settings.languageUi,
'drafts=1',
'rough=' + (settings.themeRough ? 1 : 0),
'dark=' + (settings.themeDark ? 1 : 0),
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 1,
"id": "com.github.marc0l92.joplin-plugin-drawio",
"app_min_version": "2.2",
"version": "0.1.1",
"version": "0.1.2",
"name": "Draw.io",
"description": "Draw.io (aka Diagram.net) integration for Joplin",
"author": "marc0l92",
Expand Down
3 changes: 2 additions & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const SettingDefaults = {
zh: '中文 (中国)',
'zh-tw': '中文 (台灣)'
},
// TODO: get default language from joplin settings
defaultLanguage: 'en',
}

Expand Down Expand Up @@ -82,7 +83,7 @@ export class Settings {
label: 'Theme: Dark mode',
description: 'Enable/disable the dark mode',
},
language: {
languageUi: {
value: SettingDefaults.defaultLanguage,
type: SettingItemType.String,
section: 'drawio.settings',
Expand Down

0 comments on commit 3c0775f

Please sign in to comment.