Skip to content

Commit

Permalink
feat(vssue): add id-ID language
Browse files Browse the repository at this point in the history
Signed-off-by: Khusika Dhamar Gusti <[email protected]>
  • Loading branch information
khusika committed Mar 25, 2023
1 parent 90ca68b commit 44c85b8
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/docs/src/options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ The common pattern of repository's URL is `` `${baseURL}/${owner}/${repo}` ``:
- `'he'` (`'he-IL'`)
- `'ko'` (`'ko-KR'`)
- `'fr'` (`'fr-FR'`)
- `'id'` (`'id-ID'`)

Contributions welcome for more languages support.
:::
Expand Down
1 change: 1 addition & 0 deletions packages/docs/src/zh/options/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ Vue.use(Vssue, {
- `'he'` (`'he-IL'`)
- `'ko'` (`'ko-KR'`)
- `'fr'` (`'fr-FR'`)
- `'id'` (`'id-ID'`)

欢迎贡献代码帮助 Vssue 支持更多语言。
:::
Expand Down
3 changes: 3 additions & 0 deletions packages/vssue/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import jaJP from './langs/ja-JP';
import heIL from './langs/he-IL';
import koKR from './langs/ko-KR';
import frFR from './langs/fr-FR';
import idID from './langs/id-ID';

if (!Object.prototype.hasOwnProperty.call(Vue, '$i18n')) {
Vue.use(VueI18n);
Expand All @@ -32,6 +33,8 @@ const i18n: VueI18n = new VueI18n({
'ko-KR': koKR,
fr: frFR,
'fr-FR': frFR,
id: idID,
'id-ID': idID,
},
});

Expand Down
54 changes: 54 additions & 0 deletions packages/vssue/src/i18n/langs/id-ID.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import VueI18n from 'vue-i18n';

const messages: VueI18n.LocaleMessageObject = {
// auth
login: 'Masuk dengan {platform}',
logout: 'Keluar',
currentUser: 'Pengguna Saat Ini',

// comment input
loading: 'Memuat',
submit: 'Kirim',
submitting: 'Mengirim',
submitComment: 'Kirim Komentar',
cancel: 'Batalkan',
edit: 'Sunting',
editMode: 'Mode Menyunting',
delete: 'Hapus',
reply: 'Balas',

// reactions
heart: 'Heart',
like: 'Like',
unlike: 'Unlike',

// pagination
perPage: 'Komentar per halaman',
sort: 'Klik untuk mengubah arah pengurutan',
page: 'Halaman',
prev: 'Halaman Sebelumnya',
next: 'Halaman Sesudahnya',

// hint
comments: 'Komentar | {count} Komentar | {count} Komentar',
loginToComment: 'Masuk dengan {platform} akun untuk meniggalkan komentar',
placeholder:
'Tinggalkan komentar. Mendukung gaya penulisan Markdown. Ctrl + Enter untuk mengirim.',
noLoginPlaceHolder:
'Tinggalkan komentar. Mendukung gaya penulisan Markdown. ',

// status
failed: 'Gagal untuk memuat komentar',
initializing: 'Inisialisasi...',
issueNotCreated: 'Klik untuk membuat isu',
loadingComments: 'Memuat komentar...',
loginRequired: 'Masuk untuk melihat komentar',
noComments: 'Belum ada komentar. Tinggalkan komentar pertama !',

// alerts
reactionGiven: `Reaksi '{reaction}' sudah diberikan`,
deleteConfirm: 'Konfirmasi untuk menghapus komentar ini ?',
deleteFailed: 'Gagal untuk menghapus komentar',
};

export default messages;

0 comments on commit 44c85b8

Please sign in to comment.