File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434const { locale } = useI18n ()
3535const localePath = useLocalePath ()
3636const main = useStore ()
37- const { data: navigation } = await useAsyncData (' navigation' , () => {
37+ const { data: navigation } = await useAsyncData (' navigation' + locale . value , () => {
3838 return queryCollectionNavigation (' content_' + locale .value )
3939}, {
4040 watch: [locale], // Refetch when locale changes
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const codelistPageName = computed(() => {
2626})
2727const codelist = computed (() => { return main .codelists .includes (codelistPageName .value ) })
2828
29- const { data : page } = await useAsyncData (' page-' + slug .value , async () => {
29+ const { data : page } = await useAsyncData (' page-' + slug .value + locale . value , async () => {
3030 // Build collection name based on current locale
3131 const collection = (' content_' + locale .value ) as keyof Collections
3232 const content = await queryCollection (collection ).path (slug .value ).first ()
You can’t perform that action at this time.
0 commit comments