Skip to content

Add Indonesia Locale + Fixed Missing Import #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 4 additions & 0 deletions src/editor/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import dutch from "./dutch";
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";

Expand All @@ -12,4 +14,6 @@ export default {
english,
portuguese,
spanish,
indonesia,
italian,
}
20 changes: 20 additions & 0 deletions src/editor/locales/indonesia.js
Original file line number Diff line number Diff line change
@@ -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'
}
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Vue.use(wysiwyg, {
hideModules: {
bold: false,
},
locale: 'hu'
locale: 'en'
});

new Vue({
Expand Down