Skip to content

fix(payments-next): SP3 invalid coupon code not localized#18932

Merged
elizabeth-ilina merged 1 commit intomainfrom
FXA-11758-invalid-coupon-code
May 30, 2025
Merged

fix(payments-next): SP3 invalid coupon code not localized#18932
elizabeth-ilina merged 1 commit intomainfrom
FXA-11758-invalid-coupon-code

Conversation

@elizabeth-ilina
Copy link
Contributor

@elizabeth-ilina elizabeth-ilina commented May 28, 2025

Because

  • The coupon error messages were not being localized, and were hard coded to be in English.

This pull request

  • Puts the error messages in an .ftl file instead of just relying on the hard coded values.

Issue that this pull request solves

Closes: #FXA-11758

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review May 29, 2025 13:20
@elizabeth-ilina elizabeth-ilina requested a review from a team as a code owner May 29, 2025 13:20
@elizabeth-ilina elizabeth-ilina removed the request for review from julianpoy May 29, 2025 18:02
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11758-invalid-coupon-code branch from da88fce to c4f4b38 Compare May 29, 2025 19:03
Copy link
Contributor

@xlisachan xlisachan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Liz!

@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11758-invalid-coupon-code branch from c4f4b38 to 38270f8 Compare May 29, 2025 19:27
@elizabeth-ilina elizabeth-ilina requested a review from a team as a code owner May 29, 2025 19:27
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11758-invalid-coupon-code branch from 38270f8 to 13dbe75 Compare May 29, 2025 19:27
next-coupon-error-expired = The code you entered has expired.
next-coupon-error-generic = An error occurred processing the code. Please try again.
next-coupon-error-invalid = The code you entered is invalid.
next-coupon-error-limit-reached = The code you entered has reached its limit.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
next-coupon-error-limit-reached = The code you entered has reached its limit.
next-coupon-error-limit-reached = The code you entered has reached its limit.
##

We should also close the final Group comment as they could potentially apply to unrelated strings during the string extract process.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah good to know, thanks for adding the comments!

@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11758-invalid-coupon-code branch from 13dbe75 to 1527467 Compare May 30, 2025 15:25
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11758-invalid-coupon-code branch from 1527467 to dd593c9 Compare May 30, 2025 16:16
@elizabeth-ilina elizabeth-ilina requested a review from bcolsson May 30, 2025 16:18
next-coupon-error-expired = The code you entered has expired.
next-coupon-error-generic = An error occurred processing the code. Please try again.
next-coupon-error-invalid = The code you entered is invalid.
next-coupon-error-limit-reached = The code you entered has reached its limit.
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah good to know, thanks for adding the comments!

Copy link
Contributor

@david1alvarez david1alvarez left a comment

Choose a reason for hiding this comment

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

Looks good!

@elizabeth-ilina elizabeth-ilina merged commit 2247aba into main May 30, 2025
19 checks passed
@elizabeth-ilina elizabeth-ilina deleted the FXA-11758-invalid-coupon-code branch May 30, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants