Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@discourse/moment-timezone-names-translations
Advanced tools
Readme
This repository provides translation files for timezone names. It should be mostly used in conjuction with Moment Timezone, as this repository provides a helper function (moment.tz.localizedNames()
) that supplants a Moment Timezone function (moment.tz.names()
).
Load the language file of your choice from /locales
and call moment.tz.localizedNames()
. This will return an array of timezone names as below:
{"value":"Africa/Abidjan","name":"أبيدجان","id":"Africa/Abidjan"},
{"value":"Africa/Accra","name":"أكرا","id":"Africa/Accra"},
{"value":"Africa/Addis_Ababa","name":"أديس أبابا","id":"Africa/Addis_Ababa"},
...
{"value":"Pacific/Wallis","name":"واليس","id":"Pacific/Wallis"}
If you would like to add a missing translation, you can run:
ruby pull-translations.rb --language=ar
where ar
is the language code in the Unicode CLDR source: https://unicode.org/repos/cldr/trunk/common/main/ar.xml
.
The translations provided by Unicode CLDR do not correspond entirely with the list of timezones used by Moment Timezone.
FAQs
Translation files for Moment.js timezone names.
The npm package @discourse/moment-timezone-names-translations receives a total of 4,117 weekly downloads. As such, @discourse/moment-timezone-names-translations popularity was classified as popular.
We found that @discourse/moment-timezone-names-translations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.