{"id":21516479,"url":"https://github.com/nexys-system/react-i18n","last_synced_at":"2026-04-11T15:35:12.639Z","repository":{"id":57130553,"uuid":"398280989","full_name":"nexys-system/react-i18n","owner":"nexys-system","description":"i18n small library for react. Integrates easily with any backend","archived":false,"fork":false,"pushed_at":"2024-01-31T00:02:34.000Z","size":455,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T02:59:32.358Z","etag":null,"topics":["i18n","i18n-react","javascript","nexys","nodependence","react","typescript"],"latest_commit_sha":null,"homepage":"https://nexys-system.github.io/react-i18n/","language":"TypeScript","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/nexys-system.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":"2021-08-20T13:12:27.000Z","updated_at":"2022-06-20T13:32:31.000Z","dependencies_parsed_at":"2024-11-24T02:00:05.390Z","dependency_job_id":null,"html_url":"https://github.com/nexys-system/react-i18n","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Freact-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Freact-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Freact-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nexys-system%2Freact-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nexys-system","download_url":"https://codeload.github.com/nexys-system/react-i18n/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066191,"owners_count":20392407,"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":["i18n","i18n-react","javascript","nexys","nodependence","react","typescript"],"created_at":"2024-11-24T00:21:36.946Z","updated_at":"2025-12-31T00:17:07.580Z","avatar_url":"https://github.com/nexys-system.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# I18n for React\n\n[![NPM package](https://badge.fury.io/js/%40nexys%2Freact-i18n.svg)](https://www.npmjs.com/package/@nexys/react-i18n)\n[![NPM package](https://img.shields.io/npm/v/@nexys/react-i18n.svg)](https://www.npmjs.com/package/@nexys/react-i18n)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io/)\n[![Test Package](https://github.com/nexys-system/react-i18n/actions/workflows/test.yml/badge.svg)](https://github.com/nexys-system/react-i18n/actions/workflows/test.yml)\n[![Publish](https://github.com/nexys-system/react-i18n/actions/workflows/publish.yml/badge.svg)](https://github.com/nexys-system/react-i18n/actions/workflows/publish.yml)\n[![Deploy](https://github.com/nexys-system/react-i18n/actions/workflows/deploy.yml/badge.svg)](https://github.com/nexys-system/react-i18n/actions/workflows/deploy.yml)\n\nI18n implementation.\n\n## Features\n\n- get strings from a backend\n- strings are cached in the local store\n- untranslated strings are added to the local store\n\n## Get Started\n\n### Installation\n\n`yarn add @nexys/react-i18n`\n\n### Intialization\n\n```\nimport I18nService from '@nexys/react-i18n';\n\nconst i18n = new I18n(); // this needs to be done once\ni18n.init(); // gets the strings\n\ni18n.translate('myStringToBeTranslated')\n```\n\n#### With wrapper\n\n```\nimport I18nService from '@nexys/react-i18n';\n\nconst i18n = new I18n(); // this needs to be done once\n\nconst UI = () =\u003e \u003cp\u003e{i18n.translate('myStringToBeTranslated')}\u003c/p\u003e;\n\nexport default Wrapper(i18n, UI);\n```\n\nsee https://github.com/nexys-system/react-i18n/blob/master/src/app.tsx for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexys-system%2Freact-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexys-system%2Freact-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexys-system%2Freact-i18n/lists"}