Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/desktop/src/common/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'

export type Translations = Record<string, unknown>

const SUPPORTED_LANGUAGES = ['en', 'zh-CN', 'zh-TW', 'es', 'fr', 'de', 'ja', 'ko', 'pt', 'tr'] as const
const SUPPORTED_LANGUAGES = ['en', 'zh-CN', 'zh-TW', 'es', 'fr', 'de', 'ja', 'ko', 'nl', 'pt', 'tr'] as const

export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number]

Expand Down
4 changes: 4 additions & 0 deletions packages/desktop/src/main/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
'fr',
'de',
'es',
'nl',
'pt',
'ru'
]
Expand All @@ -188,6 +189,9 @@
'de-DE': 'de',
es: 'es',
'es-ES': 'es',
nl: 'nl',
'nl-NL': 'nl',
'nl-BE': 'nl',
pt: 'pt',
'pt-BR': 'pt',
ru: 'ru',
Expand Down Expand Up @@ -488,7 +492,7 @@
editor.createWindow(rootDirectory, fileList, markdownList, options, bufferStoreInfo)
this._windowManager.add(editor)
if (this._windowManager.windowCount === 1) {
this._accessor.menu.setActiveWindow(editor.id!)

Check warning on line 495 in packages/desktop/src/main/app/index.ts

View workflow job for this annotation

GitHub Actions / lint

Forbidden non-null assertion
}
return editor
}
Expand All @@ -501,7 +505,7 @@
setting.createWindow(category ?? null)
this._windowManager.add(setting)
if (this._windowManager.windowCount === 1) {
this._accessor.menu.setActiveWindow(setting.id!)

Check warning on line 508 in packages/desktop/src/main/app/index.ts

View workflow job for this annotation

GitHub Actions / lint

Forbidden non-null assertion
}
}

