File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33 *
44 * SPDX-License-Identifier: MIT
55 */
6- import { useSettings } from "../store" ;
6+ import { inContextTranslationLangId , useSettings } from "../store" ;
77import { IntlProvider , MessageFormatElement } from "react-intl" ;
88import { ReactNode , useEffect , useState } from "react" ;
99import { retryAsyncLoad } from "./chunk-util" ;
@@ -17,7 +17,7 @@ async function loadLocaleData(locale: string) {
1717 ) ;
1818 const importLanguage =
1919 ( flags . translationPreview && languageSetting ?. ui === "preview" ) ||
20- languageSetting ?. ui === true ;
20+ languageSetting ?. ui === true || lang === inContextTranslationLangId ;
2121 if ( importLanguage ) {
2222 // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
2323 return ( await import ( `./ui.${ lang } .json` ) ) . default as Messages ;
Original file line number Diff line number Diff line change @@ -1388,7 +1388,7 @@ export const useHasNoStoredData = (): boolean => {
13881388
13891389type UseSettingsReturn = [ Settings , ( settings : Partial < Settings > ) => void ] ;
13901390
1391- const inContextTranslationLangId = "lol" ;
1391+ export const inContextTranslationLangId = "lol" ;
13921392
13931393export const useSettings = ( ) : UseSettingsReturn => {
13941394 const [ settings , setSettings ] = useStore (
You can’t perform that action at this time.
0 commit comments