Skip to content

Commit

Permalink
fix(plugins): normalize named imports to call in i18next's use function
Browse files Browse the repository at this point in the history
  • Loading branch information
aquaminer authored Sep 12, 2022
1 parent 70f6ebd commit 6928ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default (options?: AstroI18nextOptions): AstroIntegration => {

// loop through plugins to use them
for (const key of Object.keys(astroI18nextConfig.i18nextPlugins)) {
i18nextInit += `.use(${key})`;
i18nextInit += `.use(${key.replace(/[{}]/g, "")})`;
}
}
i18nextInit += `.init(${deeplyStringifyObject(
Expand Down

0 comments on commit 6928ddc

Please sign in to comment.