feature(language): Change language to Chinese
This commit is contained in:
parent
f99ef325ae
commit
0dda7d9f8c
@ -6,7 +6,7 @@ function date() {
|
||||
month: "long",
|
||||
day: "numeric"
|
||||
};
|
||||
let date = currentDate.toLocaleDateString("en-GB", dateOptions);
|
||||
let date = currentDate.toLocaleDateString("zh-cn", dateOptions);
|
||||
document.getElementById("header_date").innerHTML = date;
|
||||
}
|
||||
|
||||
@ -15,16 +15,16 @@ function greet() {
|
||||
let greet = Math.floor(currentTime.getHours() / 6);
|
||||
switch (greet) {
|
||||
case 0:
|
||||
document.getElementById("header_greet").innerHTML = "Good night!";
|
||||
document.getElementById("header_greet").innerHTML = "晚上好!";
|
||||
break;
|
||||
case 1:
|
||||
document.getElementById("header_greet").innerHTML = "Good morning!";
|
||||
document.getElementById("header_greet").innerHTML = "早上好!";
|
||||
break;
|
||||
case 2:
|
||||
document.getElementById("header_greet").innerHTML = "Good afternoon!";
|
||||
document.getElementById("header_greet").innerHTML = "下午好!";
|
||||
break;
|
||||
case 3:
|
||||
document.getElementById("header_greet").innerHTML = "Good evening!";
|
||||
document.getElementById("header_greet").innerHTML = "傍晚好!";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
16
index.html
16
index.html
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="zh-Hans">
|
||||
<head>
|
||||
<title>SUI</title>
|
||||
<title>7Wate's Nav</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="description" content="a startpage for your server and / or new tab page">
|
||||
<meta name="description" content="7Wate,导航网站">
|
||||
<meta http-equiv="Default-Style" content="">
|
||||
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
||||
<link type="text/css" rel="stylesheet" href="./assets/css/styles.css" media="screen,projection"/>
|
||||
@ -17,13 +17,13 @@
|
||||
<section id="modal">
|
||||
<div>
|
||||
<header id="modal-header">
|
||||
<h1>Options</h1>
|
||||
<h1>设置</h1>
|
||||
<a href="#" title="Close" class="modal-close">
|
||||
<span class="iconify" data-icon="mdi-close"></span>
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<h2>Color themes</h2>
|
||||
<h2>主题</h2>
|
||||
|
||||
<div id="modal-theme">
|
||||
<button data-theme="blackboard" class="theme-button theme-blackboard">Blackboard</button>
|
||||
@ -39,14 +39,14 @@
|
||||
<button data-theme="paper" class="theme-button theme-paper">Paper</button>
|
||||
</div>
|
||||
|
||||
<h2>Search options</h2>
|
||||
<h2>搜索</h2>
|
||||
|
||||
<section id="providers">
|
||||
<script type="text/handlebars-template" id="providers-template">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Website</th>
|
||||
<th>Prefix</th>
|
||||
<th>站点</th>
|
||||
<th>关键字</th>
|
||||
</tr>
|
||||
{{#providers}}
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user