Skip to content

Commit

Permalink
chore: fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 6, 2023
1 parent c8439fb commit 74a5a45
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 67 deletions.
1 change: 0 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ export default defineNuxtModule<ModuleOptions>({
// @ts-expect-error runtime types
const nuxtI18nConfig = nuxt.options.i18n as Record<string, any> | undefined
if (nuxtI18nConfig?.pages) {
config.inferStaticPagesAsRoutes = false
for (const pageLocales of Object.values(nuxtI18nConfig?.pages as Record<string, Record<string, string>>)) {
for (const locale in pageLocales) {
// add root entry for default locale and ignore dynamic routes
Expand Down
135 changes: 69 additions & 66 deletions test/i18n.test.ts

Large diffs are not rendered by default.

0 comments on commit 74a5a45

Please sign in to comment.