mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
2 lines
956 B
JavaScript
2 lines
956 B
JavaScript
import{_ as h}from"./plugin-vue_export-helper-x3n3nnut.js";import{f,o as _,c as m,a as p}from"./app-DLdAQsjV.js";const g=p("p",null,"Redirecting to the correct locale...",-1),$=[g],z={__name:"index.html",setup(U){return f(()=>{const{languages:c}=window.navigator,{hash:l,origin:o}=window.location,e=l.substring(1),s={0:["/en/",["en-US","en-UK","en"]],1:["/zh/",["zh-CN","zh-TW","zh"]],2:["/ru/",["ru-RU","ru-KZ","ru-BY","ru-UA","ru-MD","ru-LV","tt-RU","ru"]],3:["/id/",["id-ID","id"]],"/zh/":["zh-CN"],"/en/":["en-US"],"/id/":["id-ID"],"/ru/":["ru-RU"]},t=["/en/","/id/","/ru/","/zh/"],a=t.pop();let n=null;e:for(const u of c)for(const[r,d]of Object.entries(s))if(d.includes(u)){if(!t.includes(r))continue;n=r;break e}const i=a?`${o}${a}${e?`#${e}`:""}`:null;n&&t.includes(n)?location.href=`${o}${n}${e?`#${e}`:""}`:i?location.href=i:location.href=`${o}/404.html`}),(c,l)=>(_(),m("div",null,$))}},b=h(z,[["__file","index.html.vue"]]);export{b as default};
|