{"id":25842234,"url":"https://github.com/gunnarpdx/language_list","last_synced_at":"2026-06-08T02:32:25.352Z","repository":{"id":53029041,"uuid":"356113175","full_name":"GunnarPDX/language_list","owner":"GunnarPDX","description":"An Elixir implementation of the language_list ruby gem","archived":false,"fork":false,"pushed_at":"2021-07-19T05:55:01.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T06:24:57.099Z","etag":null,"topics":["elisir-spoken-languages","elixir","elixir-language-list","elixir-languages","language-list"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/GunnarPDX.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}},"created_at":"2021-04-09T02:45:36.000Z","updated_at":"2021-07-24T01:34:36.000Z","dependencies_parsed_at":"2022-09-02T04:03:23.410Z","dependency_job_id":null,"html_url":"https://github.com/GunnarPDX/language_list","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GunnarPDX%2Flanguage_list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GunnarPDX%2Flanguage_list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GunnarPDX%2Flanguage_list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GunnarPDX%2Flanguage_list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GunnarPDX","download_url":"https://codeload.github.com/GunnarPDX/language_list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241322547,"owners_count":19944073,"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":["elisir-spoken-languages","elixir","elixir-language-list","elixir-languages","language-list"],"created_at":"2025-03-01T05:38:23.232Z","updated_at":"2026-06-08T02:32:24.313Z","avatar_url":"https://github.com/GunnarPDX.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LanguageList\n\nAn Elixir implementation of the language_list ruby gem.\n\nThis package provides simple access to iso language names and codes.\n\n## Installation\n\nThis package can be installed\nby adding `language_list` to your list of dependencies in `mix.exs`:\n\nHex: [https://hex.pm/packages/language_list](https://hex.pm/packages/language_list)\n\n```elixir\ndef deps do\n  [\n    {:language_list, \"~\u003e 2.0.0\"}\n  ]\nend\n```\n\nDocumentation can be found at [https://hexdocs.pm/language_list](https://hexdocs.pm/language_list).\n\n## Usage:\n\nStandard requests will return a list of maps or strings.\n\nSearch requests return the data in a 2-tuple with the standard `:ok` or `:error` status.\n\nCalls made to functions with `!` return only the result or nil.\n\n#### `all_data`\n\nReturns all language data.\n\n```elixir\niex\u003e LanguageList.all_data\n\n[\n  %{common: false, iso_639_1: \"az\", iso_639_3: \"aze\", name: \"Azerbaijani\"},\n  %{common: false, iso_639_1: \"ba\", iso_639_3: \"bak\", name: \"Bashkir\"},\n  ...\n]\n```\n\n#### `all_common_data`\n\nReturns all common data.\n\n```elixir\niex\u003e LanguageList.all_common_data\n\n[\n  %{common: true, iso_639_1: \"af\", iso_639_3: \"afr\", name: \"Afrikaans\"},\n  %{common: true, iso_639_1: \"ar\", iso_639_3: \"ara\", name: \"Arabic\"},\n  ...\n]\n```\n\n#### `languages`\n\nReturns list of all language names.\n\n```elixir\niex\u003e LanguageList.languages\n\n[\"Afar\", \"Abkhazian\", \"Afrikaans\", \"Akan\", \"Amharic\", \"Arabic\", ...]\n\n```\n\n#### `common_languages`\n\nReturns list of all common languages.\n\n```elixir\niex\u003e LanguageList.common_languages\n\n[\"Afrikaans\", \"Arabic\", \"Bengali\", \"Tibetan\", \"Bulgarian\", ...]\n```\n\n#### `find(query, key)`\n\nAllows for query of language data by attribute.\n\nPermitted keys: `:name` , `:iso_639_3` , `:iso_639_1`\n\n`LanguageList.find!(query, key)` can be called to return w/out tuple.\n\n```elixir\niex\u003e LanguageList.find(\"Icelandic\", :name)\n\n{:ok, %{common: true, iso_639_1: \"is\", iso_639_3: \"isl\", name: \"Icelandic\"}}\n\niex\u003e LanguageList.find!(\"Icelandic\", :name)\n\n%{common: true, iso_639_1: \"is\", iso_639_3: \"isl\", name: \"Icelandic\"}\n\niex\u003e LanguageList.find(\"pt\", :iso_639_1) \n\n{:ok, %{common: true, iso_639_1: \"pt\", iso_639_3: \"por\", name: \"Portuguese\"}}\n\niex\u003e LanguageList.find(\"por\", :iso_639_3)\n\n{:ok, %{common: true, iso_639_1: \"pt\", iso_639_3: \"por\", name: \"Portuguese\"}}\n\niex\u003e LanguageList.find(\"non-existent-language\", :name)\n\n{:error, \"No matches found\"}\n\niex\u003e LanguageList.find!(\"non-existent-language\", :name)\n\nnil\n\n```\n\n## TODO:\n\n[] add native language names to json file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunnarpdx%2Flanguage_list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgunnarpdx%2Flanguage_list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunnarpdx%2Flanguage_list/lists"}