Skip to content
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

feat(vssue): add id-ID language #166

Open
wants to merge 1 commit 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
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;