
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
countries_and_languages
Advanced tools
In currently 85 languages supplied by I18nData.
Languages and countries are stored as iso 639/iso 3166 - 2 letter code.
Methods are available in views.
@user.country == 'de'
@user.language == 'de'
User is from <%=country(@user.country)%> and speaks <%=language(@user.language)%>
User is from Germany and speaks German.
Please select you language <%=f.select_tag(:language,options_for_select(languages))%>
Select box with all 185 localized languages.
If you have special needs like renaming countries or only displaying a subset, have a look at the code and overwrite as necessary.
DEMO can be found in Gettext example application
gem install countries_and_languages
# Gemfile
gem 'countries_and_languages', :require => 'countries_and_languages/rails'
Michael Grosser
michael@grosser.it
License: MIT
FAQs
Unknown package
We found that countries_and_languages 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
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.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.