-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[MBL-1667] Pledge Redemption String Translations #2137
Conversation
32283ea
to
5fa6347
Compare
public func estimatedShippingText( | ||
for reward: Reward, | ||
project: Project, | ||
selectedShippingRule: ShippingRule | ||
) -> String { |
There was a problem hiding this comment.
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.
estimatedShippingText(for: reward, project: project, selectedShippingRule: rule), | ||
estimatedShippingConversionText(for: reward, project: project, selectedShippingRule: rule) |
There was a problem hiding this comment.
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
estimatedShippingText(for: reward, project: project, selectedShippingRule: rule), | ||
estimatedShippingConversionText(for: reward, project: project, selectedShippingRule: rule) |
There was a problem hiding this comment.
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
5fa6347
to
f722dfc
Compare
There was a problem hiding this 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!
📲 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