chore: fix i18n type error (#3473)

This commit is contained in:
Emir Boyacı
2022-04-30 08:57:10 +03:00
committed by GitHub
parent 32c1d2e2f8
commit 677ca10b2b

View File

@@ -81,8 +81,7 @@ const dashToUnderscore = (text: string) => text.replace("-", "_");
export const initI18n = () => {
const lng = underscoreToDash(
// @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'string | undefined' is not assig... Remove this comment to see the full error message
"DEFAULT_LANGUAGE" in process.env ? process.env.DEFAULT_LANGUAGE : "en_US"
"DEFAULT_LANGUAGE" in process.env ? process.env.DEFAULT_LANGUAGE! : "en_US"
);
i18n
.use(backend)