diff --git a/.github/ISSUE_TEMPLATE/1-bug_report.yml b/.github/ISSUE_TEMPLATE/1-bug_report.yml index ebba0cf3..b777bacb 100644 --- a/.github/ISSUE_TEMPLATE/1-bug_report.yml +++ b/.github/ISSUE_TEMPLATE/1-bug_report.yml @@ -11,14 +11,14 @@ body: **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release and can reproduce the issue. Issues that are not in the latest version will be closed directly. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. - 3. Yes, I've read the [documentation](https://docs.certimate.me/en-US/) and didn't find any similar. + 3. Yes, I've read the [documentation](https://docs.certimate.me/) and didn't find any similar. 4. Please describe the problem in detail according to the template specification, otherwise the issue will be closed directly. 5. Please limit one report per issue. **在提交 Issue 之前,请确认以下事项**: 1. 我**确认**已尝试过使用当前最新版本,并能复现问题。由于开发者精力有限,非当前最新版本的问题将被直接关闭,感谢理解。 2. 我**确认**已搜索过[已有的 Issues](https://github.com/certimate-go/certimate/issues)(包括已关闭的),没有类似的问题。 - 3. 我**确认**已阅读过[文档](https://docs.certimate.me/zh-CN/),没有类似的问题。 + 3. 我**确认**已阅读过[文档](https://docs.certimate.me/),没有类似的问题。 4. 请**务必**按照模板规范详细描述问题,否则 Issue 将会被直接关闭。 5. 请保持每个 Issue 只包含一个缺陷报告。如果有多个缺陷,请分别提交 Issue。 diff --git a/.github/ISSUE_TEMPLATE/2-feature_request.yml b/.github/ISSUE_TEMPLATE/2-feature_request.yml index 45addc85..9e2cf68b 100644 --- a/.github/ISSUE_TEMPLATE/2-feature_request.yml +++ b/.github/ISSUE_TEMPLATE/2-feature_request.yml @@ -11,14 +11,14 @@ body: **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. - 3. Yes, I've read the [documentation](https://docs.certimate.me/en-US/) and didn't find any similar. + 3. Yes, I've read the [documentation](https://docs.certimate.me/) and didn't find any similar. 4. Please describe the problem in detail according to the template specification, otherwise the issue will be closed directly. 5. Please limit one request per issue. **在提交 Issue 之前,请确认以下事项**: 1. 我**确认**是基于当前最新大版本而提出的新功能请求或改进意见。 2. 我**确认**已搜索过[已有的 Issues](https://github.com/certimate-go/certimate/issues)(包括已关闭的),没有类似的问题。 - 3. 我**确认**已阅读过[文档](https://docs.certimate.me/zh-CN/),没有类似的问题。 + 3. 我**确认**已阅读过[文档](https://docs.certimate.me/),没有类似的问题。 4. 请**务必**按照模板规范详细描述问题,否则 Issue 将会被直接关闭。 5. 请保持每个 Issue 只包含一个功能请求。如果有多个需求,请分别提交 Issue。 diff --git a/.github/ISSUE_TEMPLATE/3-questions.yml b/.github/ISSUE_TEMPLATE/3-questions.yml index ba01b833..a9417701 100644 --- a/.github/ISSUE_TEMPLATE/3-questions.yml +++ b/.github/ISSUE_TEMPLATE/3-questions.yml @@ -9,14 +9,14 @@ body: **Before you submit the issue, please make sure of the following checklist**: 1. Yes, I'm using the latest release. 2. Yes, I've searched for [existing issues](https://github.com/certimate-go/certimate/issues) (including closed ones) on GitHub and didn't find any similar. - 3. Yes, I've read the [documentation](https://docs.certimate.me/en-US/) and didn't find any similar. + 3. Yes, I've read the [documentation](https://docs.certimate.me/) and didn't find any similar. 4. Please describe the problem in detail according to the template specification, otherwise the issue will be closed directly. 5. Please limit one question per issue. **在提交 Issue 之前,请确认以下事项**: 1. 我**确认**正在使用的是当前最新版本。 2. 我**确认**已搜索过[已有的 Issues](https://github.com/certimate-go/certimate/issues)(包括已关闭的),没有类似的问题。 - 3. 我**确认**已阅读过[文档](https://docs.certimate.me/zh-CN/),没有类似的问题。 + 3. 我**确认**已阅读过[文档](https://docs.certimate.me/),没有类似的问题。 4. 请**务必**按照模板规范详细描述问题,否则 Issue 将会被直接关闭。 5. 请保持每个 Issue 只包含一个问题求助。如果有多个问题,请分别提交 Issue。 diff --git a/README.md b/README.md index 64bfa6c9..b80da214 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Work with Certimate right now. Or read other content in the documentation to lea ## 📄 Documentation -For full documentation, please visit [docs.certimate.me](https://docs.certimate.me/en-US/). +For full documentation, please visit [docs.certimate.me](https://docs.certimate.me/). Related articles: diff --git a/README_zh.md b/README_zh.md index 92e4ca52..5c8423dc 100644 --- a/README_zh.md +++ b/README_zh.md @@ -81,7 +81,7 @@ docker run -d \ ## 📄 使用手册 -请访问文档站 [docs.certimate.me](https://docs.certimate.me/zh-CN/) 以阅读使用手册。 +请访问文档站 [docs.certimate.me](https://docs.certimate.me/) 以阅读使用手册。 相关文章: diff --git a/ui/src/domain/app.ts b/ui/src/domain/app.ts index b076846c..b4f37aff 100644 --- a/ui/src/domain/app.ts +++ b/ui/src/domain/app.ts @@ -1,20 +1,7 @@ -import i18next from "i18next"; - -export const APP_VERSION = "v" + (__APP_VERSION__ || "0.0.0-dev").replace(/^v/, ""); +export const APP_VERSION = "v" + (__APP_VERSION__ || "0.0.0-dev").replace(/^v/, ""); export const APP_REPO_URL = "https://github.com/certimate-go/certimate"; export const APP_DOWNLOAD_URL = APP_REPO_URL + "/releases"; -const APP_DOCUMENT_URLBASE = "https://docs.certimate.me"; -export let APP_DOCUMENT_URL = APP_DOCUMENT_URLBASE; - -i18next.on("languageChanged", (language) => { - if (language.startsWith("en")) { - APP_DOCUMENT_URL = APP_DOCUMENT_URLBASE + "/en-US/"; - } else if (language.startsWith("zh")) { - APP_DOCUMENT_URL = APP_DOCUMENT_URLBASE + "/zh-CN/"; - } else { - APP_DOCUMENT_URL = APP_DOCUMENT_URLBASE; - } -}); +export const APP_DOCUMENT_URL = "https://docs.certimate.me";