Skip to content

Commit c5c3890

Browse files
committed
feat(vssue): add id-ID language (#166)
Signed-off-by: Khusika Dhamar Gusti <[email protected]>
1 parent 90ca68b commit c5c3890

File tree

4 files changed

+59
-0
lines changed

4 files changed

+59
-0
lines changed

packages/docs/src/options/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ The common pattern of repository's URL is `` `${baseURL}/${owner}/${repo}` ``:
235235
- `'he'` (`'he-IL'`)
236236
- `'ko'` (`'ko-KR'`)
237237
- `'fr'` (`'fr-FR'`)
238+
- `'id'` (`'id-ID'`)
238239

239240
Contributions welcome for more languages support.
240241
:::

packages/docs/src/zh/options/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ Vue.use(Vssue, {
235235
- `'he'` (`'he-IL'`)
236236
- `'ko'` (`'ko-KR'`)
237237
- `'fr'` (`'fr-FR'`)
238+
- `'id'` (`'id-ID'`)
238239

239240
欢迎贡献代码帮助 Vssue 支持更多语言。
240241
:::

packages/vssue/src/i18n/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import jaJP from './langs/ja-JP';
88
import heIL from './langs/he-IL';
99
import koKR from './langs/ko-KR';
1010
import frFR from './langs/fr-FR';
11+
import idID from './langs/id-ID';
1112

1213
if (!Object.prototype.hasOwnProperty.call(Vue, '$i18n')) {
1314
Vue.use(VueI18n);
@@ -32,6 +33,8 @@ const i18n: VueI18n = new VueI18n({
3233
'ko-KR': koKR,
3334
fr: frFR,
3435
'fr-FR': frFR,
36+
id: idID,
37+
'id-ID': idID,
3538
},
3639
});
3740

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import VueI18n from 'vue-i18n';
2+
3+
const messages: VueI18n.LocaleMessageObject = {
4+
// auth
5+
login: 'Masuk dengan {platform}',
6+
logout: 'Keluar',
7+
currentUser: 'Pengguna Saat Ini',
8+
9+
// comment input
10+
loading: 'Memuat',
11+
submit: 'Kirim',
12+
submitting: 'Mengirim',
13+
submitComment: 'Kirim Komentar',
14+
cancel: 'Batalkan',
15+
edit: 'Sunting',
16+
editMode: 'Mode Menyunting',
17+
delete: 'Hapus',
18+
reply: 'Balas',
19+
20+
// reactions
21+
heart: 'Heart',
22+
like: 'Like',
23+
unlike: 'Unlike',
24+
25+
// pagination
26+
perPage: 'Komentar per halaman',
27+
sort: 'Klik untuk mengubah arah pengurutan',
28+
page: 'Halaman',
29+
prev: 'Halaman Sebelumnya',
30+
next: 'Halaman Sesudahnya',
31+
32+
// hint
33+
comments: 'Komentar | {count} Komentar | {count} Komentar',
34+
loginToComment: 'Masuk dengan {platform} akun untuk meniggalkan komentar',
35+
placeholder:
36+
'Tinggalkan komentar. Mendukung gaya penulisan Markdown. Ctrl + Enter untuk mengirim.',
37+
noLoginPlaceHolder:
38+
'Tinggalkan komentar. Mendukung gaya penulisan Markdown. ',
39+
40+
// status
41+
failed: 'Gagal untuk memuat komentar',
42+
initializing: 'Inisialisasi...',
43+
issueNotCreated: 'Klik untuk membuat isu',
44+
loadingComments: 'Memuat komentar...',
45+
loginRequired: 'Masuk untuk melihat komentar',
46+
noComments: 'Belum ada komentar. Tinggalkan komentar pertama !',
47+
48+
// alerts
49+
reactionGiven: `Reaksi '{reaction}' sudah diberikan`,
50+
deleteConfirm: 'Konfirmasi untuk menghapus komentar ini ?',
51+
deleteFailed: 'Gagal untuk menghapus komentar',
52+
};
53+
54+
export default messages;

0 commit comments

Comments
 (0)