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(i18n): id translation #289

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
2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { MAIN_MODULE } from './config'

const vuetify = new Vuetify({
lang: {
current: 'en' // en | es | fr | pl | ru | uk | ptbr | tr | he | nl | ja | de | ko | zhHans | fa | sv | cs | it | el
current: 'en' // en | es | fr | pl | ru | uk | ptbr | tr | he | nl | ja | de | ko | zhHans | fa | sv | cs | it | el | id
}
})

Expand Down
146 changes: 146 additions & 0 deletions src/i18n/id/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
export default {
extensions: {
Blockquote: {
buttons: {
blockquote: {
tooltip: 'Blok kutipan'
}
}
},
Bold: {
buttons: {
bold: {
tooltip: 'Tebal'
}
}
},
BulletList: {
buttons: {
bulletList: {
tooltip: 'Daftar poin'
}
}
},
Code: {
buttons: {
code: {
tooltip: 'Kode'
}
}
},
CodeBlock: {
buttons: {
codeBlock: {
tooltip: 'Blok Kode'
}
}
},
History: {
buttons: {
undo: {
tooltip: 'Urungkan'
},
redo: {
tooltip: 'Ulangi'
}
}
},
HorizontalRule: {
buttons: {
horizontalRule: {
tooltip: 'Garis horizontal'
}
}
},
Italic: {
buttons: {
italic: {
tooltip: 'Miring'
}
}
},
OrderedList: {
buttons: {
orderedList: {
tooltip: 'Penomoran'
}
}
},
Paragraph: {
buttons: {
paragraph: {
tooltip: 'Paragraf'
}
}
},
Strike: {
buttons: {
strike: {
tooltip: 'Coret'
}
}
},
Underline: {
buttons: {
underline: {
tooltip: 'Garis bawah'
}
}
},
Heading: {
buttons: {
heading: {
tooltip: ({ level }) => 'Judul tingkat ' + level
}
}
},
Link: {
buttons: {
isActive: {
tooltip: 'Ubah Tautan'
},
notActive: {
tooltip: 'Tambah Tautan'
}
},
window: {
title: 'Pengaturan Link',
form: {
hrefLabel: 'URL'
},
buttons: {
close: 'Tutup',
remove: 'Hapus',
apply: 'Terapkan'
}
}
},
Image: {
buttons: {
tooltip: 'Gambar'
},
window: {
title: 'Tambah Gambar',
form: {
sourceLink: 'URL Gambar',
altText: 'Teks Alternatif',
addImage: 'Tambah Gambar'
},
imageUpload: {
instruction: 'Pilih atau geser file ke sini.'
},
buttons: {
close: 'Tutup',
apply: 'Terapkan'
}
}
},
TodoList: {
buttons: {
todoList: {
tooltip: 'Daftar Tugas'
}
}
}
}
}
4 changes: 3 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import sv from './sv'
import cs from './cs'
import it from './it'
import el from './el'
import id from './id'

import ConsoleLogger from '~/logging/ConsoleLogger'
import { TiptapVuetifyPlugin } from '~/main'
Expand All @@ -42,7 +43,8 @@ export const dictionary = {
sv,
cs,
it,
el
el,
id
}

export function getCurrentLang () {
Expand Down