diff options
author | crupest <crupest@outlook.com> | 2022-03-09 16:40:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 16:40:01 +0800 |
commit | 331c238b337d9d8f7b4e051712a95f45548debf5 (patch) | |
tree | 847291747cf353a194e36c0307458c1eccdd663d /FrontEnd/src/i18n.ts | |
parent | 8b3d9516676eb5accafa3e5ba70ce8ad2582159d (diff) | |
parent | ff046d001ba7b9ab784d2aa1a917536c56f23f8c (diff) | |
download | timeline-331c238b337d9d8f7b4e051712a95f45548debf5.tar.gz timeline-331c238b337d9d8f7b4e051712a95f45548debf5.tar.bz2 timeline-331c238b337d9d8f7b4e051712a95f45548debf5.zip |
Merge pull request #1098 from crupest/dependabot/npm_and_yarn/FrontEnd/typescript-eslint/eslint-plugin-5.14.0
build(deps-dev): Bump @typescript-eslint/eslint-plugin from 5.12.1 to 5.14.0 in /FrontEnd
Diffstat (limited to 'FrontEnd/src/i18n.ts')
-rw-r--r-- | FrontEnd/src/i18n.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FrontEnd/src/i18n.ts b/FrontEnd/src/i18n.ts index 5f71c7ea..6a38e5b4 100644 --- a/FrontEnd/src/i18n.ts +++ b/FrontEnd/src/i18n.ts @@ -4,7 +4,7 @@ import { initReactI18next } from "react-i18next"; const backend: BackendModule = { type: "backend", - async read(language, namespace, callback) { + read(language, namespace, callback) { function error(message: string): void { callback(new Error(message), false); } @@ -36,7 +36,7 @@ const backend: BackendModule = { })(); if (promise) { - success((await promise).default); + void promise.then((d) => success(d.default)); } }, init() {}, // eslint-disable-line @typescript-eslint/no-empty-function |