feat: add both simplified & traditional Chinese (#30)

Chinese words using default font seems a little bit weird, so I rewrite the 'font-family' rule and add 3 fonts for OS compatibility. By the way,  I also update languages.html for your convenience.
This commit is contained in:
ETBox 2020-07-03 13:29:59 +08:00 committed by GitHub
parent 04497134ca
commit 1cbe025b2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

5
lang/zh-hans.css Normal file
View File

@ -0,0 +1,5 @@
:lang(zh-hans) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; }
:lang(zh-hans) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; }
:lang(zh-hans) .proof::before { content: '证明:' attr(title) !important; font-style: normal; }
:lang(zh-hans) .definition::before { content: '定义 ' counter(definition) '. ' !important; }
:lang(zh-hans) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; }

5
lang/zh-hant.css Normal file
View File

@ -0,0 +1,5 @@
:lang(zh-hant) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; }
:lang(zh-hant) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; }
:lang(zh-hant) .proof::before { content: '證明:' attr(title) !important; font-style: normal; }
:lang(zh-hant) .definition::before { content: '定義 ' counter(definition) '. ' !important; }
:lang(zh-hant) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; }

View File

@ -49,6 +49,8 @@
<option value="mwl">Mirandese (mwl)</option>
<option value="pt">Portuguese (pt)</option>
<option value="ro">Romanian (ro)</option>
<option value="zh-hans">Simplified Chinese (zh-hans)</option>
<option value="zh-hant">Traditional Chinese (zh-hant)</option>
</select>
<div id="wrapper">