mirror of
https://github.com/sipeed/sipeed_wiki.git
synced 2026-09-11 00:22:49 -05:00
Add zh/en localization script for MicArray USB board documentation
This commit is contained in:
17
pages/index/zh/mausb8.html
Normal file
17
pages/index/zh/mausb8.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
var hash = window.location.hash
|
||||
var url_language = "zh"
|
||||
|
||||
if( navigator.language.indexOf("zh") == -1 )
|
||||
{
|
||||
url_language = "en"
|
||||
}
|
||||
|
||||
switch (window.location.hash) {
|
||||
case "#c8" :
|
||||
location.href = window.location.origin + "/hardware/" + url_language + "/modules/micarray_usbboard_bl616.html"
|
||||
break;
|
||||
default :
|
||||
location.href = window.location.origin + "/hardware/" + url_language + "/modules/micarray_usbboard_bl616.html"
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user