mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-01 18:53:59 -04:00
fix: Optimize Recipe Favorites/Ratings (#6075)
This commit is contained in:
10
frontend/composables/use-global-i18n.ts
Normal file
10
frontend/composables/use-global-i18n.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { Composer } from "vue-i18n";
|
||||
|
||||
let i18n: Composer | null = null;
|
||||
|
||||
export function useGlobalI18n() {
|
||||
if (!i18n) {
|
||||
i18n = useI18n();
|
||||
}
|
||||
return i18n;
|
||||
}
|
||||
Reference in New Issue
Block a user