Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(next): clean up ftl files #18191

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

StaberindeZA
Copy link
Contributor

Because

  • payments-next.ftl should only have ftl ids in use and should have no duplicate ftl ids.
  • Ftl ids not found in payments.ftl should not have next- prefix on the flt id.

This pull request

  • Removes a few duplicate ftl ids and moves them to a common file
  • Remove next- prefix from a few flt ids

Issue that this pull request solves

Closes: #FXA-7842

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).

@StaberindeZA StaberindeZA requested review from a team as code owners January 7, 2025 23:06
next-continue-with-google-button = Continue with { -brand-google }
next-continue-with-apple-button = Continue with { -brand-apple }
next-payment-confirm-with-legal-links-static-3 = I authorize { -brand-mozilla } to charge my payment method for the amount shown, according to <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, until I cancel my subscription.
continue-with-google-button = Continue with { -brand-google }
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I thought we could reuse the continue-with-google-button and continue-with-apple-button ftl ids that are in fxa-settings.

Copy link
Contributor

Choose a reason for hiding this comment

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

If these string IDs already exist in another file these should be re-named to something to avoid having two strings with the same ID (even if they are in different files).

Copy link
Contributor

@xlisachan xlisachan Jan 7, 2025

Choose a reason for hiding this comment

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

Just for clarification, these are the ids/strings that are in fxa-settings:

continue-with-google-button = Continue with { -brand-google }
continue-with-apple-button = Continue with { -brand-apple }

We would not be able to reuse them in payments-next?

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.

Thanks Reino!

next-continue-with-google-button = Continue with { -brand-google }
next-continue-with-apple-button = Continue with { -brand-apple }
next-payment-confirm-with-legal-links-static-3 = I authorize { -brand-mozilla } to charge my payment method for the amount shown, according to <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, until I cancel my subscription.
continue-with-google-button = Continue with { -brand-google }
Copy link
Contributor

Choose a reason for hiding this comment

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

If these string IDs already exist in another file these should be re-named to something to avoid having two strings with the same ID (even if they are in different files).

next-continue-with-apple-button = Continue with { -brand-apple }
next-payment-confirm-with-legal-links-static-3 = I authorize { -brand-mozilla } to charge my payment method for the amount shown, according to <termsOfServiceLink>Terms of Service</termsOfServiceLink> and <privacyNoticeLink>Privacy Notice</privacyNoticeLink>, until I cancel my subscription.
continue-with-google-button = Continue with { -brand-google }
continue-with-apple-button = Continue with { -brand-apple }
Copy link
Contributor

Choose a reason for hiding this comment

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

This string will also should be renamed.

Because:

- payments-next.ftl should only have ftl ids in use and should have no
  duplicate ftl ids.
- Ftl ids not found in payments.ftl should not have next- prefix on the
  flt id.

This commit:

- Removes a few duplicate ftl ids and moves them to a common file
- Remove next- prefix from a few flt ids

Closes #FXA-7842
@StaberindeZA StaberindeZA force-pushed the fxa-7842-remove-dup-ftl-ids branch from 4e0e1aa to dbed6e1 Compare January 8, 2025 13:25
@StaberindeZA StaberindeZA requested a review from bcolsson January 8, 2025 13:26
@StaberindeZA StaberindeZA merged commit 0f00642 into main Jan 8, 2025
25 checks passed
@StaberindeZA StaberindeZA deleted the fxa-7842-remove-dup-ftl-ids branch January 8, 2025 18:33
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.

3 participants