1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-01 04:22:28 +02:00

first zh-CN locale content

This commit is contained in:
Pomax
2017-02-16 10:21:04 -08:00
parent 7bc43cf9a8
commit 75fb647215
10 changed files with 1506 additions and 14 deletions

View File

@@ -210,9 +210,18 @@
<!-- the actual article is a JS bundle -->
<script>
var s = document.createElement("script");
s.src = "article.js?ts=" + Date.now();
document.head.appendChild(s);
(function() {
var lang = window.location.search;
var ms = '?locale=';
var lpos = lang.indexOf(ms);
var linfix = '';
if (lpos !== -1) {
linfix = "." + lang.substring(lpos + ms.length);
}
var s = document.createElement("script");
s.src = "article" + linfix+ ".js?ts=" + Date.now();
document.head.appendChild(s);
}());
</script>
</body>
</html>