-
Notifications
You must be signed in to change notification settings - Fork 59
React Intl Ramp Up PR #1 #430
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
Conversation
i18n/en-US.yml
Outdated
| {issueNum, plural, | ||
| =0 {found} | ||
| one {(and {issueNum, number} issue) found} | ||
| other {(and {issueNum,number} issues) found} |
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.
| other {(and {issueNum,number} issues) found} | |
| other {(and {issueNum, number} issues) found} |
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.
addressed in ad8ea33
i18n/en-US.yml
Outdated
| SimpleRealtimeAnnotation: | ||
| usingRealtimeInfo: This trip uses real-time traffic and delay information | ||
| TabbedItineraries: | ||
| optionNumber: "Option {optionNum,number}" |
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.
| optionNumber: "Option {optionNum,number}" | |
| optionNumber: "Option {optionNum, number}" |
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.
addressed in ad8ea33
i18n/fr-FR.yml
Outdated
| {issueNum, plural, | ||
| =0 {trouvé} | ||
| one {(et {issueNum, number} problème) trouvé} | ||
| other {(and {issueNum,number} problèmes) trouvés} |
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.
| other {(and {issueNum,number} problèmes) trouvés} | |
| other {(and {issueNum, number} problèmes) trouvés} |
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.
addressed in ad8ea33
i18n/fr-FR.yml
Outdated
| SimpleRealtimeAnnotation: | ||
| usingRealtimeInfo: Ce trajet utilise les informations en temps réel sur le trafic et les retards | ||
| TabbedItineraries: | ||
| optionNumber: "Option {optionNum,number}" |
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.
| optionNumber: "Option {optionNum,number}" | |
| optionNumber: "Option {optionNum, number}" |
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.
addressed in ad8ea33
| @@ -0,0 +1,17 @@ | |||
| import moment from 'moment-timezone' | |||
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.
Since this component is also used in other kinds of itineraries that aren't the default, this should live somewhere else, perhaps even in some common components folder.
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 moved this and format-time to a components/util/ folder in later i18n-ramp-up commits (7600b0c)
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.
moved here in ad8ea33
| @@ -0,0 +1,14 @@ | |||
| import moment from 'moment-timezone' | |||
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.
Since this component is also used in other kinds of itineraries that aren't the default, this should live somewhere else, perhaps even in some common components folder.
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.
see above
| <span> | ||
| <FormattedDuration duration={itinerary.walkTime} />{' '} | ||
| <FormattedDuration duration={itinerary.walkTime} /> | ||
| {' '} |
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 think adding whitespace is a no-no when using internationalization. If this is for styling purposes to add padding or something, the styling should be changed instead.
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.
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.
Addressed in 8297d2e.
|
Ready for review again @miles-grant-ibigroup, with one file moved (for icons) that touched quite a few components. |
miles-grant-ibigroup
left a comment
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.
This all looks amazing thanks so much! But I would please merge dev into this branch before merging this PR. I think there will be some issues that arise even if the code merges correctly.
Merge with dev was done in 4299ee0. |
|
🎉 This PR is included in version 3.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

This PR is a subset of the changes from the
react-intl-ramp-upbranch to facilitate reviews, and gathers commits for localization of components in thenarrativesubfolder.