Moment: in locale "tr", "Do" format is not working

Created on 14 Mar 2019  ·  3Comments  ·  Source: moment/moment

Describe the bug
in locale "tr", "Do" format is not working. Need to test all formats again.
To Reproduce
Steps to reproduce the behavior:
-> moment().locale('tr').format('Do')

Expected behavior
It should return suffixes. Ex: for value 15 -> "15inci"

Screenshots

  • no

Desktop (please complete the following information):

  • Browser: any browser

Smartphone (please complete the following information):

  • Browser: any browser

Moment-specific environment

  • The time zone setting of the machine the code is running on
  • The time and date at which the code was run
  • Other libraries in use (TypeScript, Immutable.js, etc)

Please run the following code in your environment and include the output:

console.log((new Date()).toString())
console.log((new Date()).toLocaleString())
console.log((new Date()).getTimezoneOffset())
console.log(navigator.userAgent)
console.log(moment.version)
Thu Mar 14 2019 10:12:15 GMT+0300 (GMT+03:00) debugger eval code:1:1
3/14/2019, 10:12:15 AM debugger eval code:2:1
-180 debugger eval code:3:1
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:65.0) Gecko/20100101 Firefox/65.0 debugger eval code:4:1
2.24.0
Language Up-For-Grabs

Most helpful comment

I would like to work on this, if that's Ok

All 3 comments

I think this line should not be there then (or moved before default: line) where suffixes are added.

I would like to work on this, if that's Ok

Thanks for this request.

Ordinals used to be there. They were asked to be removed in https://github.com/moment/moment/issues/4122#issuecomment-353021460 (that is the locale author) so I am not sure we should add them back. I will close this issue unless there is a strong case to re-open (government source, cldr, or similar)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vbullinger picture vbullinger  ·  3Comments

slavafomin picture slavafomin  ·  3Comments

BCup picture BCup  ·  3Comments

nikocraft picture nikocraft  ·  3Comments

chitgoks picture chitgoks  ·  3Comments