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
5 changes: 4 additions & 1 deletion l10n/fluent.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ function getLocale(locale) {
}
if (!fluent.has(locale)) {
const ftl = ftlMap[locale];
const localeF = new Fluent(locale, ftl ? [ftl] : undefined);
if (!ftl) {
return new Fluent(locale);
}
const localeF = new Fluent(locale, [ftl]);
fluent.set(locale, localeF);
}
return fluent.get(locale);
Expand Down
Loading