Moment.js - timezone language (localization)

I use "Moment.js" and add a "time-zone" in a web application that supports several languages ​​(English, German, French, etc.).

So, to improve the user interface, I would like to know if there is a localization file (for example, a Moment.js file) that can change the names of time zones from English to the desired language or I need to write it myself

For example: String "Europe / Vienna" in this case will change to "Europe / Vienna"

+6
source share
1 answer

Few things:

  • What you are looking for does not exist at or at the time.
  • "/". IANA .
  • , IANA . , " " , "Mitteleuropäische Zeit" , CLDR.
  • , CLDR JavaScript, AFAIK . .

  • IANA . .NET TimeZoneNames (demo ), JS. JavaScript. - ( ), .

  • , , , , .

+8

Source: https://habr.com/ru/post/1666498/


All Articles