iso_codes
Version, currently 0.4.415 versions
- 0.5.0latestJul 30, 2025
- 0.4.9not indexedJun 24, 2026
- 0.4.8not indexedJun 24, 2026
- 0.4.7not indexedJun 24, 2026
- 0.4.6not indexedJun 24, 2026
- 0.4.5not indexedJun 24, 2026
- 0.4.4not indexedJun 24, 2026
- 0.4.3not indexedJun 24, 2026
- 0.4.2not indexedJun 24, 2026
- 0.4.1not indexedJun 24, 2026
- 0.4.0not indexedJun 24, 2026
- 0.3.1not indexedJun 24, 2026
- 0.3.0not indexedJun 24, 2026
- 0.2.0not indexedJun 24, 2026
- 0.1.0not indexedJun 24, 2026
github.com/mamantoha/iso_codes
🌐 Lists of various ISO standards (ISO 3166-1 for countries and ISO 639-2 for languages) with translations for Crystal
Nothing has been indexed for 0.4.4 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
iso_codes:
github: mamantoha/iso_codes
version: ~> 0.4.4Then run:
shards installshard.yml
No shard.yml has been indexed for 0.4.4. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# ISO Codes
[](https://github.com/mamantoha/iso_codes/actions/workflows/crystal.yml)
[](https://github.com/mamantoha/iso_codes/releases)
[](https://github.com/mamantoha/iso_codes/blob/master/LICENSE)
This project provides lists of various ISO standards (`ISO 3166-1` for countries and `ISO 639-2` for languages) with translations for Crystal programming language.
## ISO 3166-1
This lists the 2-letter country code and "short" country name. The
official ISO 3166-1 maintenance agency is ISO.
<http://www.iso.org/iso/country_codes>
## ISO 639-2
This lists the 2-letter and 3-letter language codes and language
names. The official ISO 639-2 maintenance agency is the Library of
Congress.
<http://www.loc.gov/standards/iso639-2/>
## Translations
* 249 Country codes (`ISO 3166-1` - 2 letter) in 161 Languages
* 487 Language codes (`ISO_639-2` - 2 letter) in 100 Languages
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
iso_codes:
github: mamantoha/iso_codes
```
2. Run `shards install`
## Usage
```crystal
require "iso_codes"
country = ISOCodes.countries.find_by_alpha_2("UA")
# => #<ISOCodes::Country:0x7f4bd307e5a0 @alpha_2="UA", @alpha_3="UKR", @name="Ukraine", @numeric="804", @official_name=nil, @flag="🇺🇦", @common_name=nil>
country.translation("pt")
# => Ucrânia
language = ISOCodes.languages.find_by_name("Ukrainian")
# => #<ISOCodes::Language:0x7f7c5b9eae80 @alpha_2="uk", @alpha_3="ukr", @name="Ukrainian", @common_name=nil, @bibliographic=nil>
language.translation("fr")
# => Ukrainien
```
## Development
Update data from <https://salsa.debian.org/iso-codes-team/iso-codes.git> to make changes available to users:
```
make update_data
```
## Contributing
1. Fork it (<https://github.com/mamantoha/iso_codes/fork>)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.4.4- Tagged
- Jun 24, 2026
- Commit
b28e2cfd8dec- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/mamantoha/iso_codes
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 15