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

Commit

Permalink
Merge branch 'latest' into add-mediaicons-stories-to-psammead-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
EinsteinNjoroge authored Sep 23, 2019
2 parents eccb6e4 + ebb24f8 commit 3bdf115
Show file tree
Hide file tree
Showing 11 changed files with 913 additions and 122 deletions.
1 change: 1 addition & 0 deletions packages/utilities/psammead-locales/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 2.16.0 | [PR#2176](https://github.com/bbc/psammead/pull/2176) Add `es` (Spanish) locale and update `ar` (Arabic) and `pt-br` (Brasil) locales |
| 2.15.0 | [PR#2184](https://github.com/bbc/psammead/pull/2184) Add `uz` (Uzbek) locale |
| 2.14.0 | [PR#2178](https://github.com/bbc/psammead/pull/2178) Update `ps` (Pashto) locale to add relative time support |
| 2.13.0 | [PR#2193](https://github.com/bbc/psammead/pull/2193) Create `rw` (Gahuza) and `ti` (Tigrinya) locales |
Expand Down
1 change: 1 addition & 0 deletions packages/utilities/psammead-locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ The following [Moment.js](https://momentjs.com/) locales have been added as they
The following locales have overrides to meet BBC World Service requirements where these differ from the upstream locale. Note that importing them will also cause the upstream locale to be loaded.

- `/moment/ar` - locale override for Arabic
- `/moment/es` - locale override for Spanish (Mundo)
- `/moment/fa` - locale override for Persian (Farsi)
- `/moment/gu` - locale override for Gujarati
- `/moment/hi` - locale override for Hindi
Expand Down
7 changes: 7 additions & 0 deletions packages/utilities/psammead-locales/moment/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ moment.updateLocale('ar', {
// Suppress conversion to Eastern numerals from base `ar` locale but retain use of Arabic comma
return string.replace(/,/g, '،');
},
relativeTime: {
past: '%s',
m: 'قبل دقيقة واحدة',
mm: 'قبل %d دقيقة',
h: 'قبل ساعة واحدة',
hh: 'قبل %d ساع',
},
});
Loading

0 comments on commit 3bdf115

Please sign in to comment.