{"id":16463322,"url":"https://github.com/dptole/al-api","last_synced_at":"2025-02-27T08:41:36.477Z","repository":{"id":57109564,"uuid":"111878598","full_name":"dptole/al-api","owner":"dptole","description":"Accept-Language extra info API","archived":false,"fork":false,"pushed_at":"2017-12-25T05:21:42.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T07:16:30.411Z","etag":null,"topics":["api","country","http","iana-subtag-registry","language","region"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dptole.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":"2017-11-24T05:14:30.000Z","updated_at":"2019-04-27T22:14:40.000Z","dependencies_parsed_at":"2022-08-20T17:41:01.180Z","dependency_job_id":null,"html_url":"https://github.com/dptole/al-api","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dptole%2Fal-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dptole","download_url":"https://codeload.github.com/dptole/al-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240996027,"owners_count":19890870,"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":["api","country","http","iana-subtag-registry","language","region"],"created_at":"2024-10-11T11:14:06.421Z","updated_at":"2025-02-27T08:41:36.453Z","avatar_url":"https://github.com/dptole.png","language":"JavaScript","readme":"Accept-Language extra info API\n==============================\n\n  [![Build status][circle-ci-badge]][circle-ci]\n  [![Issue status][gh-issues-badge]][gh-issues]\n  [![NPM Version][npm-module-version-badge]][npm-module]\n  [![Downloads][npm-downloads-total-badge]][npm-module]\n  [![Say thanks][saythanks-badge]][saythanks-to]\n\nAPI for reading extra information from the HTTP header [Accept-Language][url-moz-accept-language] based on the [Language subtag registry][url-language-subtag-registry] file.\n\nDetails for the [Accept-Language][url-moz-accept-language] HTTP header can be found at the [Tags for Identifying Languages][url-rfc5646-3.1], which refers to the [Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content][url-rfc7231-3.1.3.1].\n\nExamples\n========\n\n```javascript\nconst al_api = require('@dptole/al-api')\n\nal_api.getLanguageDescriptionBySubtag('en') // ['English']\nal_api.getRegionDescriptionBySubtag('US') // ['United States']\n\nal_api.getAcceptLanguageInfo('pt,pt-BR;q=0.9,es-VE;q=0.8')\n/*\n  [{\n    'language': {\n      'subtag': 'pt',\n      'info': ['Portuguese']\n    }\n  }, {\n    'language': {\n      'subtag': 'pt',\n      'info': ['Portuguese']\n    },\n    'region': {\n      'subtag': 'BR',\n      'info': ['Brazil']\n    }\n  }, {\n    'language': {\n      'subtag': 'es',\n      'info': ['Castilian']\n    },\n    'region': {\n      'subtag': 'VE',\n      'info': ['Venezuela']\n    }\n  }]\n*/\n```\n\nLicense\n=======\n\n[MIT][LICENSE]\n\n[circle-ci]: https://circleci.com/gh/dptole/al-api\n[circle-ci-badge]: https://img.shields.io/circleci/project/dptole/al-api.svg\n[gh-issues-badge]: https://img.shields.io/github/issues-raw/dptole/al-api.svg\n[gh-issues]: https://github.com/dptole/al-api/issues\n[npm-module-version-badge]: https://img.shields.io/npm/v/@dptole/al-api.svg\n[npm-module]: https://www.npmjs.org/package/@dptole/al-api\n[npm-downloads-total-badge]: https://img.shields.io/npm/dt/@dptole/al-api.svg\n[saythanks-badge]: https://img.shields.io/badge/say%20thanks-%E3%83%84-44cc11.svg\n[saythanks-to]: https://saythanks.io/to/dptole\n[url-moz-accept-language]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language\n[url-rfc7231-5.3.5]: https://tools.ietf.org/html/rfc7231#section-5.3.5\n[url-rfc7231-3.1.3.1]: https://tools.ietf.org/html/rfc7231#section-3.1.3.1\n[url-rfc5646-3.1]: https://tools.ietf.org/html/rfc5646#section-3.1\n[url-language-subtag-registry]: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry\n[LICENSE]: LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fal-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdptole%2Fal-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdptole%2Fal-api/lists"}