{"id":19721650,"url":"https://github.com/aeurum/laselector","last_synced_at":"2026-05-31T23:32:02.292Z","repository":{"id":255239205,"uuid":"848724043","full_name":"aeurum/laselector","owner":"aeurum","description":"Select the most suitable language based on the IETF language tag.","archived":false,"fork":false,"pushed_at":"2024-09-15T16:47:21.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T00:23:51.257Z","etag":null,"topics":["bcp-47","i18n","ietf","internationalization","l10n","language","locale","localization","selector"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aeurum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-28T09:38:06.000Z","updated_at":"2024-09-15T16:47:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"88d2ca2c-e7ab-4184-93cf-bad8e2c123b6","html_url":"https://github.com/aeurum/laselector","commit_stats":null,"previous_names":["aeurum/laselector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aeurum/laselector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeurum%2Flaselector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeurum%2Flaselector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeurum%2Flaselector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeurum%2Flaselector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aeurum","download_url":"https://codeload.github.com/aeurum/laselector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeurum%2Flaselector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33753923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bcp-47","i18n","ietf","internationalization","l10n","language","locale","localization","selector"],"created_at":"2024-11-11T23:15:03.535Z","updated_at":"2026-05-31T23:32:02.277Z","avatar_url":"https://github.com/aeurum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# _la selector_\n\n_la selector_ can help you select the most suitable language based on the IETF language tag.\n\n## Installation\n\n```\nnpm i laselector\n```\n\n## Usage\n```\nconst { selectLanguage } = require('laselector')\n// import { selectLanguage } from 'laselector'\n\n// define `languages`\nconst languages = {\n  default: 'it',\n  supported: [\n    'it',\n    'fr',\n    'nl',\n    'da',\n    'wal',\n    'es-MX',\n    'pt-PT',\n    'ru-RU',\n    'tr',\n    'tr-CY'\n  ]\n}\n\nfor (const tag of [\n  null,             // it\n  'nob',            // da\n  'wal',            // wal\n  'pt',             // pt-PT\n  'pt-PT',          // pt-PT\n  'pt-BR',          // pt-PT\n  'de',             // it\n  'de-CH',          // fr\n  'tr',             // tr\n  'tur-CY',         // tr-CY\n  'ro',             // it\n  'ro-MD',          // ru-RU\n  'ru',             // ru-RU\n  'rus',            // ru-RU\n  'cu-RU',          // ru-RU\n  'uk',             // ru-RU\n  'kk-KZ',          // ru-RU\n  'fr',             // fr\n  'ar',             // it\n  'ar-EG',          // it\n  'ar-MA',          // fr\n  'af-ZA',          // nl\n  'ca',             // es-MX\n  'ca-ES-VALENCIA'  // es-MX\n]) console.log(`${tag} =\u003e ${selectLanguage(tag, languages)}`)\n```\n\n## Contributing\nContributions are only allowed in TON:\n```\nUQCYqT9-ycmXE3o57Cac1sM5ntIKdjqIwP3kzWmiZik0VU_b\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeurum%2Flaselector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faeurum%2Flaselector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeurum%2Flaselector/lists"}