From 7d4c75b1c5ea4ea3d4ccf93491180aa0891a1481 Mon Sep 17 00:00:00 2001 From: Athaariq Ardhiansyah Date: Tue, 12 Jan 2021 18:31:00 +0700 Subject: [PATCH 1/5] fix: Bind Italian locale --- src/editor/locales/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/locales/index.js b/src/editor/locales/index.js index 6643034..2dd4a87 100644 --- a/src/editor/locales/index.js +++ b/src/editor/locales/index.js @@ -12,4 +12,5 @@ export default { english, portuguese, spanish, + italian, } From 5fc23ea14eb49093edc52e2415a6ebf57524af6e Mon Sep 17 00:00:00 2001 From: Athaariq Ardhiansyah Date: Tue, 12 Jan 2021 18:49:21 +0700 Subject: [PATCH 2/5] fix: Add German import --- src/editor/locales/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/locales/index.js b/src/editor/locales/index.js index 2dd4a87..468931c 100644 --- a/src/editor/locales/index.js +++ b/src/editor/locales/index.js @@ -1,5 +1,6 @@ import dutch from "./dutch"; import hungarian from "./hungarian"; +import german from "./german"; import english from "./english"; import portuguese from "./portuguese"; import italian from "./italian"; From 0a98d34e71168887511ce9623770ff453f854b2b Mon Sep 17 00:00:00 2001 From: Athaariq Ardhiansyah Date: Tue, 12 Jan 2021 18:53:12 +0700 Subject: [PATCH 3/5] chore: Revert back to default locale --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index b6c5fe0..3565d97 100644 --- a/src/main.js +++ b/src/main.js @@ -6,7 +6,7 @@ Vue.use(wysiwyg, { hideModules: { bold: false, }, - locale: 'hu' + locale: 'en' }); new Vue({ From 018494657ba6c5142c63b309a7b819d95e1b88bc Mon Sep 17 00:00:00 2001 From: Athaariq Ardhiansyah Date: Tue, 12 Jan 2021 18:54:07 +0700 Subject: [PATCH 4/5] feat: Add Indonesian locale --- src/editor/locales/index.js | 2 ++ src/editor/locales/indonesia.js | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/editor/locales/indonesia.js diff --git a/src/editor/locales/index.js b/src/editor/locales/index.js index 468931c..8b4483b 100644 --- a/src/editor/locales/index.js +++ b/src/editor/locales/index.js @@ -3,6 +3,7 @@ import hungarian from "./hungarian"; import german from "./german"; import english from "./english"; import portuguese from "./portuguese"; +import indonesia from './indonesia'; import italian from "./italian"; import spanish from "./spanish"; @@ -13,5 +14,6 @@ export default { english, portuguese, spanish, + indonesia, italian, } diff --git a/src/editor/locales/indonesia.js b/src/editor/locales/indonesia.js new file mode 100644 index 0000000..480bafc --- /dev/null +++ b/src/editor/locales/indonesia.js @@ -0,0 +1,20 @@ +module.exports = { + locale_name: 'Bahasa Indonesia', + locale_shorthand: ['id', 'indonesia'], + // Translations: + justifyCenter: 'Tengah', + justifyLeft: 'Rata Kiri', + justifyRight: 'Rata Kanan', + bold: 'Tebalkan', + code: 'Kodingan', + headings: 'Judul (h1-h6)', + link: 'Tautan', + image: 'Tambahkan Gambar', + italic: 'Miringkan', + orderedList: 'Daftar Berurutan (1, 2, 3, ...)', + unorderedList: 'Daftar Tak Berurutan', + removeFormat: 'Hapus pemformatan.\nTermasuk gaya judul, teks tebal, miring, bergaris bawah, dll.', + separator: null, + table: 'Tambahkan Tabel', + underline: 'Garis Bawah' +} From 66b74b40fc52eceef084bfd8fa9697847424dd0f Mon Sep 17 00:00:00 2001 From: Athaariq Ardhiansyah Date: Tue, 12 Jan 2021 19:01:14 +0700 Subject: [PATCH 5/5] docs: Add missing locale + alphabet sort Previously, there are numbers of locale not listed yet on the documentation. So I add and sort them alphabetically for fairness purpose. --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed86af6..af83798 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,14 @@ Available Modules: - separator Available Locales: - - english (default) - - hungarian - - dutch - - german + - dutch (nl) + - english (en) **(default)** + - german (de) + - hungarian (hu) + - indonesia (id) + - italian (it) + - portuguese (pt) + - spanish (es) Note on the image upload API endpoint: - Image is uploaded by `multipart/form-data`