multilanguage implemented

This commit is contained in:
tom5079
2019-05-15 19:32:38 +09:00
parent 4d67bbc76e
commit f9a2f9bd11
6 changed files with 95 additions and 12 deletions

View File

@@ -1,7 +1,12 @@
---
layout: default
---
<div id="home">
<h1>Blog Posts</h1>
</div>
<script>
var lang = navigator.language || navigator.userLanguage;
switch (lang) {
case "ko-KR":
window.location.href = "ko/";
break;
default:
window.location.href = "en/";
break;
}
</script>