
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Cached translations of timezones for js
gem install js-cldr-timezones
This project supports over 573 languages. We provide a file with a hash that has the translations. In the html header translations you should add:
<%= javascript_include_tag "js_cldr/#{locale}_cldr_timezones" %>
locale
is a bcp-47 language tag. However the dash is substituted by an underscore to make it. For example:
<%= javascript_include_tag "js_cldr/es_cldr_timezones" %>
<%= javascript_include_tag "js_cldr/ja_cldr_timezones" %>
<%= javascript_include_tag "js_cldr/es_MX_cldr_timezones" %>
This provides access to a hash that has the name in the following format:
"#{locale}_cldr_timezones_hash"
The hash contains a meaninful subset of 124 timezones. It has the timezone indentifier as the key and the translation as the value.
Examples:
es_cldr_timezones_hash["Europe/Moscow"] # "(GMT+04:00) Moscú"
ja_cldr_timezones_hash["America/Cordoba"] # "(GMT-09:00)モスクワ"
There is also support for fallback.
es_MX_cldr_timezones_hash["Europe/Moscow"] # "(GMT+04:00) Moscú"
Translations are already included in the project and you don't need to generate them. However if you want to fork this project and generate your own translations you should simply run:
rake generate_timezones
This project uses ruby-cldr-timezones
to generate the javascript for each language.
ruby-cldr-timezones
Ana Martinez
acemacu@gmail.com
License: MIT
FAQs
Unknown package
We found that js-cldr-timezones demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.