Remove window.i18n in favor of SignalContext.i18n

This commit is contained in:
Fedor Indutny
2025-10-10 13:48:40 -07:00
committed by GitHub
parent 40c31e138b
commit 41a6cfaf63
46 changed files with 201 additions and 213 deletions

View File

@@ -18,6 +18,7 @@ global.window = {
Date,
performance,
SignalContext: {
i18n: key => `i18n(${key})`,
getPath: () => '/tmp',
getVersion: () => package.version,
config: {
@@ -35,7 +36,6 @@ global.window = {
getPreferredSystemLocales: () => ['en'],
getLocaleOverride: () => null,
},
i18n: key => `i18n(${key})`,
};
// For ducks/network.getEmptyState()