Skip to content
Snippets Groups Projects
Commit 0b905b59 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages

Bug 42573: Avoid async l10n.formatValue.
parent 26ff6da2
Branches
Tags
1 merge request!1043Bug 42616: Rebased alpha onto Firefox 128.0b1
......@@ -2,7 +2,7 @@
// Show a prompt to suggest to the user that they can change the UI language.
// Show it only the first time, and then do not show it anymore
window.addEventListener("load", async () => {
window.addEventListener("load", () => {
const PREF_NAME = "intl.language_notification.shown";
if (Services.prefs.getBoolPref(PREF_NAME, false)) {
......@@ -35,12 +35,12 @@ window.addEventListener("load", async () => {
Services.locale.requestedLocales,
Services.locale.availableLocales
).length;
const label = await document.l10n.formatValue(
matchingSystem
const label = {
"l10n-id": matchingSystem
? "language-notification-label-system"
: "language-notification-label",
{ language }
);
"l10n-args": { language },
};
const buttons = [
{
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment