Skip to content

Commit

Permalink
Bug 1762308 - make language-switch 2nd in about:welcome, r=emcminn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Mosedale committed Mar 31, 2022
1 parent b60dec9 commit 91f2891
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions browser/components/newtab/aboutwelcome/lib/AboutWelcomeDefaults.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,37 @@ const DEFAULT_WELCOME_CONTENT = {
},
},
{
id: "AW_SET_DEFAULT",
id: "AW_LANGUAGE_MISMATCH",
order: 1,
content: {
logo: {},
title: { string_id: "onboarding-live-language-header" },
subtitle: { string_id: "onboarding-live-language-subtitle" },
has_noodles: true,
languageSwitcher: {
switch: {
string_id: "onboarding-live-language-switch-button-label",
},
downloading: {
string_id: "onboarding-live-language-button-label-downloading",
},
cancel: {
string_id: "onboarding-live-language-secondary-cancel-download",
},
not_now: {
string_id: "onboarding-live-language-not-now-button-label",
},
waiting: { string_id: "onboarding-live-language-waiting-button" },
skip: { string_id: "onboarding-live-language-skip-button-label" },
action: {
navigate: true,
},
},
},
},
{
id: "AW_SET_DEFAULT",
order: 2,
content: {
logo: {},
title: {
Expand Down Expand Up @@ -103,35 +132,6 @@ const DEFAULT_WELCOME_CONTENT = {
},
},
},
{
id: "AW_LANGUAGE_MISMATCH",
order: 2,
content: {
logo: {},
title: { string_id: "onboarding-live-language-header" },
subtitle: { string_id: "onboarding-live-language-subtitle" },
has_noodles: true,
languageSwitcher: {
switch: {
string_id: "onboarding-live-language-switch-button-label",
},
downloading: {
string_id: "onboarding-live-language-button-label-downloading",
},
cancel: {
string_id: "onboarding-live-language-secondary-cancel-download",
},
not_now: {
string_id: "onboarding-live-language-not-now-button-label",
},
waiting: { string_id: "onboarding-live-language-waiting-button" },
skip: { string_id: "onboarding-live-language-skip-button-label" },
action: {
navigate: true,
},
},
},
},
{
id: "AW_IMPORT_SETTINGS",
order: 3,
Expand Down

0 comments on commit 91f2891

Please sign in to comment.