Skip to content

Commit

Permalink
feat(i18n): added Korean language support
Browse files Browse the repository at this point in the history
Added Korean language support

Re #129
  • Loading branch information
iliyaZelenko committed Jan 25, 2020
2 parents 54c14c0 + 040b8f8 commit 9826b7c
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ If you have Vuetify `1.x` (not `2.x`), then you can find docs and demo [here](ht

- used vuetify components
- support for different types of icons ([fa](https://fontawesome.com/), [md](https://material.io/tools/icons/), [mdi](https://materialdesignicons.com/), [mdiSvg](https://vuetifyjs.com/en/customization/icons#install-material-design-icons-js-svg))
- internationalization (en, es, fr, pl, ru, uk, ptbr, tr, he, nl, ja, de), with automatic detection of the current language through the Vuetify. You can make a PR for your language if it is not there, [here](https://github.com/iliyaZelenko/tiptap-vuetify/pull/118/files) is an example.
- internationalization (en, es, fr, pl, ru, uk, ptbr, tr, he, nl, ja, de, ko), with automatic detection of the current language through the Vuetify. You can make a PR for your language if it is not there, [here](https://github.com/iliyaZelenko/tiptap-vuetify/pull/118/files) is an example.
- markdown support
- easy to start using
- props and events are available
Expand Down
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
current: 'en' // en | es | fr | pl | ru | uk | ptbr | tr | he | nl | ja | de | ko
}
})

Expand Down
4 changes: 3 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import he from './he'
import nl from './nl'
import ja from './ja'
import de from './de'
import ko from './ko'
import ConsoleLogger from '~/logging/ConsoleLogger'
import { TiptapVuetifyPlugin } from '~/main'

Expand All @@ -26,7 +27,8 @@ export const dictionary = {
he,
nl,
ja,
de
de,
ko
}

export function getCurrentLang () {
Expand Down
135 changes: 135 additions & 0 deletions src/i18n/ko/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
export default {
extensions: {
Blockquote: {
buttons: {
blockquote: {
tooltip: '인용'
}
}
},
Bold: {
buttons: {
bold: {
tooltip: '굵게'
}
}
},
BulletList: {
buttons: {
bulletList: {
tooltip: '글머리 기호'
}
}
},
Code: {
buttons: {
code: {
tooltip: '코드'
}
}
},
CodeBlock: {
buttons: {
codeBlock: {
tooltip: '코드 블록'
}
}
},
History: {
buttons: {
undo: {
tooltip: '입력 취소'
},
redo: {
tooltip: '입력 다시 실행'
}
}
},
HorizontalRule: {
buttons: {
horizontalRule: {
tooltip: '수평선'
}
}
},
Italic: {
buttons: {
italic: {
tooltip: '기울임꼴'
}
}
},
OrderedList: {
buttons: {
orderedList: {
tooltip: '번호 매기기'
}
}
},
Paragraph: {
buttons: {
paragraph: {
tooltip: '단락'
}
}
},
Strike: {
buttons: {
strike: {
tooltip: '취소선'
}
}
},
Underline: {
buttons: {
underline: {
tooltip: '밑줄'
}
}
},
Heading: {
buttons: {
heading: {
tooltip: ({ level }) => '헤딩 ' + level
}
}
},
Link: {
buttons: {
isActive: {
tooltip: '링크 변경'
},
notActive: {
tooltip: '링크 추가'
}
},
window: {
title: '링크 편집',
form: {
hrefLabel: '링크'
},
buttons: {
close: '닫기',
remove: '삭제',
apply: '적용'
}
}
},
Image: {
buttons: {
tooltip: '이미지'
},
window: {
title: '이미지 추가',
or: '또는',
form: {
sourceLink: '이미지 URL'
},
buttons: {
close: '닫기',
apply: '적용'
}
}
}
}
}

0 comments on commit 9826b7c

Please sign in to comment.