https://github.com/grosser/i18n_data
Ruby: country/language names and 2-letter-code pairs, in 85 languages, for country/language i18n
https://github.com/grosser/i18n_data
Keywords from Contributors
activejob activerecord mvc countries iso3166 rubygems vulnerabilities static-analysis security-vulnerability security-tools
Last synced: about 5 hours ago
JSON representation
Repository metadata
Ruby: country/language names and 2-letter-code pairs, in 85 languages, for country/language i18n
- Host: GitHub
- URL: https://github.com/grosser/i18n_data
- Owner: grosser
- License: mit
- Created: 2009-01-04T19:20:16.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2025-12-20T02:44:42.000Z (2 months ago)
- Last Synced: 2026-02-27T03:58:33.508Z (5 days ago)
- Language: Ruby
- Homepage:
- Size: 2.05 MB
- Stars: 225
- Watchers: 4
- Forks: 62
- Open Issues: 4
- Releases: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Readme.md
- Present users coutries/languages in their language
- Convert a country/language-name to its 2-letter-code
- List of 2-letter-code/name pairs for all countries/languages in all languages
Translations
Through pkg-isocodes:
- 185 Language codes (iso 639 - 2 letter) in 68 Languages
- 246 Country codes (iso 3166 - 2 letter) in 86 Languages
Install
gem install i18n_data
Usage
require 'i18n_data'
...
I18nData.languages # {"DE"=>"German",...}
I18nData.languages('DE') # {"DE"=>"Deutsch",...}
I18nData.languages('FR') # {"DE"=>"Allemand",...}
I18nData.languages('ZH-CN') # {"DE"=>"德语",...}
...
I18nData.countries # {"DE"=>"Germany",...}
I18nData.countries('DE') # {"DE"=>"Deutschland",...}
I18nData.countries('ZH-CN') # {"DE"=>"德国",...}
...
I18nData.language_code('German') # DE
I18nData.language_code('Deutsch') # DE
I18nData.language_code('Allemand') # DE
..
I18nData.country_code('Germany') # DE
I18nData.country_code('Deutschland') # DE
..
Language Variants
While translations to language variants like ZH-CN are provided, translations of the names of those variants are not. In other words, while I18nData.languages('ZH_CN')['DE'] will give you the Chinese (as written in China) name of the German language ("德国"), the German name of the Chinese (as written in China) language is not provided.
Where the variant represents a country, you are able to combine the translations of the names of languages and countries (e.g. "#{I18nData.languages('DE')['ZH']} (#{I18nData.countries('DE')['CN']})" gives "Chinesisch (China)"), but there is no guarantee this will be correct gramatically or conceptionally in that language.
Data Providers
- FileDataProvider: FAST (default) (loading data from cache-files)
- LiveDataProvider: SLOW (fetching up-to-date data from svn repos)
Development
- update FileDataProvider caches after each code-change to make changes available to users
rake write_cache_for_file_data_provider - FileDataProvider tests might fail if caches are not updates
Alphabetical localized sorting
If you would like to have the countries list sorted alphabetically in different languages there is a gem called sort_alphabetical for that.
TODO
- include other language/country code formats (3-letter codes...) ?
- parse list of files on isocodes for write_cache instead of hardcoding country-specific ones
- rake task that checks that the readme is updated with language/country counters
Authors
Contributors
Michael Grosser
michael@grosser.it
License: MIT
Owner metadata
- Name: Michael Grosser
- Login: grosser
- Email:
- Kind: user
- Description: Group Tech Lead at Zendesk and Ruby/Rails/Kubernetes/Golang engineer with too many open-source projects.
- Website: grosser.it
- Location: San Francisco, CA
- Twitter: grosser
- Company: Zendesk.com
- Icon url: https://avatars.githubusercontent.com/u/11367?v=4
- Repositories: 524
- Last ynced at: 2024-04-15T13:44:01.129Z
- Profile URL: https://github.com/grosser
GitHub Events
Total
- Pull request event: 3
- Fork event: 1
- Issues event: 1
- Watch event: 7
- Issue comment event: 2
- Push event: 4
- Pull request review event: 1
Last Year
- Pull request event: 3
- Fork event: 1
- Issues event: 1
- Watch event: 5
- Issue comment event: 2
- Push event: 4
- Pull request review event: 1
Committers metadata
Last synced: 1 day ago
Total Commits: 207
Total Committers: 22
Avg Commits per committer: 9.409
Development Distribution Score (DDS): 0.217
Commits in past year: 4
Committers in past year: 3
Avg Commits per committer in past year: 1.333
Development Distribution Score (DDS) in past year: 0.5
| Name | Commits | |
|---|---|---|
| grosser | g****l@g****m | 162 |
| Pedro Moreira | p****o@c****h | 8 |
| Richard Doe | r****e@r****t | 5 |
| Franck Verrot | f****k@v****r | 4 |
| seb-sykio | s****r@s****r | 4 |
| Dongjin Kim | 3****2 | 3 |
| Oliver Morgan | o****m@m****m | 3 |
| Alex Sunderland | a****d@n****m | 2 |
| Jonathan Lim | j****m@n****m | 2 |
| Barry Allard | b****d@g****m | 2 |
| Robin Roestenburg | r****g@4****m | 1 |
| Arne Buchner | a****r@4****m | 1 |
| Carlos Diógenes | c****s@g****m | 1 |
| Daniel O | 8****l | 1 |
| Hakeem Abdul-Razak | 9****4 | 1 |
| Jason Barnabe | j****e@g****m | 1 |
| Lars Kuhnt | l****t@g****m | 1 |
| Olle Jonsson | o****n@g****m | 1 |
| Paweł Gościcki | p****i@g****m | 1 |
| Santiago Castro | s****0@h****m | 1 |
| Sergey Alekseev | s****y@a****o | 1 |
| enomotodev | e****v@g****m | 1 |
Committer domains:
- notonthehighstreet.com: 2
- asoft.co: 1
- 42he.com: 1
- 4me.com: 1
- me.com: 1
- sykio.fr: 1
- verrot.fr: 1
- rwdit.net: 1
- codecreations.tech: 1
Issue and Pull Request metadata
Last synced: 22 days ago
Total issues: 25
Total pull requests: 55
Average time to close issues: 4 months
Average time to close pull requests: 4 months
Total issue authors: 20
Total pull request authors: 31
Average comments per issue: 2.16
Average comments per pull request: 1.51
Merged pull request: 39
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: about 3 hours
Past year issue authors: 2
Past year pull request authors: 1
Past year average comments per issue: 0.0
Past year average comments per pull request: 1.0
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- seb-sykio (2)
- misty44 (2)
- ollym (2)
- pmor (2)
- voxik (2)
- rwd (1)
- JasonBarnabe (1)
- nbhanji (1)
- gregcha (1)
- rposborne (1)
- cyrillederche (1)
- Kulgar (1)
- robbertbrak (1)
- pjg (1)
- anh1979 (1)
Top Pull Request Authors
- grosser (12)
- kdiogenes (3)
- pmor (3)
- rwd (3)
- ncavig-indeed (2)
- hakeem0114 (2)
- bonekost (2)
- snowblink (2)
- franckverrot (2)
- seb-sykio (2)
- AgentAntelope (2)
- steakknife (1)
- ghost (1)
- juandazapata (1)
- doconnor-clintel (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 14
-
Total downloads:
- rubygems: 191,661,780 total
- Total docker downloads: 869,681,972
- Total dependent packages: 12 (may contain duplicates)
- Total dependent repositories: 3,670 (may contain duplicates)
- Total versions: 117
- Total maintainers: 1
gem.coop: i18n_data
country/language names and 2-letter-code pairs, in 85 languages
- Homepage: https://github.com/grosser/i18n_data
- Documentation: http://www.rubydoc.info/gems/i18n_data/
- Licenses: MIT
- Latest release: 1.1.0 (published over 1 year ago)
- Last Synced: 2026-03-02T06:32:15.353Z (1 day ago)
- Versions: 32
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 95,816,379 Total
- Docker Downloads: 434,840,986
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.138%
- Downloads: 0.26%
- Docker downloads count: 0.294%
- Maintainers (1)
rubygems.org: i18n_data
country/language names and 2-letter-code pairs, in 85 languages
- Homepage: https://github.com/grosser/i18n_data
- Documentation: http://www.rubydoc.info/gems/i18n_data/
- Licenses: MIT
- Latest release: 1.1.0 (published over 1 year ago)
- Last Synced: 2026-03-02T05:31:57.919Z (1 day ago)
- Versions: 32
- Dependent Packages: 12
- Dependent Repositories: 3,670
- Downloads: 95,816,379 Total
- Docker Downloads: 434,840,986
-
Rankings:
- Downloads: 0.279%
- Docker downloads count: 0.349%
- Dependent repos count: 0.522%
- Dependent packages count: 1.536%
- Average: 1.702%
- Forks count: 3.423%
- Stargazers count: 4.103%
- Maintainers (1)
proxy.golang.org: github.com/grosser/i18n_data
- Homepage:
- Documentation: https://pkg.go.dev/github.com/grosser/i18n_data#section-documentation
- Licenses: mit
- Latest release: v1.1.0 (published over 1 year ago)
- Last Synced: 2026-02-28T11:02:29.930Z (3 days ago)
- Versions: 34
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.456%
- Average: 6.674%
- Dependent repos count: 6.892%
gem.coop: grosser-i18n_data
country/language names and 2-letter-code pairs, in 85 languages
- Homepage: http://github.com/grosser/i18n_data
- Documentation: http://www.rubydoc.info/gems/grosser-i18n_data/
- Licenses: mit
- Latest release: 0.2.3 (published over 11 years ago)
- Last Synced: 2026-02-28T11:02:29.156Z (3 days ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 14,511 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 12.24%
- Downloads: 36.721%
rubygems.org: grosser-i18n_data
country/language names and 2-letter-code pairs, in 85 languages
- Homepage: http://github.com/grosser/i18n_data
- Documentation: http://www.rubydoc.info/gems/grosser-i18n_data/
- Licenses: mit
- Latest release: 0.2.3 (published over 11 years ago)
- Last Synced: 2026-02-28T11:02:29.506Z (3 days ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 14,511 Total
-
Rankings:
- Forks count: 3.085%
- Stargazers count: 3.787%
- Dependent packages count: 15.706%
- Average: 21.19%
- Downloads: 36.591%
- Dependent repos count: 46.782%
ubuntu-23.04: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Licenses:
- Latest release: 0.10.0-2 (published 20 days ago)
- Last Synced: 2026-02-11T06:41:26.946Z (20 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Licenses:
- Latest release: 0.10.0-2 (published 18 days ago)
- Last Synced: 2026-02-13T07:15:14.823Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Licenses:
- Latest release: 0.15.0-2 (published 18 days ago)
- Last Synced: 2026-02-13T18:22:57.796Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Documentation: https://packages.debian.org/bullseye/ruby-i18n-data
- Licenses:
- Latest release: 0.10.0-2 (published 21 days ago)
- Last Synced: 2026-02-13T08:21:24.023Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Licenses: mit
- Latest release: 0.10.0-2 (published 18 days ago)
- Last Synced: 2026-02-13T13:18:44.910Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Documentation: https://packages.debian.org/bookworm/ruby-i18n-data
- Licenses:
- Latest release: 0.10.0-2 (published 19 days ago)
- Last Synced: 2026-02-12T23:32:31.197Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
debian-13: ruby-i18n-data
- Homepage: https://github.com/grosser/i18n_data
- Documentation: https://packages.debian.org/trixie/ruby-i18n-data
- Licenses:
- Latest release: 0.15.0-2 (published 19 days ago)
- Last Synced: 2026-02-13T13:16:30.447Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- actions/checkout v2 composite
- ruby/setup-ruby v1 composite
- bump >= 0
- rake >= 0
- rspec ~> 3.0
- rubocop >= 0
- rubocop-rake >= 0
- rubocop-rspec >= 0
- ast 2.4.2
- bump 0.10.0
- bundler 2.3.12
- diff-lcs 1.4.4
- i18n_data 1.1.0
- json 2.7.2
- language_server-protocol 3.17.0.3
- parallel 1.26.3
- parser 3.3.4.2
- racc 1.8.1
- rainbow 3.1.1
- rake 13.0.6
- regexp_parser 2.9.2
- rexml 3.3.6
- rspec 3.10.0
- rspec-core 3.10.1
- rspec-expectations 3.10.1
- rspec-mocks 3.10.2
- rspec-support 3.10.3
- rubocop 1.65.1
- rubocop-ast 1.32.1
- rubocop-rake 0.6.0
- rubocop-rspec 2.9.0
- ruby-progressbar 1.13.0
- simple_po_parser 1.1.6
- strscan 3.1.0
- unicode-display_width 2.5.0
- simple_po_parser ~> 1.1
Score: 29.30756990090677