Skip to content

Commit

Permalink
fix: glob import parameters on translations
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Mar 19, 2024
1 parent e197c19 commit 01ce6f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/utils/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export type TranslationKey = StringTranslationKey | ArrayTranslationKey

const rawFluentFiles = import.meta.glob('../localization/translations/**/*.ftl', {
eager: true,
as: 'raw'
})
query: '?raw',
import: 'default'
}) as Record<string, string>
const sourceResources = Object.fromEntries(
langSections.map((x) => [
x,
Expand Down

0 comments on commit 01ce6f8

Please sign in to comment.