更改默认语言和时区
This commit is contained in:
+1
-2
@@ -39,8 +39,7 @@ RUN if [ "$TARGETARCH" = "arm" ]; then export GOARM=7; [ "$TARGETVARIANT" = "v6"
|
||||
-o sui main.go
|
||||
|
||||
FROM alpine
|
||||
LABEL org.opencontainers.image.authors="alireza7@gmail.com"
|
||||
ENV TZ=Asia/Tehran
|
||||
ENV TZ=Asia/Shanghai
|
||||
WORKDIR /app
|
||||
RUN set -ex && apk add --no-cache --upgrade bash tzdata ca-certificates nftables
|
||||
COPY --from=backend-builder /app/sui /app/libcronet.so /app/
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -8,8 +8,8 @@ import ru from './ru'
|
||||
|
||||
export const i18n = createI18n({
|
||||
legacy: false,
|
||||
locale: localStorage.getItem("locale") ?? 'en',
|
||||
fallbackLocale: 'en',
|
||||
locale: localStorage.getItem("locale") ?? 'zhHans',
|
||||
fallbackLocale: 'zhHans',
|
||||
messages: {
|
||||
en: en,
|
||||
fa: fa,
|
||||
|
||||
@@ -49,8 +49,8 @@ export default createVuetify({
|
||||
},
|
||||
},
|
||||
locale: {
|
||||
locale: localStorage.getItem("locale") ?? 'en',
|
||||
fallback: 'en',
|
||||
locale: localStorage.getItem("locale") ?? 'zhHans',
|
||||
fallback: 'zhHans',
|
||||
messages: { en, fa, vi, zhHans, zhHant, ru },
|
||||
},
|
||||
})
|
||||
|
||||
@@ -96,7 +96,7 @@ const login = async () => {
|
||||
}
|
||||
}
|
||||
const changeLocale = (l: any) => {
|
||||
locale.current.value = l ?? 'en'
|
||||
locale.current.value = l ?? 'zhHans'
|
||||
localStorage.setItem('locale', locale.current.value)
|
||||
}
|
||||
const changeTheme = (th: string) => {
|
||||
@@ -108,4 +108,3 @@ const isActiveTheme = (th: string) => {
|
||||
return current == th
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -162,7 +162,7 @@ const settings = ref({
|
||||
webURI: "",
|
||||
sessionMaxAge: "0",
|
||||
trafficAge: "30",
|
||||
timeLocation: "Asia/Tehran",
|
||||
timeLocation: "Asia/Shanghai",
|
||||
subListen: "",
|
||||
subPort: "2096",
|
||||
subPath: "/sub/",
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ var defaultValueMap = map[string]string{
|
||||
"webURI": "",
|
||||
"sessionMaxAge": "0",
|
||||
"trafficAge": "30",
|
||||
"timeLocation": "Asia/Tehran",
|
||||
"timeLocation": "Asia/Shanghai",
|
||||
"subListen": "",
|
||||
"subPort": "2096",
|
||||
"subPath": "/sub/",
|
||||
|
||||
Reference in New Issue
Block a user