Skip to content

Conversation

@binh-dam-ibigroup
Copy link
Collaborator

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

i18n/en-US.yml Outdated
{issueNum, plural,
=0 {found}
one {(and {issueNum, number} issue) found}
other {(and {issueNum,number} issues) found}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
other {(and {issueNum,number} issues) found}
other {(and {issueNum, number} issues) found}

Copy link
Contributor

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}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
optionNumber: "Option {optionNum,number}"
optionNumber: "Option {optionNum, number}"

Copy link
Contributor

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}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
other {(and {issueNum,number} problèmes) trouvés}
other {(and {issueNum, number} problèmes) trouvés}

Copy link
Contributor

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}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
optionNumber: "Option {optionNum,number}"
optionNumber: "Option {optionNum, number}"

Copy link
Contributor

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'
Copy link
Contributor

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.

Copy link
Contributor

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)

Copy link
Contributor

@philip-cline philip-cline Aug 18, 2021

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'
Copy link
Contributor

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.

Copy link
Contributor

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} />
{' '}
Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is for formatting purposes (the white space between time and icon)
image
I'm not sure how to go about changing this via styling though, would it require a special LegIcon component?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 8297d2e.

@binh-dam-ibigroup
Copy link
Collaborator Author

Ready for review again @miles-grant-ibigroup, with one file moved (for icons) that touched quite a few components.

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a 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.

@binh-dam-ibigroup
Copy link
Collaborator Author

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.

@binh-dam-ibigroup binh-dam-ibigroup merged commit b1d6b92 into dev Sep 10, 2021
@binh-dam-ibigroup binh-dam-ibigroup deleted the react-intl-ramp-up-pr1 branch September 10, 2021 14:07
@github-actions
Copy link
Contributor

github-actions bot commented Oct 5, 2021

🎉 This PR is included in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants