iso_code

It translate all available languages (ISO 639-3) and countries (ISO 3166) into various languages.

Install

gem 'iso_code'

Usage

This returns all available countries in english, german and polish.

require 'iso_code'
IsoCode::Iso3166.new(:de, :pl).read

This returns all available languages in english, german and polish.

require 'iso_code'
IsoCode::Iso639.new(:de, :pl).read

Todo

  • Write specs for full cov

  • Implement scriptnames

  • Implement subdevisions

  • Implement currencies

Credits

The project iso_code have been inspired by the debian iso-code project and for the need of translated country names.