From 040b8f86101cba327d582ee85b5e7a3b8d369f59 Mon Sep 17 00:00:00 2001 From: Coldsewoo Date: Fri, 17 Jan 2020 23:42:01 +0900 Subject: [PATCH] Added Korean language support --- README.md | 2 +- demo/main.js | 2 +- src/i18n/index.ts | 4 +- src/i18n/ko/index.ts | 135 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+), 3 deletions(-) create mode 100644 src/i18n/ko/index.ts diff --git a/README.md b/README.md index 3255734..6b49833 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/demo/main.js b/demo/main.js index 1ec66d6..44f8127 100644 --- a/demo/main.js +++ b/demo/main.js @@ -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 } }) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 253d578..95ec5b8 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -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' @@ -26,7 +27,8 @@ export const dictionary = { he, nl, ja, - de + de, + ko } export function getCurrentLang () { diff --git a/src/i18n/ko/index.ts b/src/i18n/ko/index.ts new file mode 100644 index 0000000..c78946d --- /dev/null +++ b/src/i18n/ko/index.ts @@ -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: '적용' + } + } + } + } +}