Skip to content

Commit e01d345

Browse files
committed
fix(web): publish a locale catalog loaded on the startup retry
1 parent ce8d5e7 commit e01d345

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/i18n/runtime.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export function startI18n(): void {
7272

7373
/** Resolves once the requested locale's translations are ready; immediate for English. */
7474
export function whenLocaleReady(): Promise<void> {
75-
return loadLocale(requestedLocale);
75+
const locale = requestedLocale;
76+
return loadLocale(locale).then(() => activateLocale(locale));
7677
}
7778

7879
export function subscribeI18n(listener: () => void): () => void {

0 commit comments

Comments
 (0)