Relative Time Format

Does anyone know of a W3C Intl.RelativeTimeFormat equivalent on crates.io? I know there's a Date/Time Formatting crate currently.

Are you looking for something with locale support, or would just English do?

I'm not aware of any specific crates, but I'd consider this for a low-priority goal of the time crate if it's widely desired.

I'd like to support all locales (other than English) as I've a localization crate that allows retrieving back the locale code (language tag) of a Locale object.

The polyfill I mentioned in the OP contains the necessary locale resources, but there's some code to rewrite.

I use

1 Like

It seems to be stuck to English.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.