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

[MBL-1667] Pledge Redemption String Translations #2137

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

scottkicks
Copy link
Contributor

📲 What

Pulls in the latest string translations and replaces our hard-coded strings.

🤔 Why

KS supports multiple countries.

🛠 How

run make strings
update hardcoded strings

@scottkicks scottkicks force-pushed the scott/mbl-1667/update-string-translations branch from 32283ea to 5fa6347 Compare August 29, 2024 15:16
Comment on lines +664 to +668
public func estimatedShippingText(
for reward: Reward,
project: Project,
selectedShippingRule: ShippingRule
) -> String {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed to update this method to accept the current Project. This allowed me to use the Format.currency() helper which gives us the correct currency symbol and formatting that we need.

Comment on lines +321 to +322
estimatedShippingText(for: reward, project: project, selectedShippingRule: rule),
estimatedShippingConversionText(for: reward, project: project, selectedShippingRule: rule)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

related to my comment above

Comment on lines +148 to +149
estimatedShippingText(for: reward, project: project, selectedShippingRule: rule),
estimatedShippingConversionText(for: reward, project: project, selectedShippingRule: rule)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

also related to my comment above

@scottkicks scottkicks force-pushed the scott/mbl-1667/update-string-translations branch from 5fa6347 to f722dfc Compare August 29, 2024 15:45
@scottkicks scottkicks requested a review from ifosli August 29, 2024 15:46
@scottkicks scottkicks marked this pull request as ready for review August 29, 2024 15:46
Copy link
Contributor

@ifosli ifosli left a comment

Choose a reason for hiding this comment

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

Code changes look great! I re-recorded the failing snapshots but lmk if you want me to re-record all of them!

@scottkicks scottkicks merged commit a284ef2 into main Aug 29, 2024
5 checks passed
@scottkicks scottkicks deleted the scott/mbl-1667/update-string-translations branch August 29, 2024 17:23
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.

2 participants