Skip to content

🌐 Internationalization for CTA Text for Amp Story Shopping Component#37008

Merged
jshamble merged 30 commits intoampproject:mainfrom
jshamble:setctatxt
Dec 2, 2021
Merged

🌐 Internationalization for CTA Text for Amp Story Shopping Component#37008
jshamble merged 30 commits intoampproject:mainfrom
jshamble:setctatxt

Conversation

@jshamble
Copy link
Copy Markdown
Contributor

Fixes #36698

@jshamble jshamble marked this pull request as ready for review November 23, 2021 18:26
@amp-owners-bot
Copy link
Copy Markdown

amp-owners-bot bot commented Nov 23, 2021

Hey @gmajoulet! These files were changed:

extensions/amp-story-shopping/0.1/amp-story-shopping-tag.js
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-attachment.js
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-config.js
extensions/amp-story/1.0/_locales/en.json
extensions/amp-story/1.0/amp-story-open-page-attachment.js
extensions/amp-story/1.0/amp-story-store-service.js
src/service/localization/strings.js

Hey @newmuis! These files were changed:

extensions/amp-story/1.0/_locales/en.json
extensions/amp-story/1.0/amp-story-open-page-attachment.js
extensions/amp-story/1.0/amp-story-store-service.js
src/service/localization/strings.js

@processprocess
Copy link
Copy Markdown
Contributor

As per the conversation with @newmuis, the i18n service does not currently support placeholders.
This will allow the code to be simplified, we no longer need get a product name and we can use one translation key.

Please update this PR to:

  1. Use one i18n string: "Shop Now".
  2. Use "Shop Now" in both one product and multiple product cases.

This logic can be applied here.

Copy link
Copy Markdown
Contributor

@processprocess processprocess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with one nit, pending @coreymasanto's review.

@jshamble jshamble enabled auto-merge (squash) December 2, 2021 06:26
@jshamble jshamble disabled auto-merge December 2, 2021 06:28
@jshamble jshamble enabled auto-merge (squash) December 2, 2021 06:29
@processprocess
Copy link
Copy Markdown
Contributor

Looking back at this PR also. We have a visual test but no unit test.
We should do our best to write both unit and visual tests in case one of the tests are down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[amp story shopping] Set CTA text

4 participants