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