forked from ruby/www.ruby-lang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (34 loc) · 855 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: null
---
<html>
<head>
<script type="text/javascript">
var languages = {
"bg": "bg",
"de": "de",
"es": "es",
"fr": "fr",
"id": "id",
"it": "it",
"ja": "ja",
"ko": "ko",
"pl": "pl",
"pt": "pt",
"ru": "ru",
"tr": "tr",
"vi": "vi",
"zh-CN": "zh_cn",
"zh-TW": "zh_tw"
};
var code = window.navigator.language || window.navigator.userLanguage || "en";
if (code.substr(0,2) !== "zh") { code = code.substr(0,2); }
var language = languages[code];
if (!language) { language = "en"; }
document.location = "/" + language + "/";
</script>
<noscript>
<meta http-equiv="refresh" content="0;/en/" />
</noscript>
</head>
</html>