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)