{"id":25961724,"url":"https://github.com/ttab/langos","last_synced_at":"2026-05-07T12:32:55.680Z","repository":{"id":197749393,"uuid":"699252097","full_name":"ttab/langos","owner":"ttab","description":"Langos validates a language (ISO 639-1) region (ISO 3166-1 alpha-2) combinations in the format \"language[-region]\".","archived":false,"fork":false,"pushed_at":"2023-10-16T14:32:05.000Z","size":181,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-04T19:44:04.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ttab.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":"2023-10-02T08:57:34.000Z","updated_at":"2024-11-13T20:01:02.000Z","dependencies_parsed_at":"2025-03-04T19:41:18.133Z","dependency_job_id":"d841d033-337c-4157-90c1-342292ca6e47","html_url":"https://github.com/ttab/langos","commit_stats":null,"previous_names":["ttab/langos"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ttab/langos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Flangos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Flangos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Flangos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Flangos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttab","download_url":"https://codeload.github.com/ttab/langos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttab%2Flangos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32737766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-03-04T19:41:13.133Z","updated_at":"2026-05-07T12:32:55.651Z","avatar_url":"https://github.com/ttab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Langos\n\n[![GoDev](https://img.shields.io/static/v1?label=godev\u0026message=reference\u0026color=00add8)][godev]\n[![Build Status](https://github.com/ttab/langos/actions/workflows/test.yaml/badge.svg?branch=main)][actions]\n\nLangos validates a language (ISO 639-1) region (ISO 3166-1 alpha-2) combinations in the format \"language[-region]\" and returns basic information about the language and region.\n\nExample:\n\n``` go\nfunc ExampleGetLanguage() {\n\tinfo, err := langos.GetLanguage(\"en-gb\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tknownCombo := langos.IsKnownCombination(info.Code)\n\n\tfmt.Printf(\"code: %s\\n\", info.Code)\n\tfmt.Printf(\"language: %s - %s\\n\", info.Language, info.LanguageName)\n\tfmt.Printf(\"region: %s - %s\\n\", info.Region, info.RegionName)\n\tfmt.Printf(\"is known combination: %v\", knownCombo)\n\n\t// Output:\n\t// code: en-GB\n\t// language: en - English\n\t// region: GB - United Kingdom\n\t// is known combination: true\n}\n```\n\n## Data sources\n\nLangos uses the languages and regions defined in the [IANA language subtag registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) together with the the [list of known language and region codes](http://www.sean-crist.com/professional/pages/language_region_codes/index.html) compiled by Sean Christ. \n\n[godev]: https://pkg.go.dev/github.com/ttab/langos\n[actions]: https://github.com/ttab/langos/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Flangos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttab%2Flangos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttab%2Flangos/lists"}