Skip to content

Commit

Permalink
change: locale loader
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Aug 19, 2024
1 parent 2ce1cea commit b485b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/translationHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function useTranslationHelper() {
loadTranslations: async (locale: string, routeName: string, translations: Translations): Promise<void> => {
try {
if (!generalLocaleCache[locale]) {
generalLocaleCache[`${locale}:${routeName}`] = { ...translations }
generalLocaleCache[locale] = { ...translations }
serverTranslationInit[`${locale}:index`] = true
}
}
Expand Down

0 comments on commit b485b55

Please sign in to comment.