diff --git a/packages/vue/src/VueTolgee.ts b/packages/vue/src/VueTolgee.ts index 1559d0f17c..65bfe33d1b 100644 --- a/packages/vue/src/VueTolgee.ts +++ b/packages/vue/src/VueTolgee.ts @@ -61,6 +61,12 @@ export const VueTolgee = { ); } + reactiveContext.value.tolgee.on('cache', () => { + reactiveContext.value.tolgee = Object.freeze({ + ...reactiveContext.value.tolgee, + }); + }); + app.config.globalProperties.$t = ((...args: Parameters) => reactiveContext.value.tolgee.t(...args)) as TolgeeT;