Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion web/packages/core/src/internal/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const bundles: Record<string, FluentBundle> = {};
for (const [locale, files] of Object.entries(BUNDLED_TEXTS)) {
const bundle = new FluentBundle(locale);
if (files) {
const customMap = resetCustomMap();
let customMap: typeof Map | undefined = undefined;
for (const [filename, text] of Object.entries(files)) {
if (text) {
customMap ??= resetCustomMap();
for (const error of bundle.addResource(
new FluentResource(text),
)) {
Expand Down