{"id":30060207,"url":"https://github.com/tiaanduplessis/langylanglang","last_synced_at":"2025-08-08T01:42:45.662Z","repository":{"id":34243995,"uuid":"173303649","full_name":"tiaanduplessis/langylanglang","owner":"tiaanduplessis","description":"Localize your interface","archived":false,"fork":false,"pushed_at":"2022-12-08T15:16:27.000Z","size":290,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T19:52:35.439Z","etag":null,"topics":["langauge","localization"],"latest_commit_sha":null,"homepage":"","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/tiaanduplessis.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":"2019-03-01T13:08:59.000Z","updated_at":"2019-09-12T17:10:36.000Z","dependencies_parsed_at":"2022-09-14T02:30:49.370Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/langylanglang","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/langylanglang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Flangylanglang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Flangylanglang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Flangylanglang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Flangylanglang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/langylanglang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Flangylanglang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352310,"owners_count":24402672,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"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":["langauge","localization"],"created_at":"2025-08-08T01:42:35.841Z","updated_at":"2025-08-08T01:42:45.651Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"header.svg\" alt=\"langylanglang\" /\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n\n[![package version](https://img.shields.io/npm/v/langylanglang.svg?style=flat-square)](https://npmjs.org/package/langylanglang)\n[![package downloads](https://img.shields.io/npm/dm/langylanglang.svg?style=flat-square)](https://npmjs.org/package/langylanglang)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n[![package license](https://img.shields.io/npm/l/langylanglang.svg?style=flat-square)](https://npmjs.org/package/langylanglang)\n[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n\u003e Localize your interface\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Install](#install)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Usage\n\n```js\nimport { set, onMissingKey, t, locale, fallback } from './langylanglang'\n\nset('en', {\n  greeting: 'Hi {bar}! how are you?',\n  info: 'Bye buddy!'\n})\n\nset('za', {\n  greeting: 'Hi {bar}! Hoe gaan dit my bra?',\n  info: 'Cheers tjom!'\n})\n\n// Can also set multiple\n// set({\n//   'en': {\n//     greeting: 'Hi {bar}! how are you?',\n//     info: 'Bye buddy!'\n//   },\n//   {\n//     greeting: 'Hi {bar}! Hoe gaan dit my bra?',\n//     info: 'Cheers tjom!'\n//   }\n// })\n\nonMissingKey((...args) =\u003e {\n  console.log('Got missing key', args)\n  return ''\n})\n\nconsole.log(\n  t('greeting', {\n    bar: 'Tiaan',\n    bing: 'mcface'\n  })\n)\n\nconsole.log(t('info'))\n\nlocale('za')\n\nconsole.log(\n  t('greeting', {\n    bar: 'Tiaan',\n    bing: 'mcface'\n  })\n)\n\nconsole.log(t('info'))\n```\n\n\n## Install\n\nThis project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).\n\n```sh\n$ npm install langylanglang\n$ # OR\n$ yarn add langylanglang\n```\n\n\n## Contribute\n\n1. Fork it and create your feature branch: `git checkout -b my-new-feature`\n2. Commit your changes: `git commit -am \"Add some feature\"`\n3. Push to the branch: `git push origin my-new-feature`\n4. Submit a pull request\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Flangylanglang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Flangylanglang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Flangylanglang/lists"}