Skip to content

Commit d93374a

Browse files
authored
Merge pull request #17 from Louis0723/master
add [Traditional Chinese] lang
2 parents a65236b + 91dbca6 commit d93374a

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html lang="en" prefix="og: http://ogp.me/ns#"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Life calendar</title><meta name="description" content="Календарь жизни. Life calendar"><meta name="author" content="Yauheni Pakala"><meta property="og:title" content="Life calendar | Календарь жизни"><meta property="og:description" content="Календарь жизни. Life calendar"><meta property="og:url" content="https://wcoder.github.io/life-calendar/"><meta property="og:type" content="website"><meta property="og:site_name" content="Life calendar"><meta property="og:locale" content="en_US"><link rel="stylesheet" href="styles.min.css?v=1.1"></head><body><div class="container"><div class="row"><div class="col-md-3 hidden-print" id="calendar-settings"><form><div class="form-group"><label for="lang" id="lang_select_lang"></label> <select class="form-control" id="lang"><option value="0">Русский</option><option value="1">English</option><option value="2">中国人</option></select></div><div class="form-group"><label for="b-date" id="lang_set_birthday"></label><div id="sdate-picker"><select id="sdate-day" class="form-control"></select> <select id="sdate-month" class="form-control"></select> <select id="sdate-year" class="form-control"></select></div></div><div class="form-group"><label for="theme" id="lang_set_theme"></label> <select class="form-control" id="theme"><option value="0">Dark</option><option value="1">Light</option><option value="2">Red</option><option value="3">GitHub</option></select></div><div class="form-group"><div><label for="" id="lang_save_print"></label></div><div class="btn-group"><a href="#" class="btn btn-default" id="lang_save_jpg"></a> <a href="#" class="btn btn-default" id="lang_save_pdf"></a> <a href="#" class="btn btn-default" id="lang_print"></a></div></div></form></div><div class="col-md-9"><div id="calendar-canvas"></div></div></div><div class="row hidden-print"><div class="col-md-12"><p class="text-center"><small>&copy; 2016-2022 <a href="https://ypakala.com/">Yauheni Pakala</a></small></p></div></div></div><script src="scripts.min.js?v=1.1"></script><!-- Yandex.Metrika counter --><script type="text/javascript">(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym"); ym(49258735, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true });</script><noscript><div><img src="https://mc.yandex.ru/watch/49258735" style="position:absolute; left:-9999px;" alt=""></div></noscript><!-- /Yandex.Metrika counter --></body></html>
1+
<!DOCTYPE html><html lang="en" prefix="og: http://ogp.me/ns#"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Life calendar</title><meta name="description" content="Календарь жизни. Life calendar"><meta name="author" content="Yauheni Pakala"><meta property="og:title" content="Life calendar | Календарь жизни"><meta property="og:description" content="Календарь жизни. Life calendar"><meta property="og:url" content="https://wcoder.github.io/life-calendar/"><meta property="og:type" content="website"><meta property="og:site_name" content="Life calendar"><meta property="og:locale" content="en_US"><link rel="stylesheet" href="styles.min.css?v=1.1"></head><body><div class="container"><div class="row"><div class="col-md-3 hidden-print" id="calendar-settings"><form><div class="form-group"><label for="lang" id="lang_select_lang"></label> <select class="form-control" id="lang"><option value="0">Русский</option><option value="1">English</option><option value="2">繁體中文</option><option value="3">简体中文</option></select></div><div class="form-group"><label for="b-date" id="lang_set_birthday"></label><div id="sdate-picker"><select id="sdate-day" class="form-control"></select> <select id="sdate-month" class="form-control"></select> <select id="sdate-year" class="form-control"></select></div></div><div class="form-group"><label for="theme" id="lang_set_theme"></label> <select class="form-control" id="theme"><option value="0">Dark</option><option value="1">Light</option><option value="2">Red</option><option value="3">GitHub</option></select></div><div class="form-group"><div><label for="" id="lang_save_print"></label></div><div class="btn-group"><a href="#" class="btn btn-default" id="lang_save_jpg"></a> <a href="#" class="btn btn-default" id="lang_save_pdf"></a> <a href="#" class="btn btn-default" id="lang_print"></a></div></div></form></div><div class="col-md-9"><div id="calendar-canvas"></div></div></div><div class="row hidden-print"><div class="col-md-12"><p class="text-center"><small>&copy; 2016-2022 <a href="https://ypakala.com/">Yauheni Pakala</a></small></p></div></div></div><script src="scripts.min.js?v=1.1"></script><!-- Yandex.Metrika counter --><script type="text/javascript">(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym"); ym(49258735, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true });</script><noscript><div><img src="https://mc.yandex.ru/watch/49258735" style="position:absolute; left:-9999px;" alt=""></div></noscript><!-- /Yandex.Metrika counter --></body></html>

dist/scripts.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
<select class="form-control" id="lang">
2929
<option value="0">Русский</option>
3030
<option value="1">English</option>
31-
<option value="2">中国人</option>
31+
<option value="2">繁體中文</option>
32+
<option value="3">简体中文</option>
3233
</select>
3334
</div>
3435

src/js/app.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,39 @@
111111
top_text: 'Week of the Year →'
112112
}
113113
},
114+
{
115+
months: [
116+
'1月',
117+
'2曰',
118+
'3月',
119+
'4月',
120+
'5月',
121+
'6月',
122+
'7月',
123+
'8月',
124+
'9月',
125+
'10月',
126+
'11月',
127+
'12月'
128+
],
129+
settings: {
130+
lang_set_birthday: "設定您的生日:",
131+
dp_day: "日",
132+
dp_month: "月",
133+
dp_year: "年",
134+
lang_set_theme: "選擇一個主題:",
135+
lang_select_lang: "選擇一個語言:",
136+
lang_save_print: "保存或列印:",
137+
lang_save_jpg: "JPG",
138+
lang_save_pdf: "PDF",
139+
lang_print: "列印",
140+
},
141+
calendar: {
142+
title: '一生週行事曆',
143+
left_text: '← 年齡',
144+
top_text: '一年中的第幾周 →'
145+
}
146+
},
114147
{
115148
months: [
116149
'1月',

0 commit comments

Comments
 (0)