Skip to content

Commit

Permalink
fix(i18next-server): load locale files synchronously
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedoghri committed Nov 6, 2022
1 parent 10b82d0 commit e7892e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default (options?: AstroI18nextOptions): AstroIntegration => {
fallbackLng: astroI18nextConfig.locales as string[],
ns: astroI18nextConfig.namespaces,
defaultNS: astroI18nextConfig.defaultNamespace,
initImmediate: false,
backend: {
loadPath: "./public/locales/{{lng}}/{{ns}}.json",
},
Expand Down

0 comments on commit e7892e2

Please sign in to comment.