{"id":15692315,"url":"https://github.com/mamantoha/iso_codes","last_synced_at":"2025-05-08T02:24:11.067Z","repository":{"id":66224765,"uuid":"340901426","full_name":"mamantoha/iso_codes","owner":"mamantoha","description":"🌐 Lists of various ISO standards (ISO 3166-1 for countries and ISO 639-2 for languages) with translations for Crystal","archived":false,"fork":false,"pushed_at":"2025-04-02T08:29:56.000Z","size":2436,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T09:31:52.576Z","etag":null,"topics":["countries","crystal","emoji","hacktoberfest","iso-3166-1","iso-639-1","languages"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamantoha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-21T12:56:20.000Z","updated_at":"2025-04-02T08:29:39.000Z","dependencies_parsed_at":"2023-03-10T23:43:57.055Z","dependency_job_id":"da96f14a-9af1-494f-bb67-ba619d65fc9c","html_url":"https://github.com/mamantoha/iso_codes","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fiso_codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fiso_codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fiso_codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamantoha%2Fiso_codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamantoha","download_url":"https://codeload.github.com/mamantoha/iso_codes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252985177,"owners_count":21835932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","crystal","emoji","hacktoberfest","iso-3166-1","iso-639-1","languages"],"created_at":"2024-10-03T18:31:27.495Z","updated_at":"2025-05-08T02:24:11.036Z","avatar_url":"https://github.com/mamantoha.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISO Codes\n\n[![Crystal CI](https://github.com/mamantoha/iso_codes/actions/workflows/crystal.yml/badge.svg)](https://github.com/mamantoha/iso_codes/actions/workflows/crystal.yml)\n[![GitHub release](https://img.shields.io/github/release/mamantoha/iso_codes.svg)](https://github.com/mamantoha/iso_codes/releases)\n[![License](https://img.shields.io/github/license/mamantoha/iso_codes.svg)](https://github.com/mamantoha/iso_codes/blob/master/LICENSE)\n\nThis project provides lists of various ISO standards (`ISO 3166-1` for countries and `ISO 639-2` for languages) with translations for Crystal programming language.\n\n## ISO 3166-1\n\nThis lists the 2-letter country code and \"short\" country name. The\nofficial ISO 3166-1 maintenance agency is ISO.\n\n\u003chttp://www.iso.org/iso/country_codes\u003e\n\n## ISO 639-2\n\nThis lists the 2-letter and 3-letter language codes and language\nnames. The official ISO 639-2 maintenance agency is the Library of\nCongress.\n\n\u003chttp://www.loc.gov/standards/iso639-2/\u003e\n\n## Translations\n\n* 249 Country codes (`ISO 3166-1` - 2 letter) in 161 Languages\n* 487 Language codes (`ISO_639-2` - 2 letter) in 98 Languages\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     iso_codes:\n       github: mamantoha/iso_codes\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"iso_codes\"\n\ncountry = ISOCodes.countries.find_by_alpha_2(\"UA\")\n# =\u003e #\u003cISOCodes::Country:0x7f4bd307e5a0 @alpha_2=\"UA\", @alpha_3=\"UKR\", @name=\"Ukraine\", @numeric=\"804\", @official_name=nil, @flag=\"🇺🇦\", @common_name=nil\u003e\n\ncountry.translation(\"pt\")\n# =\u003e Ucrânia\n\nlanguage = ISOCodes.languages.find_by_name(\"Ukrainian\")\n# =\u003e #\u003cISOCodes::Language:0x7f7c5b9eae80 @alpha_2=\"uk\", @alpha_3=\"ukr\", @name=\"Ukrainian\", @common_name=nil, @bibliographic=nil\u003e\n\nlanguage.translation(\"fr\")\n# =\u003e Ukrainien\n```\n\n## Development\n\nUpdate data from \u003chttps://salsa.debian.org/iso-codes-team/iso-codes.git\u003e to make changes available to users:\n\n```\nmake update_data\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/mamantoha/iso_codes/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fiso_codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamantoha%2Fiso_codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamantoha%2Fiso_codes/lists"}