From 677ca10b2b5c7014d24f1798081d8d1005969530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20Boyac=C4=B1?= Date: Sat, 30 Apr 2022 08:57:10 +0300 Subject: [PATCH] chore: fix i18n type error (#3473) --- shared/i18n/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/i18n/index.ts b/shared/i18n/index.ts index 9b94e344b..4c2b22ee4 100644 --- a/shared/i18n/index.ts +++ b/shared/i18n/index.ts @@ -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)