@@ -275,6 +268,52 @@ class UiTab extends React.Component {
: null
}
+
Tags
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Editor
diff --git a/browser/main/store.js b/browser/main/store.js
index b8f13cc8..11ff2f3f 100644
--- a/browser/main/store.js
+++ b/browser/main/store.js
@@ -113,7 +113,6 @@ function data (state = defaultDataMap(), action) {
// If storage chanced, origin key must be discarded
if (originKey !== uniqueKey) {
- console.log('diffrent storage')
// From isStarred
if (originNote.isStarred) {
state.starredSet = new Set(state.starredSet)
diff --git a/dev-scripts/dev.js b/dev-scripts/dev.js
index 000a1bfd..9698a2fe 100644
--- a/dev-scripts/dev.js
+++ b/dev-scripts/dev.js
@@ -49,7 +49,7 @@ function startServer () {
}
function startElectron () {
- spawn(electron, ['--hot', './index.js'])
+ spawn(electron, ['--hot', './index.js'], { stdio: 'inherit' })
.on('close', () => {
server.close()
})
diff --git a/extra_scripts/codemirror/mode/bfm/bfm.js b/extra_scripts/codemirror/mode/bfm/bfm.js
index baf65d18..80f797b9 100644
--- a/extra_scripts/codemirror/mode/bfm/bfm.js
+++ b/extra_scripts/codemirror/mode/bfm/bfm.js
@@ -1,28 +1,170 @@
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../codemirror/lib/codemirror"), require("../codemirror/mode/gfm/gfm"))
+ mod(require("../codemirror/lib/codemirror"), require("../codemirror/mode/gfm/gfm"), require("../codemirror/mode/yaml-frontmatter/yaml-frontmatter"))
else if (typeof define == "function" && define.amd) // AMD
- define(["../codemirror/lib/codemirror", "../codemirror/mode/gfm/gfm"], mod)
+ define(["../codemirror/lib/codemirror", "../codemirror/mode/gfm/gfm", "../codemirror/mode/yaml-frontmatter/yaml-frontmatter"], mod)
else // Plain browser env
mod(CodeMirror)
})(function(CodeMirror) {
'use strict'
- CodeMirror.defineMode('bfm', function(config, gfmConfig) {
- const bfmOverlay = {
- startState() {
+ const fencedCodeRE = /^(~~~+|```+)[ \t]*([\w+#-]+)?(?:\(((?:\s*\w[-\w]*(?:=(?:'(?:.*?[^\\])?'|"(?:.*?[^\\])?"|(?:[^'"][^\s]*)))?)*)\))?(?::([^:]*)(?::(\d+))?)?\s*$/
+
+ function getMode(name, params, config, cm) {
+ if (!name) {
+ return null
+ }
+
+ const parameters = {}
+ if (params) {
+ const regex = /(\w[-\w]*)(?:=(?:'(.*?[^\\])?'|"(.*?[^\\])?"|([^'"][^\s]*)))?/g
+
+ let match
+ while ((match = regex.exec(params))) {
+ parameters[match[1]] = match[2] || match[3] || match[4] || null
+ }
+ }
+
+ if (name === 'chart') {
+ name = parameters.hasOwnProperty('yaml') ? 'yaml' : 'json'
+ }
+
+ const found = CodeMirror.findModeByName(name)
+ if (!found) {
+ return null
+ }
+
+ if (CodeMirror.modes.hasOwnProperty(found.mode)) {
+ const mode = CodeMirror.getMode(config, found.mode)
+
+ return mode.name === 'null' ? null : mode
+ } else {
+ CodeMirror.requireMode(found.mode, () => {
+ cm.setOption('mode', cm.getOption('mode'))
+ })
+ }
+ }
+
+ CodeMirror.defineMode('bfm', function (config, baseConfig) {
+ baseConfig.name = 'yaml-frontmatter'
+ const baseMode = CodeMirror.getMode(config, baseConfig)
+
+ return {
+ startState: function() {
return {
+ baseState: CodeMirror.startState(baseMode),
+
+ basePos: 0,
+ baseCur: null,
+ overlayPos: 0,
+ overlayCur: null,
+ streamSeen: null,
+
+ fencedEndRE: null,
+
inTable: false,
rowIndex: 0
}
},
- copyState(s) {
+ copyState: function(s) {
return {
+ baseState: CodeMirror.copyState(baseMode, s.baseState),
+
+ basePos: s.basePos,
+ baseCur: null,
+ overlayPos: s.overlayPos,
+ overlayCur: null,
+
+ fencedMode: s.fencedMode,
+ fencedState: s.fencedMode ? CodeMirror.copyState(s.fencedMode, s.fencedState) : null,
+
+ fencedEndRE: s.fencedEndRE,
+
inTable: s.inTable,
rowIndex: s.rowIndex
}
},
- token(stream, state) {
+ token: function(stream, state) {
+ const initialPos = stream.pos
+
+ if (state.fencedEndRE && stream.match(state.fencedEndRE)) {
+ state.fencedEndRE = null
+ state.fencedMode = null
+ state.fencedState = null
+
+ stream.pos = initialPos
+ }
+ else {
+ if (state.fencedMode) {
+ return state.fencedMode.token(stream, state.fencedState)
+ }
+
+ const match = stream.match(fencedCodeRE, true)
+ if (match) {
+ state.fencedEndRE = new RegExp(match[1] + '+ *$')
+
+ state.fencedMode = getMode(match[2], match[3], config, stream.lineOracle.doc.cm)
+ if (state.fencedMode) {
+ state.fencedState = CodeMirror.startState(state.fencedMode)
+ }
+
+ stream.pos = initialPos
+ }
+ }
+
+ if (stream != state.streamSeen || Math.min(state.basePos, state.overlayPos) < stream.start) {
+ state.streamSeen = stream
+ state.basePos = state.overlayPos = stream.start
+ }
+
+ if (stream.start == state.basePos) {
+ state.baseCur = baseMode.token(stream, state.baseState)
+ state.basePos = stream.pos
+ }
+ if (stream.start == state.overlayPos) {
+ stream.pos = stream.start
+ state.overlayCur = this.overlayToken(stream, state)
+ state.overlayPos = stream.pos
+ }
+ stream.pos = Math.min(state.basePos, state.overlayPos)
+
+ if (state.overlayCur == null) {
+ return state.baseCur
+ }
+ else if (state.baseCur != null && state.combineTokens) {
+ return state.baseCur + ' ' + state.overlayCur
+ }
+ else {
+ return state.overlayCur
+ }
+ },
+ overlayToken: function(stream, state) {
+ state.combineTokens = false
+
+ if (state.fencedEndRE && stream.match(state.fencedEndRE)) {
+ state.fencedEndRE = null
+ state.localMode = null
+ state.localState = null
+
+ return null
+ }
+
+ if (state.localMode) {
+ return state.localMode.token(stream, state.localState) || ''
+ }
+
+ const match = stream.match(fencedCodeRE, true)
+ if (match) {
+ state.fencedEndRE = new RegExp(match[1] + '+ *$')
+
+ state.localMode = getMode(match[2], match[3], config, stream.lineOracle.doc.cm)
+ if (state.localMode) {
+ state.localState = CodeMirror.startState(state.localMode)
+ }
+
+ return null
+ }
+
state.combineTokens = true
if (state.inTable) {
@@ -55,14 +197,31 @@
stream.skipToEnd()
return null
},
- blankLine(state) {
+ electricChars: baseMode.electricChars,
+ innerMode: function(state) {
+ if (state.fencedMode) {
+ return {
+ mode: state.fencedMode,
+ state: state.fencedState
+ }
+ } else {
+ return {
+ mode: baseMode,
+ state: state.baseState
+ }
+ }
+ },
+ blankLine: function(state) {
state.inTable = false
+
+ if (state.fencedMode) {
+ return state.fencedMode.blankLine && state.fencedMode.blankLine(state.fencedState)
+ } else {
+ return baseMode.blankLine(state.baseState)
+ }
}
}
-
- gfmConfig.name = 'gfm'
- return CodeMirror.overlayMode(CodeMirror.getMode(config, gfmConfig), bfmOverlay)
- })
+ }, 'yaml-frontmatter')
CodeMirror.defineMIME('text/x-bfm', 'bfm')
diff --git a/lib/main-app.js b/lib/main-app.js
index 1ab9f4ca..f25d07d2 100644
--- a/lib/main-app.js
+++ b/lib/main-app.js
@@ -59,7 +59,7 @@ updater.on('update-downloaded', (info) => {
})
updater.autoUpdater.on('error', (err) => {
- console.log(err)
+ console.error(err)
})
ipc.on('update-app-confirm', function (event, msg) {
diff --git a/lib/main-window.js b/lib/main-window.js
index fa54d5ce..512782de 100644
--- a/lib/main-window.js
+++ b/lib/main-window.js
@@ -7,13 +7,19 @@ const config = new Config()
const _ = require('lodash')
var showMenu = process.platform !== 'win32'
-const windowSize = config.get('windowsize') || { x: null, y: null, width: 1080, height: 720 }
+const windowSize = config.get('windowsize') || {
+ x: null,
+ y: null,
+ width: 1080,
+ height: 720
+}
const mainWindow = new BrowserWindow({
x: windowSize.x,
y: windowSize.y,
width: windowSize.width,
height: windowSize.height,
+ useContentSize: true,
minWidth: 500,
minHeight: 320,
autoHideMenuBar: showMenu,
diff --git a/lib/main.html b/lib/main.html
index cdb4bb13..29dee3a1 100644
--- a/lib/main.html
+++ b/lib/main.html
@@ -99,8 +99,11 @@
+
+
+
diff --git a/locales/de.json b/locales/de.json
index c2465a22..1b90ab63 100644
--- a/locales/de.json
+++ b/locales/de.json
@@ -145,6 +145,7 @@
"UserName": "Benutzername",
"Password": "Passwort",
"Russian": "Russisch",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Befehlstaste(⌘)",
"Editor Rulers": "Editor Trennline",
"Enable": "Aktiviert",
diff --git a/locales/en.json b/locales/en.json
index 6ccbb563..a7f6d64e 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -100,6 +100,7 @@
"The Boostnote Team": "The Boostnote Team",
"Support via OpenCollective": "Support via OpenCollective",
"Language": "Language",
+ "Default New Note": "Default New Note",
"English": "English",
"German": "German",
"French": "French",
@@ -156,6 +157,7 @@
"Password": "Password",
"Russian": "Russian",
"Hungarian": "Hungarian",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Command(⌘)",
"Add Storage": "Add Storage",
"Name": "Name",
@@ -178,6 +180,8 @@
"Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.": "Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.",
"⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠": "⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠",
"Disabled": "Disabled",
+ "Save tags of a note in alphabetical order": "Save tags of a note in alphabetical order",
+ "Enable live count of notes": "Enable live count of notes",
"Enable smart table editor": "Enable smart table editor",
"Snippet Default Language": "Snippet Default Language"
}
diff --git a/locales/es-ES.json b/locales/es-ES.json
index d188029d..8b2da1b7 100644
--- a/locales/es-ES.json
+++ b/locales/es-ES.json
@@ -143,6 +143,7 @@
"Spanish": "Español",
"Unsaved Changes!": "¡Tienes que guardar!",
"Russian": "Ruso",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Comando(⌘)",
"Editor Rulers": "Reglas del editor",
"Enable": "Activar",
diff --git a/locales/fa.json b/locales/fa.json
index cb8c5671..18bef679 100644
--- a/locales/fa.json
+++ b/locales/fa.json
@@ -146,6 +146,7 @@
"UserName": "نام کاربری",
"Password": "رمز عبور",
"Russian": "روسی",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Command(⌘)",
"Editor Rulers": "Editor Rulers",
"Enable": "فعال",
diff --git a/locales/fr.json b/locales/fr.json
index bea9b647..2c4f68d9 100644
--- a/locales/fr.json
+++ b/locales/fr.json
@@ -40,6 +40,7 @@
"Editor Indent Style": "Style d'indentation de l'éditeur",
"Spaces": "Espaces",
"Tabs": "Tabulations",
+ "Show only related tags": "Afficher uniquement les tags associés",
"Switch to Preview": "Switcher vers l'aperçu",
"When Editor Blurred": "Quand l'éditeur n'est pas sélectionné",
"When Editor Blurred, Edit On Double Click": "Quand l'éditeur n'est pas sélectionné, éditer avec un double clic",
@@ -57,6 +58,7 @@
"Preview Font Family": "Police de l'aperçu",
"Code Block Theme": "Thème des blocs de code",
"Show line numbers for preview code blocks": "Montrer les numéros de lignes dans les blocs de code dans l'aperçu",
+ "Enable smart quotes": "Activer les citations intelligentes",
"LaTeX Inline Open Delimiter": "LaTeX Inline Open Delimiter",
"LaTeX Inline Close Delimiter": "LaTeX Inline Close Delimiter",
"LaTeX Block Open Delimiter": "LaTeX Block Open Delimiter",
@@ -92,6 +94,7 @@
"The Boostnote Team": "Les mainteneurs de Boostnote",
"Support via OpenCollective": "Support via OpenCollective",
"Language": "Langues",
+ "Default New Note": "Nouvelle note par défaut",
"English": "Anglais",
"German": "Allemand",
"French": "Français",
@@ -114,8 +117,8 @@
"Default View": "Vue par défaut",
"Compressed View": "Vue compressée",
"Search": "Chercher",
- "Blog Type": "Blog Type",
- "Blog Address": "Blog Address",
+ "Blog Type": "Type du blog",
+ "Blog Address": "Adresse du blog",
"Save": "Sauvegarder",
"Auth": "Auth",
"Authentication Method": "Méthode d'Authentification",
@@ -133,6 +136,7 @@
"Albanian": "Albanais",
"Chinese (zh-CN)": "Chinois (zh-CN)",
"Chinese (zh-TW)": "Chinois (zh-TW)",
+ "Toggle Editor Mode": "Basculer en mode éditeur",
"Danish": "Danois",
"Japanese": "Japonais",
"Korean": "Coréen",
@@ -142,6 +146,7 @@
"Spanish": "Espagnol",
"Unsaved Changes!": "Il faut sauvegarder !",
"Russian": "Russe",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Command(⌘)",
"Editor Rulers": "Règles dans l'éditeur",
"Enable": "Activer",
@@ -153,8 +158,15 @@
"Allow dangerous html tags": "Accepter les tags html dangereux",
"Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.": "Convertir des flèches textuelles en jolis signes. ⚠ Cela va interferérer avec les éventuels commentaires HTML dans votre Markdown.",
"⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠": "⚠ Vous avez collé un lien qui référence une pièce-jointe qui n'a pas pu être récupéré dans le dossier de stockage de la note. Coller des liens qui font référence à des pièces-jointes ne fonctionne que si la source et la destination et la même. Veuillez plutôt utiliser du Drag & Drop ! ⚠",
+ "Save tags of a note in alphabetical order": "Sauvegarder les tags d'une note en ordre alphabétique",
+ "Show tags of a note in alphabetical order": "Afficher les tags d'une note par ordre alphabétique",
+ "Enable live count of notes": "Activer le comptage live des notes",
"Enable smart table editor": "Activer l'intelligent éditeur de tableaux",
"Snippet Default Language": "Langage par défaut d'un snippet",
"Disabled": "Disabled",
+ "New Snippet": "Nouveau snippet",
+ "Custom CSS": "CSS personnalisé",
+ "Snippet name": "Nom du snippet",
+ "Snippet prefix": "Préfixe du snippet"
"Delete Note": "Supprimer la note"
}
diff --git a/locales/hu.json b/locales/hu.json
index b6fe3222..77bdb2ab 100644
--- a/locales/hu.json
+++ b/locales/hu.json
@@ -155,6 +155,7 @@
"Password": "Jelszo",
"Russian": "Russian",
"Hungarian": "Hungarian",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Command(⌘)",
"Add Storage": "Tároló hozzáadása",
"Name": "Név",
diff --git a/locales/it.json b/locales/it.json
index 85e5086e..05f454f3 100644
--- a/locales/it.json
+++ b/locales/it.json
@@ -146,6 +146,7 @@
"UserName": "UserName",
"Password": "Password",
"Russian": "Russo",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Comando(⌘)",
"Editor Rulers": "Regole dell'editor",
"Enable": "Abilita",
diff --git a/locales/ja.json b/locales/ja.json
index 8a8b3d4d..e33bbaa6 100644
--- a/locales/ja.json
+++ b/locales/ja.json
@@ -155,6 +155,7 @@
"Password": "パスワード",
"Russian": "ロシア語",
"Hungarian": "ハンガリー語",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "コマンド(⌘)",
"Add Storage": "ストレージを追加",
"Name": "名前",
diff --git a/locales/ko.json b/locales/ko.json
index 72b7c43c..9a8bf8c7 100644
--- a/locales/ko.json
+++ b/locales/ko.json
@@ -143,6 +143,7 @@
"Spanish": "Spanish",
"Unsaved Changes!": "저장해주세요!",
"Russian": "Russian",
+ "Thai": "Thai (ภาษาไทย)",
"Command(⌘)": "Command(⌘)",
"Delete Folder": "폴더 삭제",
"This will delete all notes in the folder and can not be undone.": "폴더의 모든 노트를 지우게 되고, 되돌릴 수 없습니다.",
diff --git a/locales/no.json b/locales/no.json
index 19eee8a4..2d6c92f5 100644
--- a/locales/no.json
+++ b/locales/no.json
@@ -143,6 +143,7 @@
"Spanish": "Spanish",
"Unsaved Changes!": "Unsaved Changes!",
"Russian": "Russian",
+ "Thai": "Thai (ภาษาไทย)",
"Editor Rulers": "Editor Rulers",
"Enable": "Enable",
"Disable": "Disable",
diff --git a/locales/pl.json b/locales/pl.json
index 26b420ab..68719aef 100644
--- a/locales/pl.json
+++ b/locales/pl.json
@@ -149,6 +149,7 @@
"Spanish": "Hiszpański",
"Unsaved Changes!": "Musisz zapisać!",
"Russian": "Rosyjski",
+ "Thai": "Thai (ภาษาไทย)",
"Editor Rulers": "Margines",
"Enable": "Włącz",
"Disable": "Wyłącz",
diff --git a/locales/pt-BR.json b/locales/pt-BR.json
index a5af23ee..6b3126cc 100644
--- a/locales/pt-BR.json
+++ b/locales/pt-BR.json
@@ -143,6 +143,7 @@
"Spanish": "Espanhol",
"Unsaved Changes!": "Você precisa salvar!",
"Russian": "Russo",
+ "Thai": "Thai (ภาษาไทย)",
"Editor Rulers": "Réguas do Editor",
"Enable": "Habilitado",
"Disable": "Desabilitado",
diff --git a/locales/pt-PT.json b/locales/pt-PT.json
index 19eee8a4..774919a2 100644
--- a/locales/pt-PT.json
+++ b/locales/pt-PT.json
@@ -1,156 +1,156 @@
{
- "Notes": "Notes",
- "Tags": "Tags",
- "Preferences": "Preferences",
- "Make a note": "Make a note",
+ "Notes": "Notas",
+ "Tags": "Etiquetas",
+ "Preferences": "Definiçōes",
+ "Make a note": "Criar nota",
"Ctrl": "Ctrl",
"Ctrl(^)": "Ctrl",
- "to create a new note": "to create a new note",
- "Toggle Mode": "Toggle Mode",
- "Trash": "Trash",
- "MODIFICATION DATE": "MODIFICATION DATE",
- "Words": "Words",
- "Letters": "Letters",
- "STORAGE": "STORAGE",
- "FOLDER": "FOLDER",
- "CREATION DATE": "CREATION DATE",
- "NOTE LINK": "NOTE LINK",
+ "to create a new note": "para criar uma nova nota",
+ "Toggle Mode": "Alternar Modo",
+ "Trash": "Lixo",
+ "MODIFICATION DATE": "DATA DE MODIFICAÇÃO",
+ "Words": "Palavras",
+ "Letters": "Letras",
+ "STORAGE": "ARMAZENAMENTO",
+ "FOLDER": "PASTA",
+ "CREATION DATE": "DATA DE CRIAÇÃO",
+ "NOTE LINK": "ATALHO DE NOTA",
".md": ".md",
".txt": ".txt",
".html": ".html",
- "Print": "Print",
- "Your preferences for Boostnote": "Your preferences for Boostnote",
- "Storage Locations": "Storage Locations",
- "Add Storage Location": "Add Storage Location",
- "Add Folder": "Add Folder",
- "Open Storage folder": "Open Storage folder",
- "Unlink": "Unlink",
- "Edit": "Edit",
- "Delete": "Delete",
+ "Print": "Imprimir",
+ "Your preferences for Boostnote": "As tuas definiçōes para Boostnote",
+ "Storage Locations": "Locais de Armazenamento",
+ "Add Storage Location": "Adicionar Local de Armazenamento",
+ "Add Folder": "Adicionar Pasta",
+ "Open Storage folder": "Abrir Local de Armazenamento",
+ "Unlink": "Remover a ligação",
+ "Edit": "Editar",
+ "Delete": "Apagar",
"Interface": "Interface",
- "Interface Theme": "Interface Theme",
+ "Interface Theme": "Tema",
"Default": "Default",
- "White": "White",
+ "White": "Branco",
"Solarized Dark": "Solarized Dark",
- "Dark": "Dark",
- "Show a confirmation dialog when deleting notes": "Show a confirmation dialog when deleting notes",
- "Editor Theme": "Editor Theme",
- "Editor Font Size": "Editor Font Size",
- "Editor Font Family": "Editor Font Family",
- "Editor Indent Style": "Editor Indent Style",
- "Spaces": "Spaces",
+ "Dark": "Escuro",
+ "Show a confirmation dialog when deleting notes": "Mostrar uma confirmação ao excluir notas",
+ "Editor Theme": "Tema do Editor",
+ "Editor Font Size": "Tamanho de Fonte do Editor",
+ "Editor Font Family": "Família de Fonte do Editor",
+ "Editor Indent Style": "Estílo de Identação do Editor",
+ "Spaces": "Espaços",
"Tabs": "Tabs",
- "Switch to Preview": "Switch to Preview",
- "When Editor Blurred": "When Editor Blurred",
- "When Editor Blurred, Edit On Double Click": "When Editor Blurred, Edit On Double Click",
- "On Right Click": "On Right Click",
- "Editor Keymap": "Editor Keymap",
- "default": "default",
+ "Switch to Preview": "Mudar para Pré-Visualização",
+ "When Editor Blurred": "Quando o Editor Obscurece",
+ "When Editor Blurred, Edit On Double Click": "Quando o Editor Obscurece, Editar com Duplo Clique",
+ "On Right Click": "Ao Clicar Com o Botão Direito",
+ "Editor Keymap": "Mapa de Teclado do Editor",
+ "default": "padrão",
"vim": "vim",
"emacs": "emacs",
- "⚠️ Please restart boostnote after you change the keymap": "⚠️ Please restart boostnote after you change the keymap",
- "Show line numbers in the editor": "Show line numbers in the editor",
- "Allow editor to scroll past the last line": "Allow editor to scroll past the last line",
- "Bring in web page title when pasting URL on editor": "Bring in web page title when pasting URL on editor",
- "Preview": "Preview",
- "Preview Font Size": "Preview Font Size",
- "Preview Font Family": "Preview Font Family",
- "Code Block Theme": "Code Block Theme",
- "Allow preview to scroll past the last line": "Allow preview to scroll past the last line",
- "Show line numbers for preview code blocks": "Show line numbers for preview code blocks",
- "LaTeX Inline Open Delimiter": "LaTeX Inline Open Delimiter",
- "LaTeX Inline Close Delimiter": "LaTeX Inline Close Delimiter",
- "LaTeX Block Open Delimiter": "LaTeX Block Open Delimiter",
- "LaTeX Block Close Delimiter": "LaTeX Block Close Delimiter",
+ "⚠️ Please restart boostnote after you change the keymap": "⚠️ Por favor, reinicia o Boostnote depois de alterar o mapa de teclado.",
+ "Show line numbers in the editor": "Mostrar os números das linhas no editor",
+ "Allow editor to scroll past the last line": "Permitir que o editor faça scroll além da última linha",
+ "Bring in web page title when pasting URL on editor": "Trazer o título da página da Web ao colar o endereço no editor",
+ "Preview": "Pré-Visualização",
+ "Preview Font Size": "Tamanho da Fonte da Pré-Visualização",
+ "Preview Font Family": "Família da Fonte da Pré-Visualização",
+ "Code Block Theme": "Tema do Bloco de Código",
+ "Allow preview to scroll past the last line": "Permitir que se faça scroll além da última linha",
+ "Show line numbers for preview code blocks": "Mostrar os números das linhas na pré-visualização dos blocos de código",
+ "LaTeX Inline Open Delimiter": "Delimitador para Abrir Bloco LaTeX em Linha",
+ "LaTeX Inline Close Delimiter": "Delimitador para Fechar Bloco LaTeX em Linha",
+ "LaTeX Block Open Delimiter": "Delimitador para Abrir Bloco LaTeX",
+ "LaTeX Block Close Delimiter": "Delimitador para Fechar Bloco LaTeX",
"PlantUML Server": "PlantUML Server",
- "Community": "Community",
- "Subscribe to Newsletter": "Subscribe to Newsletter",
+ "Community": "Comunidade",
+ "Subscribe to Newsletter": "Subscrever à Newsletter",
"GitHub": "GitHub",
"Blog": "Blog",
- "Facebook Group": "Facebook Group",
+ "Facebook Group": "Grupo de Facebook",
"Twitter": "Twitter",
- "About": "About",
+ "About": "Sobre",
"Boostnote": "Boostnote",
- "An open source note-taking app made for programmers just like you.": "An open source note-taking app made for programmers just like you.",
+ "An open source note-taking app made for programmers just like you.": "Uma aplicação open source de bloco de notas feita para programadores como tu.",
"Website": "Website",
- "Development": "Development",
- " : Development configurations for Boostnote.": " : Development configurations for Boostnote.",
- "Copyright (C) 2017 - 2018 BoostIO": "Copyright (C) 2017 - 2018 BoostIO",
- "License: GPL v3": "License: GPL v3",
- "Analytics": "Analytics",
- "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.": "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.",
- "You can see how it works on ": "You can see how it works on ",
- "You can choose to enable or disable this option.": "You can choose to enable or disable this option.",
- "Enable analytics to help improve Boostnote": "Enable analytics to help improve Boostnote",
- "Crowdfunding": "Crowdfunding",
- "Dear Boostnote users,": "Dear Boostnote users,",
- "Thank you for using Boostnote!": "Thank you for using Boostnote!",
- "Boostnote is used in about 200 different countries and regions by an awesome community of developers.": "Boostnote is used in about 200 different countries and regions by an awesome community of developers.",
- "To support our growing userbase, and satisfy community expectations,": "To support our growing userbase, and satisfy community expectations,",
- "we would like to invest more time and resources in this project.": "we would like to invest more time and resources in this project.",
- "If you use Boostnote and see its potential, help us out by supporting the project on OpenCollective!": "If you use Boostnote and see its potential, help us out by supporting the project on OpenCollective!",
- "Thanks,": "Thanks,",
- "The Boostnote Team": "The Boostnote Team",
- "Support via OpenCollective": "Support via OpenCollective",
- "Language": "Language",
- "English": "English",
- "German": "German",
- "French": "French",
- "Show \"Saved to Clipboard\" notification when copying": "Show \"Saved to Clipboard\" notification when copying",
- "All Notes": "All Notes",
- "Starred": "Starred",
- "Are you sure to ": "Are you sure to ",
- " delete": " delete",
- "this folder?": "this folder?",
- "Confirm": "Confirm",
- "Cancel": "Cancel",
- "Markdown Note": "Markdown Note",
- "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.": "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.",
- "Snippet Note": "Snippet Note",
- "This format is for creating code snippets. Multiple snippets can be grouped into a single note.": "This format is for creating code snippets. Multiple snippets can be grouped into a single note.",
- "Tab to switch format": "Tab to switch format",
- "Updated": "Updated",
- "Created": "Created",
- "Alphabetically": "Alphabetically",
- "Default View": "Default View",
- "Compressed View": "Compressed View",
- "Search": "Search",
- "Blog Type": "Blog Type",
- "Blog Address": "Blog Address",
- "Save": "Save",
- "Auth": "Auth",
- "Authentication Method": "Authentication Method",
+ "Development": "Desenvolvimento",
+ " : Development configurations for Boostnote.": " : Configurações de desenvolvimento para o Boostnote.",
+ "Copyright (C) 2017 - 2018 BoostIO": "Direitos de Autor (C) 2017 - 2018 BoostIO",
+ "License: GPL v3": "Licença: GPL v3",
+ "Analytics": "Analíse de Data",
+ "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.": "O Boostnote coleta dados anônimos com o único propósito de melhorar a aplicação e não adquire informação pessoal ou conteúdo das tuas notas.",
+ "You can see how it works on ": "Podes ver como funciona em ",
+ "You can choose to enable or disable this option.": "Podes optar por activar ou desactivar esta opção.",
+ "Enable analytics to help improve Boostnote": "Permitir recolha de data anônima para ajudar a melhorar o Boostnote",
+ "Crowdfunding": "Financiamento Coletivo",
+ "Dear Boostnote users,": "Caros(as),",
+ "Thank you for using Boostnote!": "Obrigado por usar o Boostnote!",
+ "Boostnote is used in about 200 different countries and regions by an awesome community of developers.": "O Boostnote é usado em cerca de 200 países e regiões diferentes por uma incrível comunidade de developers.",
+ "To support our growing userbase, and satisfy community expectations,": "Para continuar a apoiar o crescimento e satisfazer as expectativas da comunidade,",
+ "we would like to invest more time and resources in this project.": "gostaríamos de investir mais tempo e recursos neste projeto.",
+ "If you use Boostnote and see its potential, help us out by supporting the project on OpenCollective!": "Se gostas deste projeto e vês o seu potencial, podes ajudar-nos através de donativos no OpenCollective!",
+ "Thanks,": "Obrigado,",
+ "The Boostnote Team": "A Equipa do Boostnote",
+ "Support via OpenCollective": "Suporte via OpenCollective",
+ "Language": "Idioma",
+ "English": "Inglês",
+ "German": "Alemão",
+ "French": "Francês",
+ "Show \"Saved to Clipboard\" notification when copying": "Mostrar a notificação \"Guardado na Área de Transferência\" ao copiar",
+ "All Notes": "Todas as Notas",
+ "Starred": "Com Estrela",
+ "Are you sure to ": "Tens a certeza que gostarias de ",
+ " delete": " apagar",
+ "this folder?": "esta pasta?",
+ "Confirm": "Confirmar",
+ "Cancel": "Cancelar",
+ "Markdown Note": "Nota em Markdown",
+ "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.": "Este formato permite a criação de documentos de texto. Estão disponíveis: listas de verificação, blocos de código e blocos Latex.",
+ "Snippet Note": "Fragmento de Nota",
+ "This format is for creating code snippets. Multiple snippets can be grouped into a single note.": "Este formato permite a criação de fragmentos de notas. Vários fragmentos podem ser agrupados em uma única nota.",
+ "Tab to switch format": "Tab para mudar o formato",
+ "Updated": "Actualizado",
+ "Created": "Criado",
+ "Alphabetically": "Alfabeticamente",
+ "Default View": "Vista Padrão",
+ "Compressed View": "Vista Comprimida",
+ "Search": "Procurar",
+ "Blog Type": "Tipo de Blog",
+ "Blog Address": "Endereço do Blog",
+ "Save": "Guardar",
+ "Auth": "Autenticação",
+ "Authentication Method": "Método de Autenticação",
"JWT": "JWT",
"USER": "USER",
"Token": "Token",
- "Storage": "Storage",
- "Hotkeys": "Hotkeys",
- "Show/Hide Boostnote": "Show/Hide Boostnote",
- "Restore": "Restore",
- "Permanent Delete": "Permanent Delete",
- "Confirm note deletion": "Confirm note deletion",
- "This will permanently remove this note.": "This will permanently remove this note.",
- "Successfully applied!": "Successfully applied!",
- "Albanian": "Albanian",
- "Chinese (zh-CN)": "Chinese (zh-CN)",
- "Chinese (zh-TW)": "Chinese (zh-TW)",
- "Danish": "Danish",
- "Japanese": "Japanese",
- "Korean": "Korean",
- "Norwegian": "Norwegian",
- "Polish": "Polish",
- "Portuguese": "Portuguese",
- "Spanish": "Spanish",
- "Unsaved Changes!": "Unsaved Changes!",
- "Russian": "Russian",
- "Editor Rulers": "Editor Rulers",
- "Enable": "Enable",
- "Disable": "Disable",
- "Sanitization": "Sanitization",
- "Only allow secure html tags (recommended)": "Only allow secure html tags (recommended)",
- "Allow styles": "Allow styles",
- "Allow dangerous html tags": "Allow dangerous html tags",
- "Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.": "Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.",
- "⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠": "⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠",
- "Disabled": "Disabled"
+ "Storage": "Armazenamento",
+ "Hotkeys": "Teclas de Atalho",
+ "Show/Hide Boostnote": "Mostrar/Esconder Boostnote",
+ "Restore": "Restaurar",
+ "Permanent Delete": "Apagar Permanentemente",
+ "Confirm note deletion": "Confirmar o apagamento da nota",
+ "This will permanently remove this note.": "Isto irá remover permanentemente esta nota.",
+ "Successfully applied!": "Aplicado com Sucesso!",
+ "Albanian": "Albanês",
+ "Chinese (zh-CN)": "Chinês (zh-CN)",
+ "Chinese (zh-TW)": "Chinês (zh-TW)",
+ "Danish": "Dinamarquês",
+ "Japanese": "Japonês",
+ "Korean": "Coreano",
+ "Norwegian": "Norueguês",
+ "Polish": "Polaco",
+ "Portuguese": "Português (pt-PT)",
+ "Spanish": "Espanhol",
+ "Unsaved Changes!": "Alterações Não Guardadas!",
+ "Russian": "Russo",
+ "Editor Rulers": "Réguas do Editor",
+ "Enable": "Activar",
+ "Disable": "Desactivar",
+ "Sanitization": "Sanitização",
+ "Only allow secure html tags (recommended)": "Perminar somente tags html seguras (recomendado)",
+ "Allow styles": "Permitir Estilos",
+ "Allow dangerous html tags": "Permitir tags html perigosas",
+ "Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.": "Converter setas de texto em simbolos. ⚠ Isto irá interferir no use de comentários em HTML em Markdown.",
+ "⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠": "⚠ Você colou um link referente a um anexo que não pôde ser encontrado no local de armazenamento desta nota. A vinculação de anexos de referência de links só é suportada se o local de origem e de destino for o mesmo de armazenamento. Por favor, arraste e solte o anexo na nota! ⚠",
+ "Disabled": "Disabled"
}
diff --git a/locales/ru.json b/locales/ru.json
index 90aa8032..793e1511 100644
--- a/locales/ru.json
+++ b/locales/ru.json
@@ -144,6 +144,7 @@
"UserName": "Имя пользователя",
"Password": "Пароль",
"Russian": "Русский",
+ "Thai": "Thai (ภาษาไทย)",
"Editor Rulers": "Editor Rulers",
"Enable": "Enable",
"Disable": "Disable",
diff --git a/locales/sq.json b/locales/sq.json
index 15d1a34f..e4cc01ac 100644
--- a/locales/sq.json
+++ b/locales/sq.json
@@ -142,6 +142,7 @@
"Spanish": "Spanish",
"Unsaved Changes!": "Unsaved Changes!",
"Russian": "Russian",
+ "Thai": "Thai (ภาษาไทย)",
"Editor Rulers": "Editor Rulers",
"Enable": "Enable",
"Disable": "Disable",
diff --git a/locales/th.json b/locales/th.json
new file mode 100644
index 00000000..49d8e7cd
--- /dev/null
+++ b/locales/th.json
@@ -0,0 +1,182 @@
+{
+ "Notes": "โน๊ต",
+ "Tags": "แท็ก",
+ "Preferences": "ตั้งค่า",
+ "Make a note": "สร้างโน๊ต",
+ "Ctrl": "Ctrl",
+ "Ctrl(^)": "Ctrl(^)",
+ "to create a new note": "เพื่อสร้างโน๊ต",
+ "Toggle Mode": "Toggle Mode",
+ "Add tag...": "เพิ่มแท็ก...",
+ "Trash": "ถังขยะ",
+ "MODIFICATION DATE": "แก้ไขเมื่อ",
+ "Words": "คำ",
+ "Letters": "ตัวอักษร",
+ "STORAGE": "แหล่งจัดเก็บ",
+ "FOLDER": "โฟลเดอร์",
+ "CREATION DATE": "สร้างเมื่อ",
+ "NOTE LINK": "NOTE LINK",
+ ".md": ".md",
+ ".txt": ".txt",
+ ".html": ".html",
+ "Print": "พิมพ์",
+ "Your preferences for Boostnote": "การตั้งค่าของคุณสำหรับ Boostnote",
+ "Help": "ช่วยเหลือ",
+ "Hide Help": "ซ่อนการช่วยเหลือ",
+ "Storages": "แหล่งจัดเก็บ",
+ "Add Storage Location": "เพิ่มแหล่งจัดเก็บ",
+ "Add Folder": "เพิ่มโฟลเดอร์",
+ "Select Folder": "เลือกโฟลเดอร์",
+ "Open Storage folder": "เปิดโฟลเดอร์แหล่งจัดเก็บ",
+ "Unlink": "ยกเลิกการลิงค์",
+ "Edit": "แก้ไข",
+ "Delete": "ลบ",
+ "Interface": "หน้าตาโปรแกรม",
+ "Interface Theme": "ธีมของโปรแกรม",
+ "Default": "ค่าเริ่มต้น",
+ "White": "โทนสว่าง",
+ "Solarized Dark": "Solarized Dark",
+ "Dark": "โทนมืด",
+ "Show a confirmation dialog when deleting notes": "แสดงหน้าต่างยืนยันเมื่อทำการลบโน๊ต",
+ "Disable Direct Write (It will be applied after restarting)": "ปิด Direct Write (It will be applied after restarting)",
+ "Show only related tags": "แสดงเฉพาะแท็กที่เกี่ยวข้อง",
+ "Editor Theme": "ธีมของ Editor",
+ "Editor Font Size": "ขนาดอักษรของ Editor",
+ "Editor Font Family": "แบบอักษรของ Editor",
+ "Editor Indent Style": "รูปแบบการย่อหน้าของ Editor",
+ "Spaces": "ช่องว่าง",
+ "Tabs": "แท็บ",
+ "Switch to Preview": "Switch to Preview",
+ "When Editor Blurred": "When Editor Blurred",
+ "When Editor Blurred, Edit On Double Click": "When Editor Blurred, Edit On Double Click",
+ "On Right Click": "On Right Click",
+ "Editor Keymap": "รูปแบบคีย์ลัดของ Editor",
+ "default": "ค่าเริ่มต้น",
+ "vim": "vim",
+ "emacs": "emacs",
+ "⚠️ Please restart boostnote after you change the keymap": "⚠️ กรุณาปิดและเปิดโปรแกรมใหม่ หลังจากคุณเปลี่ยนคีย์ลัด",
+ "Show line numbers in the editor": "แสดงหมายเลขบรรทัด",
+ "Allow editor to scroll past the last line": "อนุญาตให้เลื่อน Scroll เลยบรรทัดสุดท้ายได้",
+ "Enable smart quotes": "เปิด Smart quotes",
+ "Bring in web page title when pasting URL on editor": "แสดงชื่อ Title ของเว็บไซต์เมื่อวางลิงค์ใน Editor",
+ "Preview": "พรีวิว",
+ "Preview Font Size": "ขนาดอักษร",
+ "Preview Font Family": "แบบอักษร",
+ "Code block Theme": "ธีมของ Code block",
+ "Allow preview to scroll past the last line": "อนุญาตให้เลื่อน Scroll เลยบรรทัดสุดท้ายได้",
+ "Show line numbers for preview code blocks": "แสดงหมายเลขบรรทัดใน Code block",
+ "LaTeX Inline Open Delimiter": "LaTeX Inline Open Delimiter",
+ "LaTeX Inline Close Delimiter": "LaTeX Inline Close Delimiter",
+ "LaTeX Block Open Delimiter": "LaTeX Block Open Delimiter",
+ "LaTeX Block Close Delimiter": "LaTeX Block Close Delimiter",
+ "PlantUML Server": "เซิฟเวอร์ของ PlantUML",
+ "Community": "ชุมชนผู้ใช้",
+ "Subscribe to Newsletter": "สมัครรับข่าวสาร",
+ "GitHub": "GitHub",
+ "Blog": "บล็อก",
+ "Facebook Group": "กลุ่ม Facebook",
+ "Twitter": "Twitter",
+ "About": "เกี่ยวกับ",
+ "Boostnote": "Boostnote",
+ "An open source note-taking app made for programmers just like you.": "เป็นแอพพลิเคชันจดบันทึก ที่ออกแบบมาเพื่อโปรแกรมเมอร์อย่างคุณ.",
+ "Website": "เว็บไซต์",
+ "Development": "การพัฒนา",
+ " : Development configurations for Boostnote.": " : การตั้งค่าต่างๆสำหรับการพัฒนา Boostnote.",
+ "Copyright (C) 2017 - 2018 BoostIO": "สงวนลิขสิทธิ์ (C) 2017 - 2018 BoostIO",
+ "License: GPL v3": "License: GPL v3",
+ "Analytics": "การวิเคราะห์",
+ "Boostnote collects anonymous data for the sole purpose of improving the application, and strictly does not collect any personal information such the contents of your notes.": "Boostnote จะเก็บข้อมูลแบบไม่ระบุตัวตนเพื่อนำไปใช้ในการปรับปรุงแอพพลิเคชันเท่านั้น, และจะไม่มีการเก็บข้อมูลส่วนตัวใดๆของคุณ เช่น ข้อมูลในโน๊ตของคุณอย่างเด็ดขาด.",
+ "You can see how it works on ": "คุณสามารถดูรายละเอียดเพิ่มเติมได้ที่ ",
+ "You can choose to enable or disable this option.": "คุณสามารถเลือกที่จะเปิดหรือปิดตัวเลือกนี้ได้.",
+ "Enable analytics to help improve Boostnote": "เปิดการวิเคราะห์ สำหรับการนำไปปรับปรุงพัฒนา Boostnote",
+ "Crowdfunding": "การระดมทุนสาธารณะ",
+ "Dear everyone,": "สวัสดีทุกคน,",
+ "Thank you for using Boostnote!": "ขอขอบคุณที่เลือกใช้ Boostnote!",
+ "Boostnote is used in about 200 different countries and regions by an awesome community of developers.": "มีการใช้งาน Boostnote จากสังคมผู้ใช้ที่เป็น Developer มากกว่า 200 ประเทศทั่วโลกจากหลากหลายภูมิภาค.",
+ "To continue supporting this growth, and to satisfy community expectations,": "เพื่อให้เกิดการสนับสนุนให้เกิดการเติบโตอย่างต่อเนื่อง, และเพื่อพัฒนาให้ตรงตามความต้องการของชุมชนผู้ใช้,",
+ "we would like to invest more time and resources in this project.": "เราต้องใช้เวลา และการลงทุนด้านทรัพยากรสำหรับโครงการนี้.",
+ "If you like this project and see its potential, you can help by supporting us on OpenCollective!": "ถ้าคุณชอบและมองเห็นความเป็นไปได้ในอนาคต, คุณสามารถช่วยเหลือด้วยการสนับสนุนเราผ่าน OpenCollective!",
+ "Thanks,": "ขอขอบคุณ,",
+ "Boostnote maintainers": "กลุ่มผู้พัฒนา Boostnote",
+ "Support via OpenCollective": "สนับสนุนผ่าน OpenCollective",
+ "Language": "ภาษา",
+ "English": "English",
+ "German": "German",
+ "French": "French",
+ "Show \"Saved to Clipboard\" notification when copying": "แสดงการแจ้งเตือน \"บันทึกไปยังคลิปบอร์ด\" เมื่อทำการคัดลอก",
+ "All Notes": "โน๊ตทั้งหมด",
+ "Starred": "รายการโปรด",
+ "Are you sure to ": "คุณแน่ใจหรือไม่ที่จะ ",
+ " delete": " ลบ",
+ "this folder?": "โฟลเดอร์นี้?",
+ "Confirm": "ยืนยัน",
+ "Cancel": "ยกเลิก",
+ "Markdown Note": "โน๊ต Markdown",
+ "This format is for creating text documents. Checklists, code blocks and Latex blocks are available.": "รูปแบบนี้ใช้สำหรับสร้างเอกสารทั่วไป. รองรับการเขียนเช็คลิสต์, แทรกโค้ด และการเขียนโดยใช้ Latex.",
+ "Snippet Note": "โน๊ต Snippet",
+ "This format is for creating code snippets. Multiple snippets can be grouped into a single note.": "รูปแบบนี้ใช้สำหรับสร้าง Code snippets. สามารถรวมหลาย Snippets เป็นโน๊ตเดียวกันได้.",
+ "Tab to switch format": "กด Tab เพื่อเปลี่ยนรูปแบบที่เลือก",
+ "Updated": "เรียงตามอัพเดท",
+ "Created": "เรียงตามเวลาที่สร้างโน๊ต",
+ "Alphabetically": "เรียงตามอักษร",
+ "Counter": "Counter",
+ "Default View": "มุมมองปกติ",
+ "Compressed View": "มุมมองหนาแน่น",
+ "Search": "ค้นหา",
+ "Blog Type": "ประเภทของบล็อก",
+ "Blog Address": "ที่อยู่ของบล็อก",
+ "Save": "บันทึก",
+ "Auth": "การยืนยันตัวตน",
+ "Authentication Method": "รูปแบบการยืนยันตัวตน",
+ "JWT": "JWT",
+ "USER": "USER",
+ "Token": "Token",
+ "Storage": "แหล่งจัดเก็บ",
+ "Hotkeys": "คีย์ลัด",
+ "Show/Hide Boostnote": "แสดง/ซ่อน Boostnote",
+ "Toggle editor mode": "เปิด/ปิด Editor mode",
+ "Restore": "กู้คืน",
+ "Permanent Delete": "ลบถาวร",
+ "Confirm note deletion": "ยืนยันการลบโน๊ต",
+ "This will permanently remove this note.": "โน๊ตของคุณจะถูกลบอย่างถาวร.",
+ "Successfully applied!": "สำเร็จ!",
+ "Albanian": "Albanian",
+ "Chinese (zh-CN)": "Chinese (zh-CN)",
+ "Chinese (zh-TW)": "Chinese (zh-TW)",
+ "Danish": "Danish",
+ "Japanese": "Japanese",
+ "Korean": "Korean",
+ "Norwegian": "Norwegian",
+ "Polish": "Polish",
+ "Portuguese": "Portuguese",
+ "Spanish": "Spanish",
+ "You have to save!": "คุณจำเป็นต้องบันทึก!",
+ "UserName": "UserName",
+ "Password": "Password",
+ "Russian": "Russian",
+ "Hungarian": "Hungarian",
+ "Thai": "Thai (ภาษาไทย)",
+ "Command(⌘)": "Command(⌘)",
+ "Add Storage": "เพิ่มแหล่งจัดเก็บ",
+ "Name": "ชื่อ",
+ "Type": "ชนิด",
+ "File System": "ระบบไฟล์",
+ "Setting up 3rd-party cloud storage integration:": "ดูวิธีการตั้งค่า หากต้องการใช้งานแบบลิงค์ไฟล์ร่วมกับผู้ให้บริการเก็บข้อมูลบนคลาวด์",
+ "Cloud-Syncing-and-Backup": "Cloud-Syncing-and-Backup",
+ "Location": "ที่อยู่",
+ "Add": "เพิ่ม",
+ "Unlink Storage": "ยกเลิกการลิงค์ Storage",
+ "Unlinking removes this linked storage from Boostnote. No data is removed, please manually delete the folder from your hard drive if needed.": "การยกเลิกการลิงค์ จะเป็นการลบการลิงค์แหล่งจัดเก็บออกไปจาก Boostnote. แต่ไฟล์ข้อมูลจะไม่ถูกลบ, หากต้องการลบข้อมูล กรุณาลบโพลเดอร์ของข้อมูลในเครื่องของท่านด้วยตัวเอง.",
+ "Editor Rulers": "ไม้บรรทัด Editor",
+ "Enable": "เปิด",
+ "Disable": "ปิด",
+ "Sanitization": "Sanitization",
+ "Only allow secure html tags (recommended)": "อนุญาตเฉพาะ HTML tag ที่มีความปลอดภัย (แนะนำ)",
+ "Render newlines in Markdown paragraphs as ": "ใช้ แทนอักขระขึ้นบรรทัดใหม่ในข้อความ Markdown",
+ "Allow styles": "อนุญาตการใช้ styles",
+ "Allow dangerous html tags": "อนุญาตให้ใช้ html tags ที่ไม่ปลอดภัย",
+ "Convert textual arrows to beautiful signs. ⚠ This will interfere with using HTML comments in your Markdown.": "แปลงลูกศรจากรูปแบบข้อความให้เป็นสัญลักษณ์. ⚠ สิ่งนี้จะเป็นการแทรกโดยใช้ HTML comment ลงไปใน Markdown ที่คุณเขียน.",
+ "⚠ You have pasted a link referring an attachment that could not be found in the storage location of this note. Pasting links referring attachments is only supported if the source and destination location is the same storage. Please Drag&Drop the attachment instead! ⚠": "⚠ ไม่พบไฟล์แนบในโน๊ตนี้ จากลิงค์ที่คุณได้วาง. คุณสามารถวางลิงค์ที่อ้างอิงไปยังไฟล์แนบ เฉพาะกรณีที่ต้นทาง และปลายทางที่อ้างถึงนั้นอยู่ใน 'แหล่งจัดเก็บ เดียวกัน. กรุณาใช้การลากและวางเพื่อใส่ไฟล์แนบแทน! ⚠",
+ "Enable smart table editor": "เปิดการใช้ Smart table editor",
+ "Snippet Default Language": "ทำการ Snippet ภาษาที่เป็นค่าเริ่มต้น"
+}
diff --git a/package.json b/package.json
index 7a32d5f2..056b9ce6 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
"dev": "node dev-scripts/dev.js"
},
"config": {
- "electron-version": "2.0.7"
+ "electron-version": "3.0.3"
},
"repository": {
"type": "git",
@@ -56,7 +56,7 @@
"codemirror": "^5.40.2",
"codemirror-mode-elixir": "^1.1.1",
"electron-config": "^1.0.0",
- "electron-gh-releases": "^2.0.2",
+ "electron-gh-releases": "^2.0.4",
"escape-string-regexp": "^1.0.5",
"file-uri-to-path": "^1.0.0",
"file-url": "^2.0.2",
@@ -68,10 +68,12 @@
"iconv-lite": "^0.4.19",
"immutable": "^3.8.1",
"js-sequence-diagrams": "^1000000.0.6",
+ "js-yaml": "^3.12.0",
"katex": "^0.9.0",
"lodash": "^4.11.1",
"lodash-move": "^1.1.1",
"markdown-it": "^6.0.1",
+ "markdown-it-abbr": "^1.0.4",
"markdown-it-admonition": "^1.0.4",
"markdown-it-emoji": "^1.1.1",
"markdown-it-footnote": "^3.0.0",
@@ -81,6 +83,8 @@
"markdown-it-named-headers": "^0.0.4",
"markdown-it-plantuml": "^1.1.0",
"markdown-it-smartarrows": "^1.0.1",
+ "markdown-it-sub": "^1.0.0",
+ "markdown-it-sup": "^1.0.0",
"markdown-toc": "^1.2.0",
"mdurl": "^1.0.1",
"mermaid": "^8.0.0-rc.8",
@@ -126,7 +130,7 @@
"css-loader": "^0.19.0",
"devtron": "^1.1.0",
"dom-storage": "^2.0.2",
- "electron": "2.0.7",
+ "electron": "3.0.3",
"electron-packager": "^12.0.0",
"eslint": "^3.13.1",
"eslint-config-standard": "^6.2.1",
diff --git a/tests/fixtures/markdowns.js b/tests/fixtures/markdowns.js
index 69e335e0..0ee80909 100644
--- a/tests/fixtures/markdowns.js
+++ b/tests/fixtures/markdowns.js
@@ -50,11 +50,70 @@ const smartQuotes = 'This is a "QUOTE".'
const breaks = 'This is the first line.\nThis is the second line.'
+const abbrevations = `
+## abbr
+
+The HTML specification
+is maintained by the W3C.
+
+*[HTML]: Hyper Text Markup Language
+*[W3C]: World Wide Web Consortium
+`
+
+const subTexts = `
+## sub
+
+H~2~0
+`
+
+const supTexts = `
+## sup
+
+29^th^
+`
+
+const deflists = `
+## definition list
+
+### list 1
+
+Term 1
+ ~ Definition 1
+
+Term 2
+ ~ Definition 2a
+ ~ Definition 2b
+
+Term 3
+~
+
+
+### list 2
+
+Term 1
+
+: Definition 1
+
+Term 2 with *inline markup*
+
+: Definition 2
+
+ { some code, part of Definition 2 }
+
+ Third paragraph of definition 2.
+`
+const shortcuts = 'Ctrl\n\n[[Ctrl]]'
+
export default {
basic,
codeblock,
katex,
checkboxes,
smartQuotes,
- breaks
+ breaks,
+ abbrevations,
+ subTexts,
+ supTexts,
+ deflists,
+ shortcuts
}
diff --git a/tests/lib/markdown-test.js b/tests/lib/markdown-test.js
index 73b68799..46ae5941 100644
--- a/tests/lib/markdown-test.js
+++ b/tests/lib/markdown-test.js
@@ -43,3 +43,28 @@ test('Markdown.render() should render line breaks correctly', t => {
const renderedNonBreaks = newmd.render(markdownFixtures.breaks)
t.snapshot(renderedNonBreaks)
})
+
+test('Markdown.render() should renders abbrevations correctly', t => {
+ const rendered = md.render(markdownFixtures.abbrevations)
+ t.snapshot(rendered)
+})
+
+test('Markdown.render() should renders sub correctly', t => {
+ const rendered = md.render(markdownFixtures.subTexts)
+ t.snapshot(rendered)
+})
+
+test('Markdown.render() should renders sup correctly', t => {
+ const rendered = md.render(markdownFixtures.supTexts)
+ t.snapshot(rendered)
+})
+
+test('Markdown.render() should renders definition lists correctly', t => {
+ const rendered = md.render(markdownFixtures.deflists)
+ t.snapshot(rendered)
+})
+
+test('Markdown.render() should render shortcuts correctly', t => {
+ const rendered = md.render(markdownFixtures.shortcuts)
+ t.snapshot(rendered)
+})
diff --git a/tests/lib/snapshots/markdown-test.js.md b/tests/lib/snapshots/markdown-test.js.md
index b7251b8d..eefb232c 100644
--- a/tests/lib/snapshots/markdown-test.js.md
+++ b/tests/lib/snapshots/markdown-test.js.md
@@ -18,6 +18,14 @@ Generated by [AVA](https://ava.li).
This is the second line.␊
`
+## Markdown.render() should render shortcuts correctly
+
+> Snapshot 1
+
+ `