Closed Bug 1861457 Opened 1 year ago Closed 1 year ago

Support different list of retailers in FR/DE strings

Categories

(Firefox :: Messaging System, task, P1)

task
Points:
3

Tracking

()

RESOLVED FIXED
122 Branch
Iteration:
122.2 - Dec 4 - Dec 15
Tracking Status
firefox122 --- fixed

People

(Reporter: jhirsch, Assigned: emcminn)

References

(Blocks 1 open bug)

Details

(Whiteboard: [omc])

Attachments

(1 file)

We have a string[1] that lists three retailers in en-US, but the same string in FR/DE will need to only list one retailer. We'll need to figure out how we can show the correct string in FR/DE.

It might be enough to switch the string, based on which domain the user is visiting: if the location is amazon.fr or amazon.de, show a different string.

[1] https://searchfox.org/mozilla-central/source/browser/locales/en-US/browser/shopping.ftl#200-205

# Dynamic subtitle. Sites are limited to Amazon, Walmart or Best Buy.
# Variables:
# $currentSite (str) - The current shopping page name
# $secondSite (str) - A second shopping page name
# $thirdSite (str) - A third shopping page name
shopping-onboarding-dynamic-subtitle-1 = See how reliable product reviews are on <b>{ $currentSite }</b> before you buy. Review Checker, an experimental feature from { -brand-product-name }, is built right into the browser. It works on <b>{ $secondSite }</b> and <b>{ $thirdSite }</b>, too.

No longer blocks: 1855761
Component: Shopping → Messaging System
Blocks: 1855761
See Also: → 1855764
Assignee: nobody → emcminn
Iteration: --- → 122.1 - Nov 20 - Dec 1
Priority: -- → P1
Points: --- → 3

Testing the Jira link.

Hi Jared! I have a tentative patch for this; is there an efficient way to test the DE/FR locales? Would adding the TLDs (as per this comment) be enough, locally?

EDIT: I'm also happy to take bug 1855760 if that would be helpful!

Flags: needinfo?(jhirsch)

Hey Emily,

Thanks for the ping. I think bug 1855760 should be more or less orthogonal to the changes needed here; how you are doing the domain detection in your patch? The shopping sidebar child actor already sends down the product URL when we trigger onboarding, to support the existing dynamic text[1], so I would guess the simplest way would be to add the new amazon.de and amazon.fr TLDs to the existing AWSetProductURL call[2], but that's without looking too much at the onboarding code (there might be a better way).

[1] https://searchfox.org/mozilla-central/source/browser/components/shopping/ShoppingSidebarChild.sys.mjs#360

[2] https://searchfox.org/mozilla-central/source/browser/components/newtab/aboutwelcome/AboutWelcomeChild.sys.mjs#828

Flags: needinfo?(jhirsch)

I've added a new string, and shortcut the amazon.fr and amazon.de TLDs to it in AboutWelcomeChild. Adding fr and de to the validTLDs array did allow me to see the change working locally, but I've omitted that change from this patch, and can submit it as a patch to the other bug (along with some test cases) :)

Depends on: 1855760
Iteration: 122.1 - Nov 20 - Dec 1 → 122.2 - Dec 4 - Dec 15
Blocks: 1868616
Pushed by emcminn@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2805138dc4b4 Handle FR and DE domains for onboarding subtitle r=jhirsch,fluent-reviewers,flod,shopping-reviewers
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: