{"id":21281906,"url":"https://github.com/guypeer8/react-transboard","last_synced_at":"2026-05-15T20:01:35.312Z","repository":{"id":57140886,"uuid":"169384811","full_name":"guypeer8/react-transboard","owner":"guypeer8","description":":globe_with_meridians: A translation board for making your react app multilingual","archived":false,"fork":false,"pushed_at":"2019-02-21T14:11:47.000Z","size":371,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-20T00:44:58.454Z","etag":null,"topics":["languages","localization","multilingual","multilingual-websites","react","translation","translation-management"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-transboard","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/guypeer8.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":"2019-02-06T09:58:04.000Z","updated_at":"2020-02-05T06:33:56.000Z","dependencies_parsed_at":"2022-09-01T23:51:45.958Z","dependency_job_id":null,"html_url":"https://github.com/guypeer8/react-transboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guypeer8/react-transboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guypeer8%2Freact-transboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guypeer8%2Freact-transboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guypeer8%2Freact-transboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guypeer8%2Freact-transboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guypeer8","download_url":"https://codeload.github.com/guypeer8/react-transboard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guypeer8%2Freact-transboard/sbom","scorecard":{"id":450403,"data":{"date":"2025-08-11","repo":{"name":"github.com/guypeer8/react-transboard","commit":"c8858ab2efed739b0e6240d3afe540b1aea88f81"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T08:04:59.839Z","repository_id":57140886,"created_at":"2025-08-19T08:04:59.839Z","updated_at":"2025-08-19T08:04:59.839Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33077922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["languages","localization","multilingual","multilingual-websites","react","translation","translation-management"],"created_at":"2024-11-21T10:52:10.587Z","updated_at":"2026-05-15T20:01:35.281Z","avatar_url":"https://github.com/guypeer8.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-transboard\n\n- A translation board for making your react app multilingual.\n[GIF](https://media.giphy.com/media/3gL2vTWy9o4B61dX8U/giphy.gif)\n\n## Installation\n```js\nnpm install --save react-transboard\n```\n\n## Usage\n### **Top level usage**\n- **`react-transboard`** supplies `TranslationProvider`, `Translator` and `TranslationViewer` components. \n    - `TranslationProvider` is the translation context provider of the app.\n        - `props`:\n            - `dev` is the environment indicator. If true, all relevant widgets will render, otherwise, the current translation will be used without supplying the translation board itself.\n            - `dict` is a dictionary built ahead you can supply for components to use.\n    - `Translator` is the translation board itself.\n    - `TranslationViewer` a cool widget based on `react-state-trace` which lets you see the translation data as you edit it.\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { \n    TranslationProvider, \n    TranslationViewer, \n    Translator,\n} from 'react-transboard';\nimport AppRouter from './router';\nimport StoreProvider from './store';\n\nconst dict = {\n    Spanish: {\n        hello: 'hola',\n        goodbye: 'adios',\n    },\n    Russian: {\n        hello: 'Привет',\n        goodbye: 'до свидания',  \n    },\n};\n\nconst dev = window.DEVELOPMENT;\n\nconst App = () =\u003e (\n    \u003cTranslationProvider \n        dev={dev} \n        dict={dict}\n    \u003e\n        \u003cTranslator/\u003e\n        \u003cTranslationViewer/\u003e\n        \u003cStoreProvider\u003e\n            \u003cAppRouter/\u003e\n        \u003c/StoreProvider\u003e\n    \u003c/TranslationProvider\u003e\n);\n\nReactDOM.render(\n    \u003cApp/\u003e,\n    document.getElementById('root')\n);\n```\n### **The text in the application**\n- **`react-transboard`** supplies the function `t` which you should pass your text to using the base language you want to translate from, so the text in your app will be trackable by the `Translator`.\n\n```js\nimport React from 'react';\nimport { t } from 'react-transboard';\nimport { NavLink } from 'react-router-dom';\nimport AuthLayout from './Base/AuthLayout';\nimport LoginForm from './Base/LoginForm';\nimport LoginMessage from './Base/LoginMessage';\n\nconst Login = () =\u003e (\n    \u003cAuthLayout header={t('Connect to your account')}\u003e\n        \u003cLoginForm /\u003e\n        \u003cLoginMessage\u003e\n            \u003cNavLink to='/signup'\u003e\n                {t('Join')}\n            \u003c/NavLink\u003e\n        \u003c/LoginMessage\u003e\n    \u003c/AuthLayout\u003e\n);\n\nexport default Login;\n```\n### **Translation hooks**\n- **`react-transboard`** supplies 2 very useful hooks that expose data and functionality.\n    - `useTranslations` lets you extract:\n        - `baseLocale` which is the base language you translate from.\n        - `translatedLocales` which is an array of the languages you chose to translate to.\n        - `translations` which is the object that holds your translations.\n        - `translateTo(lang: String)` which is a function you can apply to move to a translation.\n    - `useDict` lets you consume the dictionary (if you provided one) provided by `TranslationProvider` component.\n\n```js\nimport React from 'react';\nimport { useTranslations, useDict } from 'react-transboard';\n\nconst Info = () =\u003e {\n    const { baseLocale, translatedLocales, translations, translateTo } = useTranslations();\n    const HELLO = useDict('hello');\n    \n    return (\n        \u003cdiv\u003e\n            \u003cp\u003eBase Locale: {baseLocale}\u003c/p\u003e\n            \u003cul\u003e\n                \u003cli\u003eTranslatable Locales:\u003c/li\u003e\n                {translatedLocales.map(locale =\u003e\n                    \u003cli key={locale}\u003e{locale}\u003c/li\u003e\n                )}\n            \u003c/ul\u003e\n            \u003cdiv\u003eTranslations: {JSON.stringify(translations, null, 2)}\u003c/div\u003e\n            \u003cdiv\u003e\n                \u003cbutton onClick={() =\u003e translateTo('Spanish')}\u003eSpanish\u003c/button\u003e\n                \u003cbutton onClick={() =\u003e translateTo('Russian')}\u003eRussian\u003c/button\u003e\n                \u003cbutton onClick={() =\u003e alert(HELLO)}\u003e\n                    Say hello in the current language!\n                \u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n    );\n};\n\nexport default Info;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguypeer8%2Freact-transboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguypeer8%2Freact-transboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguypeer8%2Freact-transboard/lists"}