From 40e4b72d771e6303bdf749611144c72b11a549e3 Mon Sep 17 00:00:00 2001 From: Benjamin Oddou Date: Tue, 18 Nov 2025 10:14:34 +0100 Subject: [PATCH] fix(monaco): Migrate locale fetching to useStudioHost() --- src/app/src/utils/monaco/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/src/utils/monaco/index.ts b/src/app/src/utils/monaco/index.ts index a1fc1c7..94e8952 100644 --- a/src/app/src/utils/monaco/index.ts +++ b/src/app/src/utils/monaco/index.ts @@ -19,8 +19,9 @@ export const setupMonaco = createSingletonPromise(async () => { 'ru', 'it', ] - // @ts-expect-error - global property defined in the nuxt plugin - const locale: string = window.__NUXT_STUDIO_DEFAULT_LOCALE__ || 'en' + + const host = window.useStudioHost() + const locale: string = host.meta.defaultLocale || 'en' let finalLocale: string if (locale === 'en') {