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:
15
index.html
15
index.html
@@ -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>
|
||||
|
Reference in New Issue
Block a user