Skip to content

Instantly share code, notes, and snippets.

@xiegeo
Created May 21, 2019 22:21
Show Gist options
  • Save xiegeo/9c97d54621f9a48ee72ff8a7d405d1f6 to your computer and use it in GitHub Desktop.
Save xiegeo/9c97d54621f9a48ee72ff8a7d405d1f6 to your computer and use it in GitHub Desktop.
Quilljs 1.x Chinese Traditional Translation
<!-- tested with quill v1.3.6, vue-quill v1.5.1 -->
<!-- todo: translation of placeholders -->
<!-- good to have: translation of other modules -->
<style src="../../../node_modules/quill/dist/quill.snow.css"></style>
<style>
.ql-toolbar.ql-snow .ql-formats {
margin-right: 28px; /* line up end of section with size of block */
}
.ql-snow .ql-picker.ql-size {
width: 56px; /* line up size selector with 2x button size */
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="small"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="small"]::before {
content: "小號";
}
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
content: "中號";
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="large"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="large"]::before {
content: "大號";
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="huge"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="huge"]::before {
content: "巨號";
}
.ql-snow .ql-tooltip::before {
content: "連接:";
}
.ql-snow .ql-tooltip a.ql-action::after {
content: "編輯";
}
.ql-snow .ql-tooltip a.ql-remove::before {
content: "刪除";
}
.ql-snow .ql-tooltip[data-mode="video"]::before {
content: "視頻:";
}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
content: "保存";
}
</style>
@xiegeo
Copy link
Author

xiegeo commented May 21, 2019

Solution for slab/quill#1354

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment