Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Override default moment relative time - Arabic, Brasil and Mundo #2176

Merged
merged 17 commits into from
Sep 23, 2019

Conversation

DenisHdz
Copy link
Contributor

@DenisHdz DenisHdz commented Sep 18, 2019

Resolves #2151

Overall change:
Override default moment relative time so that we can have the correct localized relative time.

Code changes:

  • Add es locale for Mundo
  • Override moment's relative time for ar (Arabic) and pt-br (Brasil)

  • I have assigned myself to this PR and the corresponding issues
  • Automated (jest and/or cypress) tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

@DenisHdz DenisHdz added the ws-home Tasks for the WS Home Team label Sep 18, 2019
@DenisHdz DenisHdz self-assigned this Sep 18, 2019
@DenisHdz DenisHdz changed the title Override default moment relative time - Arabic, Brasil and Mundo Override default moment relative time and months - Arabic, Brasil and Mundo Sep 19, 2019
@DenisHdz DenisHdz changed the title Override default moment relative time and months - Arabic, Brasil and Mundo Override default moment relative time - Arabic, Brasil and Mundo Sep 19, 2019
Copy link
Contributor

@AlistairGempf AlistairGempf 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 good to me.

… github.com:bbc/psammead into relative-timestamp-translations-arabic-brasil-mundo
Copy link
Contributor

@sareh sareh left a comment

Choose a reason for hiding this comment

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

👍 Looks good!

When reviewing the Arabic locale, it was difficult to use the snapshots from Storybook since the Arabic text is left-aligned and that means a mix of digits 0-9 and Arabic words mess up the word order. We should update the stories for Moment locales to have the dir={dir} prop on the localised text.
Screenshot Arabic locale story

@staylos92 staylos92 assigned staylos92 and unassigned staylos92 Sep 19, 2019
@DenisHdz DenisHdz requested a review from sareh September 19, 2019 13:24
@paruchurisilpa paruchurisilpa self-assigned this Sep 20, 2019
… github.com:bbc/psammead into relative-timestamp-translations-arabic-brasil-mundo
@paruchurisilpa
Copy link
Contributor

Looks good to me..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ws-home Tasks for the WS Home Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override moment relative timestamp translations - Arabic, Brasil, Mundo
6 participants