Skip to content

Frontend/i18n: Migrate relative times to Intl.RelativeTimeFormat #7883

@tristanlabelle

Description

@tristanlabelle

Instead of defining our own in {{count}} minutes strings, we can use Intl.RelativeTimeFormat.

It's built in and "widely available": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat

"relative_time": {

Metadata

Metadata

Labels

i18nInternationalization / localization issue

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions