diff --git a/doc/en/PLATFORM.md b/doc/en/PLATFORM.md index 86c6ded4..76a3b23c 100644 --- a/doc/en/PLATFORM.md +++ b/doc/en/PLATFORM.md @@ -13,8 +13,8 @@ See details at [Vercel](../../adapter/vercel). It is free, does not require a do ### 3. [Render](https://render.com/) -See [Render](../../adapter/render) for details. /... /adapter/render). Free, no domain name, no server required. Some development skills are required. +See [Render](../../adapter/render) for details.. Free, no domain name, no server required. Some development skills are required. ### 4. Local -See [Local](../../adapter/local) for details. /... /adapter/local/README.md). For local deployment method, you need to configure local development environment. \ No newline at end of file +See [Local](../../adapter/local) for details. For local deployment method, you need to configure local development environment. \ No newline at end of file diff --git a/src/env.js b/src/env.js index 62ee19dc..f77133da 100644 --- a/src/env.js +++ b/src/env.js @@ -1,5 +1,8 @@ -import './i18n/type.js' +import './i18n/type.js'; +/** + * @class Environment + */ class Environment { // OpenAI API Key API_KEY = []; diff --git a/src/i18n/index.js b/src/i18n/index.js index e45438b9..ff50655b 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -2,10 +2,12 @@ import zhHans from './zh-hans.js'; import zhHant from './zh-hant.js'; import en from './en.js'; -import './type.js' +import './type.js'; /** * @type {I18nGenerator} + * @param {string} lang + * @return {I18n} */ export default function i18n(lang) { switch (lang.toLowerCase()) { diff --git a/src/i18n/type.js b/src/i18n/type.js index abd353ea..e7fa99a4 100644 --- a/src/i18n/type.js +++ b/src/i18n/type.js @@ -65,4 +65,4 @@ * @callback I18nGenerator * @param {string} lang * @return {I18n} - */ \ No newline at end of file + */