We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9681a2 commit 4a5ee36Copy full SHA for 4a5ee36
web/packages/core/src/internal/i18n.ts
@@ -21,9 +21,10 @@ const bundles: Record<string, FluentBundle> = {};
21
for (const [locale, files] of Object.entries(BUNDLED_TEXTS)) {
22
const bundle = new FluentBundle(locale);
23
if (files) {
24
- const customMap = resetCustomMap();
+ let customMap: typeof Map | undefined = undefined;
25
for (const [filename, text] of Object.entries(files)) {
26
if (text) {
27
+ customMap ??= resetCustomMap();
28
for (const error of bundle.addResource(
29
new FluentResource(text),
30
)) {
0 commit comments