Skip to content

Commit

Permalink
Merge pull request #70 from FirokOtaku/master
Browse files Browse the repository at this point in the history
Add Simplified Chinese translation
  • Loading branch information
yoksel authored Aug 15, 2023
2 parents d567b2f + 4b05fb4 commit 2c31ea6
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 8 deletions.
4 changes: 4 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const translates = [
dest: `${SERVER_ROOT}ru`,
url: `./src/translate/ru.json`
},
{
dest: `${SERVER_ROOT}zh-cn`,
url: `./src/translate/zh-cn.json`
},
{
dest: `${SERVER_ROOT}zh-tw`,
url: `./src/translate/zh-tw.json`
Expand Down
9 changes: 5 additions & 4 deletions src/translate/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"twitter": "yoksel_en",
"langs": [
"<a>En</a>",
"<a href=\"./pt\">Br</a>",
"<a href=\"./ru\">Рус</a>",
"<a href=\"./zh-tw\">Tc</a>",
"<a href=\"./tr\">Tr</a>"
"<a href=\"../pt\">Br</a>",
"<a href=\"../ru\">Рус</a>",
"<a href=\"../zh-cn\">简中</a>",
"<a href=\"../zh-tw\">繁中</a>",
"<a href=\"../tr\">Tr</a>"
],
"decodeTip": "You may place encoded SVG here to decode it back"
}
3 changes: 2 additions & 1 deletion src/translate/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"<a href=\"../\">En</a>",
"<a>Br</a>",
"<a href=\"../ru\">Рус</a>",
"<a href=\"../zh-tw\">Tc</a>",
"<a href=\"../zh-cn\">简中</a>",
"<a href=\"../zh-tw\">繁中</a>",
"<a href=\"../tr\">Tr</a>"
],
"decodeTip": "Você pode colocar um SVG codificado aqui para decodificar de volta."
Expand Down
3 changes: 2 additions & 1 deletion src/translate/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"<a href=\"../\">En</a>",
"<a href=\"../pt\">Br</a>",
"<a>Рус</a>",
"<a href=\"../zh-tw\">Tc</a>",
"<a href=\"../zh-cn\">简中</a>",
"<a href=\"../zh-tw\">繁中</a>",
"<a href=\"../tr\">Tr</a>"
],
"decodeTip": "Сюда можно вставить закодированный SVG, чтобы раскодировать его обратно"
Expand Down
3 changes: 2 additions & 1 deletion src/translate/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"<a href=\"../\">En</a>",
"<a href=\"../pt\">Br</a>",
"<a href=\"../ru\">Рус</a>",
"<a href=\"../zh-tw\">Tc</a>",
"<a href=\"../zh-cn\">简中</a>",
"<a href=\"../zh-tw\">繁中</a>",
"<a>Tr</a>"
],
"decodeTip": "Dönüştürülmüş SVG kodunuzu eski haline çevirmek için buraya yapıştırabilirsiniz"
Expand Down
30 changes: 30 additions & 0 deletions src/translate/zh-cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"path": "..",
"title": "用于 SVG 的 URL-encoder",
"quotes": "引号 ",
"single": "单引号",
"double": "双引号",
"aboutTitle": "关于此工具",
"aboutText": "<p>不进行编码的话,我们可以以 <code>data URI</code> 形式在 CSS 中直接使用 SVG,但这仅在基于 Webkit 的浏览器中有效;如果用 <code>encodeURIComponent()</code> 对 SVG 编码,就可在全部地方都生效。</p><p>SVG 必须有 <strong>xmlns</strong> 属性,例如:<code>xmlns='http: //www.w3.org/2000/svg'</code>。如果不存在则会自动添加。</p><p>编码后的 SVG 可在 <code>background</code>,<code>border-image</code> 或 <code>mask</code>中使用(<a href='https://codepen.io/yoksel/full/WNrLpYW'>实例演示</a>)。</p>",
"insertSVG": "插入 SVG ",
"example": "示例",
"takeEncoded": "编码后 ",
"copy": "复制",
"readyForCSS": "在 CSS 里使用 ",
"preview": "预览 ",
"background": "背景 ",
"white": "白色",
"silver": "银色",
"black": "黑色",
"projectOn": "查看项目于 ",
"twitter": "yoksel_en",
"langs": [
"<a href=\"../\">En</a>",
"<a href=\"../pt\">Br</a>",
"<a href=\"../ru\">Рус</a>",
"<a>简中</a>",
"<a href=\"../zh-tw\">繁中</a>",
"<a href=\"../tr\">Tr</a>"
],
"decodeTip": "您可将编码后的 SVG 粘贴到此处以解码"
}
3 changes: 2 additions & 1 deletion src/translate/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"<a href=\"../\">En</a>",
"<a href=\"../pt\">Br</a>",
"<a href=\"../ru\">Рус</a>",
"<a>Tc</a>",
"<a href=\"../zh-cn\">简中</a>",
"<a>繁中</a>",
"<a href=\"../tr\">Tr</a>"
],
"decodeTip": "您可以將編碼後的 SVG 放在此處以將其解碼回去"
Expand Down

0 comments on commit 2c31ea6

Please sign in to comment.