-
Notifications
You must be signed in to change notification settings - Fork 317
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
Gen3: Use i18next instead of loc
#3689
base: master
Are you sure you want to change the base?
Conversation
src/v3/src/util/locUtil.ts
Outdated
// No need to escape | ||
// Need to use raw value for phone numbers containing `‎` | ||
// React is already safe from XSS | ||
escapeValue: false, |
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.
password.complexity.minAgeMinutes.description = At least {0} minute(s) must have elapsed since you last changed your password | ||
password.complexity.minAgeMinutes.description_one = At least {0} minute must have elapsed since you last changed your password | ||
password.complexity.minAgeMinutes.description_other = At least {0} minutes must have elapsed since you last changed your password |
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.
Example of using plural forms
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.
Going to ask folks from g11n to review as well
e4f527a
to
b69c77d
Compare
const authCoinConfiguration = getAuthCoinConfiguration(); | ||
const authCoinConfigByAuthKey = props?.authenticatorKey | ||
&& authCoinConfiguration[props?.authenticatorKey]; | ||
&& getAuthCoinConfiguration()[props.authenticatorKey]; |
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.
Not a necessary change, just small optimisation.
Noticed that for pages that don't have auth coin there will be a lot of unnecessary loc
calls inside getAuthCoinConfiguration()
7b59fbc
to
afe2347
Compare
afe2347
to
c3a2d57
Compare
c3a2d57
to
7b29f72
Compare
7b29f72
to
118d13c
Compare
Description:
Use i18next library for Gen3 instead of Courage's
loc
function for pluralization supportExample: use
instead of single
PR Checklist
Issue:
Reviewers:
Screenshot/Video:
Downstream Monolith Build: