Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.