chore: fix i18n type error (#3473)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user