Skip to content

Commit b1ba095

Browse files
committed
fix: typescript issue with readonly string[] of languages
1 parent ec53fc8 commit b1ba095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/i18next.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let i18next: RemixI18Next = new RemixI18Next({
88
detection: {
99
// persist language selection in cookie
1010
cookie: i18nCookie,
11-
supportedLanguages: i18nextOptions.supportedLngs,
11+
supportedLanguages: [...i18nextOptions.supportedLngs],
1212
fallbackLanguage: i18nextOptions.fallbackLng,
1313
},
1414
// This is the configuration for i18next used

0 commit comments

Comments
 (0)