Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saboooor committed Dec 18, 2023
1 parent 69a095f commit 8adb232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/speak-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const translationData = import.meta.glob<Translation>('/i18n/**/*.json');
/**
* Using server$, translation data is always accessed on the server
*/
const loadTranslation$: LoadTranslationFn = server$(async (lang: string, asset: string) =>
const loadTranslation$ = server$(async (lang: string, asset: string) =>
await translationData[`/i18n/${lang}/${asset}.json`]?.(),
);
) as LoadTranslationFn;

export const translationFn: TranslationFn = {
loadTranslation$: loadTranslation$,
Expand Down

0 comments on commit 8adb232

Please sign in to comment.