Skip to content

Commit

Permalink
feat: add Traditional Chinese (zh_TW). (#370)
Browse files Browse the repository at this point in the history
* feat: add Traditional Chinese (zh_TW).

* fix: remove unused text
  • Loading branch information
ray1007 authored and sohee-lee7 committed Jan 31, 2019
1 parent d4722ab commit ed078b0
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ import './langs/fi_FI';
import './langs/cs_CZ';
import './langs/ar_AR';
import './langs/pl_PL';
import './langs/zh_TW';

const __nedInstance = [];
const gaTrackingId = 'UA-129966929-1';
Expand Down
7 changes: 7 additions & 0 deletions src/js/extensions/table/langs.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,11 @@ if (i18n) {
'Cannot change part of merged cell': 'Nie można zmienić części scalonej komórki.',
'Cannot paste row merged cells into the table header': 'Nie można wkleić komórek o scalonym rzędzie w nagłówek tabeli.'
});

i18n.setLanguage(['zh', 'zh_TW'], {
'Merge cells': '合併儲存格',
'Unmerge cells': '取消合併儲存格',
'Cannot change part of merged cell': '無法變更儲存格的一部分。',
'Cannot paste row merged cells into the table header': '無法將合併的儲存格貼上至表格標題中。'
});
}
52 changes: 52 additions & 0 deletions src/js/langs/zh_TW.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* @fileoverview I18N for Traditional Chinese
* @author Tzu-Ray Su <raysu3329@gmail.com>
*/
import i18n from '../i18n';

i18n.setLanguage(['zh', 'zh_TW'], {
'Markdown': 'Markdown',
'WYSIWYG': '所見即所得',
'Write': '編輯',
'Preview': '預覽',
'Headings': '標題',
'Paragraph': '內文',
'Bold': '粗體',
'Italic': '斜體',
'Strike': '刪除線',
'Code': '內嵌程式碼',
'Line': '分隔線',
'Blockquote': '引言',
'Unordered list': '項目符號清單',
'Ordered list': '編號清單',
'Task': '核取方塊清單',
'Indent': '增加縮排',
'Outdent': '減少縮排',
'Insert link': '插入超連結',
'Insert CodeBlock': '插入程式碼區塊',
'Insert table': '插入表格',
'Insert image': '插入圖片',
'Heading': '標題',
'Image URL': '圖片網址',
'Select image file': '選擇圖片檔案',
'Description': '描述',
'OK': '確認',
'More': '更多',
'Cancel': '取消',
'File': '檔案',
'URL': 'URL',
'Link text': '超連結文字',
'Add row': '增加行',
'Add col': '增加列',
'Remove row': '刪除行',
'Remove col': '刪除列',
'Align left': '靠左對齊',
'Align center': '置中',
'Align right': '靠右對齊',
'Remove table': '刪除表格',
'Would you like to paste as table?': '您要以表格貼上嗎?',
'Text color': '文字顏色',
'Auto scroll enabled': '已啟用自動滾動',
'Auto scroll disabled': '已停用自動滾動',
'Choose language': '選擇語言'
});

0 comments on commit ed078b0

Please sign in to comment.