Expand Down Expand Up @@ -643,7 +647,7 @@
const settingWins = this._windowManager.getWindowsByType(WindowType.SETTINGS)
if (settingWins.length >= 1) {
// A setting window is already created
const browserSettingWindow = settingWins[0].win.browserWindow!

Check warning on line 650 in packages/desktop/src/main/app/index.ts

View workflow job for this annotation

GitHub Actions / lint

Forbidden non-null assertion
browserSettingWindow.webContents.send('settings::change-tab', category)
if (isLinux) {
browserSettingWindow.focus()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export const getLanguageOptions = (): PrefSelectOption<string>[] => [
label: t('preferences.general.misc.language.korean'),
value: 'ko'
},
{
label: t('preferences.general.misc.language.dutch'),
value: 'nl'
},
{
label: t('preferences.general.misc.language.portuguese'),
value: 'pt'
Expand Down
5 changes: 4 additions & 1 deletion packages/desktop/static/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@
"openFolder": "Ordner öffnen"
},
"toc": {
"title": "Inhaltsverzeichnis"
"title": "Inhaltsverzeichnis",
"expandAll": "Alle ausklappen",
"collapseAll": "Alle einklappen"
},
"icons": {
"files": "Dateien",
Expand Down Expand Up @@ -497,6 +499,7 @@
"german": "Deutsch",
"japanese": "日本語",
"korean": "한국어",
"dutch": "Nederlands",
"portuguese": "Português",
"turkish": "Türkçe"
}
Expand Down
5 changes: 4 additions & 1 deletion packages/desktop/static/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@
"openFolder": "Open Folder"
},
"toc": {
"title": "Table Of Contents"
"title": "Table Of Contents",
"expandAll": "Expand all",
"collapseAll": "Collapse all"
},
"icons": {
"files": "Files",
Expand Down Expand Up @@ -497,6 +499,7 @@
"german": "Deutsch",
"japanese": "日本語",
"korean": "한국어",
"dutch": "Nederlands",
"portuguese": "Português",
"turkish": "Türkçe"
}
Expand Down
9 changes: 6 additions & 3 deletions packages/desktop/static/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"taskList": "Lista de Tareas",
"looseListItem": "Elemento de Lista Suelto",
"horizontalRule": "Regla Horizontal",
"frontMatter": "Metadatos"
"frontMatter": "Front Matter"
},
"window": {
"title": "Ventana",
Expand Down Expand Up @@ -241,7 +241,9 @@
"openFolder": "Abrir Carpeta"
},
"toc": {
"title": "Tabla de Contenidos"
"title": "Tabla de Contenidos",
"expandAll": "Expandir todo",
"collapseAll": "Contraer todo"
},
"icons": {
"files": "Archivos",
Expand Down Expand Up @@ -497,6 +499,7 @@
"german": "Deutsch",
"japanese": "日本語",
"korean": "한국어",
"dutch": "Nederlands",
"portuguese": "Português",
"turkish": "Türkçe"
}
Expand Down Expand Up @@ -801,7 +804,7 @@
"looseListItem": "Elemento de Lista Suelto",
"paragraph": "Párrafo",
"horizontalLine": "Línea Horizontal",
"frontMatter": "Metadatos",
"frontMatter": "Front Matter",
"resetParagraph": "Restablecer Párrafo",
"mathBlock": "Bloque matemático",
"horizontalRule": "Línea horizontal"
Expand Down
35 changes: 19 additions & 16 deletions packages/desktop/static/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"taskList": "Liste de tâches",
"looseListItem": "Élément de liste lâche",
"horizontalRule": "Règle horizontale",
"frontMatter": "Métadonnées"
"frontMatter": "Front Matter"
},
"window": {
"title": "Fenêtre",
Expand Down Expand Up @@ -241,7 +241,9 @@
"openFolder": "Ouvrir un dossier"
},
"toc": {
"title": "Table des matières"
"title": "Table des matières",
"expandAll": "Tout développer",
"collapseAll": "Tout réduire"
},
"icons": {
"files": "Fichiers",
Expand Down Expand Up @@ -497,6 +499,7 @@
"german": "Deutsch",
"japanese": "日本語",
"korean": "한국어",
"dutch": "Nederlands",
"portuguese": "Português",
"turkish": "Türkçe"
}
Expand Down Expand Up @@ -579,7 +582,7 @@
},
"uploader": {
"title": "Téléchargeur d'images",
"currentUploader": "Téléchargeur actuel",
"currentUploader": "Téléverseur actuel : {name}",
"picgoNotInstalled": "PicGo non installé",
"picgoInstalled": "PicGo installé",
"picgoDetectionFailed": "Échec de la détection PicGo",
Expand Down Expand Up @@ -699,7 +702,7 @@
"online": "En ligne",
"saveError": "Erreur lors de l'enregistrement des raccourcis clavier",
"shortcutInUse": "Raccourci en cours d'utilisation",
"shortcutInUseMessage": "Ce raccourci est déjà assigné à une autre commande",
"shortcutInUseMessage": "Ce raccourci est déjà assigné à {accelerator}",
"table": {
"description": "Description",
"edit": "Modifier",
Expand Down Expand Up @@ -728,7 +731,7 @@
}
},
"about": {
"copyright": "Droits d'auteur",
"copyright": "Copyright © Luo Ran 2017-{year}",
"copyrightContributors": "Contributeurs aux droits d'auteur"
},
"commands": {
Expand Down Expand Up @@ -801,7 +804,7 @@
"looseListItem": "Élément de liste lâche",
"paragraph": "Paragraphe",
"horizontalLine": "Ligne horizontale",
"frontMatter": "Métadonnées",
"frontMatter": "Front Matter",
"resetParagraph": "Réinitialiser le paragraphe",
"mathBlock": "Bloc mathématique",
"horizontalRule": "Ligne horizontale"
Expand Down Expand Up @@ -881,7 +884,7 @@
"close": "Fermer",
"dontSave": "Ne pas enregistrer",
"file": "Fichier",
"fileExists": "Le fichier existe",
"fileExists": "Le fichier existe déjà : {filename}",
"files": "Fichiers",
"importWarning": "Avertissement d'importation",
"installPandoc": "Installer Pandoc",
Expand All @@ -898,12 +901,12 @@
"error": {
"configSchemaViolation": "Violation du schéma de configuration",
"copyError": "Erreur de copie",
"initializationFailed": "Échec de l'initialisation",
"initializationFailed": "Échec de l'initialisation {hint}",
"otherInstanceDetected": "Une autre instance de MarkText détectée en cours d'exécution",
"report": "Signaler",
"startupError": "Erreur de démarrage",
"terminatedDueToError": "Terminé en raison d'une erreur",
"unexpectedErrorWithMessage": "Message d'erreur inattendue",
"unexpectedErrorWithMessage": "Erreur inattendue : {message}",
"unexpectedMainProcess": "Erreur inattendue du processus principal",
"unexpectedRendererProcess": "Erreur inattendue du processus de rendu"
},
Expand All @@ -915,7 +918,7 @@
"editor": {
"anchorLinkCopied": "Lien d'ancrage copié",
"tabNotFound": "Onglet introuvable",
"tocItemNotFound": "Élément de table des matières introuvable",
"tocItemNotFound": "Élément de la table des matières {key} introuvable",
"errorLoadingTabTitle": "Erreur lors du chargement de l’onglet",
"errorLoadingTabMessage": "Une erreur s’est produite lors du chargement de la modification du fichier car l’onglet est introuvable.",
"mixedLineEndingsNormalized": "« {name} » contient des fins de ligne mixtes qui ont été automatiquement normalisées en {lineEnding}.",
Expand All @@ -935,8 +938,8 @@
"editor": {
"export": {
"error": "Erreur d'exportation",
"errorExporting": "Erreur lors de l'exportation du fichier",
"failed": "Échec de l'exportation"
"errorExporting": "Erreur lors de l'exportation du fichier {type}",
"failed": "Échec de l'exportation {type}"
},
"insertTable": {
"title": "Insérer un tableau",
Expand All @@ -947,7 +950,7 @@
"notificationNotFound": "Notification introuvable"
},
"print": {
"error": "Erreur d'impression",
"error": "Erreur d'impression pour \"{title}\"",
"failed": "Échec de l'impression"
},
"sourceCode": {
Expand All @@ -956,9 +959,9 @@
},
"spellcheck": {
"disabledError": "Erreur de désactivation de la vérification orthographique",
"errorSwitchingLanguage": "Erreur lors du changement de langue de vérification orthographique",
"languageMissing": "Langue de vérification orthographique manquante",
"switchError": "Erreur de changement de vérification orthographique",
"errorSwitchingLanguage": "Erreur lors du changement de langue du correcteur {languageCode}",
"languageMissing": "Langue du correcteur manquante {languageCode}",
"switchError": "Erreur de changement du correcteur pour {languageCode}, {error}",
"title": "Vérification orthographique"
}
}
Expand Down
31 changes: 17 additions & 14 deletions packages/desktop/static/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@
"openFolder": "フォルダを開く"
},
"toc": {
"title": "目次"
"title": "目次",
"expandAll": "すべて展開",
"collapseAll": "すべて折りたたむ"
},
"icons": {
"files": "ファイル",
Expand Down Expand Up @@ -497,6 +499,7 @@
"german": "Deutsch",
"japanese": "日本語",
"korean": "한국어",
"dutch": "Nederlands",
"portuguese": "Português",
"turkish": "Türkçe"
}
Expand Down Expand Up @@ -579,7 +582,7 @@
},
"uploader": {
"title": "画像アップローダー",
"currentUploader": "現在のアップローダー",
"currentUploader": "現在のアップローダー: {name}",
"picgoNotInstalled": "PicGoがインストールされていません",
"picgoInstalled": "PicGoがインストールされています",
"picgoDetectionFailed": "PicGo検出に失敗しました",
Expand Down Expand Up @@ -699,7 +702,7 @@
"online": "オンライン",
"saveError": "キーバインドの保存エラー",
"shortcutInUse": "ショートカットが使用中",
"shortcutInUseMessage": "このショートカットは既に別のコマンドに割り当てられています",
"shortcutInUseMessage": "このショートカットは既に {accelerator} に割り当てられています",
"table": {
"description": "説明",
"edit": "編集",
Expand Down Expand Up @@ -728,7 +731,7 @@
}
},
"about": {
"copyright": "著作権",
"copyright": "Copyright © Luo Ran 2017-{year}",
"copyrightContributors": "著作権貢献者"
},
"commands": {
Expand Down Expand Up @@ -881,7 +884,7 @@
"close": "閉じる",
"dontSave": "保存しない",
"file": "ファイル",
"fileExists": "ファイルが存在します",
"fileExists": "ファイルが既に存在します: {filename}",
"files": "ファイル",
"importWarning": "インポート警告",
"installPandoc": "Pandocをインストール",
Expand All @@ -898,12 +901,12 @@
"error": {
"configSchemaViolation": "設定スキーマ違反",
"copyError": "コピーエラー",
"initializationFailed": "初期化に失敗",
"initializationFailed": "初期化に失敗しました {hint}",
"otherInstanceDetected": "MarkTextの別のインスタンスが既に実行中です",
"report": "報告",
"startupError": "起動エラー",
"terminatedDueToError": "エラーにより終了",
"unexpectedErrorWithMessage": "予期しないエラーメッセージ",
"unexpectedErrorWithMessage": "予期しないエラー: {message}",
"unexpectedMainProcess": "予期しないメインプロセスエラー",
"unexpectedRendererProcess": "予期しないレンダラープロセスエラー"
},
Expand All @@ -915,7 +918,7 @@
"editor": {
"anchorLinkCopied": "アンカーリンクがコピーされました",
"tabNotFound": "タブが見つかりません",
"tocItemNotFound": "目次アイテムが見つかりません",
"tocItemNotFound": "目次項目 {key} が見つかりません",
"errorLoadingTabTitle": "タブの読み込みエラー",
"errorLoadingTabMessage": "ファイル変更の読み込み中にエラーが発生しました。タブが見つかりません。",
"mixedLineEndingsNormalized": "「{name}」には混在した改行コードが含まれており、{lineEnding} に自動正規化されました。",
Expand All @@ -935,8 +938,8 @@
"editor": {
"export": {
"error": "エクスポートエラー",
"errorExporting": "ファイルのエクスポート中にエラーが発生しました",
"failed": "エクスポートに失敗しました"
"errorExporting": "{type} ファイルのエクスポートエラー",
"failed": "{type} エクスポートに失敗しました"
},
"insertTable": {
"title": "表を挿入",
Expand All @@ -947,7 +950,7 @@
"notificationNotFound": "通知が見つかりません"
},
"print": {
"error": "印刷エラー",
"error": "\"{title}\" の印刷エラー",
"failed": "印刷に失敗しました"
},
"sourceCode": {
Expand All @@ -956,9 +959,9 @@
},
"spellcheck": {
"disabledError": "スペルチェックの無効化エラー",
"errorSwitchingLanguage": "スペルチェック言語の切り替えエラー",
"languageMissing": "スペルチェック言語が見つかりません",
"switchError": "スペルチェックの切り替えエラー",
"errorSwitchingLanguage": "スペルチェック言語の切り替えエラー {languageCode}",
"languageMissing": "スペルチェック言語が見つかりません {languageCode}",
"switchError": "{languageCode} のスペルチェック切り替えエラー、{error}",
"title": "スペルチェック"
}
}
Expand Down
Loading
Loading