amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Consider using standard format for `amp-timeago` locale

Open TomerAberbach opened this issue 4 years ago • 1 comments

Describe the new feature or change to an existing feature you'd like to see

I would like amp-timeago's locale attribute to use some standardized format, such as IETF language tags (e.g. zh-CN), as opposed to some custom format (zhCN).

Describe alternatives you've considered

I've formatted locales to amp-timeago's format in the meantime.

Additional context

Using a non-standard format causes unnecessary headaches for developers because the default locale libraries of programming languages (e.g. Java) do not support the format out of the box. They support the standard format (and output it).

TomerAberbach avatar Jan 20 '21 18:01 TomerAberbach

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 08:07 stale[bot]