{"id":28241858,"url":"https://github.com/significa/significa-react-i18n","last_synced_at":"2025-08-19T01:08:34.033Z","repository":{"id":56005831,"uuid":"523341236","full_name":"significa/significa-react-i18n","owner":"significa","description":"Simple i18n library for React","archived":false,"fork":false,"pushed_at":"2022-12-17T09:32:51.000Z","size":181,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-11T09:49:01.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/significa.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}},"created_at":"2022-08-10T12:48:17.000Z","updated_at":"2023-01-17T12:28:07.000Z","dependencies_parsed_at":"2023-01-29T17:01:22.847Z","dependency_job_id":null,"html_url":"https://github.com/significa/significa-react-i18n","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/significa/significa-react-i18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fsignifica-react-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fsignifica-react-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fsignifica-react-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fsignifica-react-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/significa","download_url":"https://codeload.github.com/significa/significa-react-i18n/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/significa%2Fsignifica-react-i18n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271083772,"owners_count":24696364,"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-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2025-05-19T05:08:56.965Z","updated_at":"2025-08-19T01:08:34.011Z","avatar_url":"https://github.com/significa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://significa.co\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/4838076/70076649-20d29b00-15f7-11ea-9379-e2fa1889a525.png\" alt=\"logo\" width=\"300px\"\u003e\u003c/a\u003e\n\n[![React][React.js]][React-url]\n\nA Zero dependency opinionated Significa's i18n package for React.\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#messages-object\"\u003eMessages object\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#message-parameters\"\u003eMessage parameters\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## Usage\n\nInclude the provider on the top level of your app.\n\nPass the messages object based on the current language selected on your app.\n\n```js\nimport { I18nProvider } from '@significa/react-i18n'\n\n\u003cI18nProvider messages={i18nMessages}\u003e\n  \u003cApp /\u003e\n\u003c/I18nProvider\u003e\n```\n\nYou can either use the `useTranslation` helper or the `Translation` component\n\n```js\nimport { useTranslation } from '@significa/react-i18n'\n\nconst YourComponent = () =\u003e {\n  const { t } = useTranslation()\n\n  return (\n    \u003cdiv\u003e\n      \u003cp\u003e{t('yourMessage')}\u003c/p\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n```js\nimport { Translation } from '@significa/react-i18n'\n\nconst YourComponent = () =\u003e {\n  return (\n    \u003cdiv\u003e\n      \u003cTranslation id=\"yourMessage\" /\u003e\n    \u003c/div\u003e\n  )\n}\n```\n\n## Messages object\n\nYour messages object should be according to the following example.\n\n```\n{\n  id: message,\n  anotherId: anotherMessage\n}\n```\n\n## Message parameters\n\nIt's possible to add parameters to the message, a string between double curlybraces is represented as a parameter.\n\n\n```js\n// Messages Object\n{\n  greet: \"Hello {{name}}\"\n}\n```\n\n```js\n\u003cTranslation id=\"greet\" values={{\n  name: user.name   // {{name}} will be replaced by `user.name`\n}} /\u003e\n\nOR\n\n\u003cp\u003e\n  {t('greet', { name: user.name })}\n\u003c/p\u003e\n```\n\n## License\n\n[MIT](https://github.com/Significa/significa-start/blob/master/LICENSE)\n\n[![Significa footer](https://user-images.githubusercontent.com/17513388/71971185-fc736b00-3201-11ea-9678-090b6b6a0b3f.png)](https://significa.co)\n\n[React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge\u0026logo=react\u0026logoColor=61DAFB\n[React-url]: https://reactjs.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignifica%2Fsignifica-react-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignifica%2Fsignifica-react-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignifica%2Fsignifica-react-i18n/lists"}