{"id":4514,"url":"https://github.com/derzunov/redux-react-native-i18n","last_synced_at":"2026-01-14T17:52:04.495Z","repository":{"id":57351306,"uuid":"75115342","full_name":"derzunov/redux-react-native-i18n","owner":"derzunov","description":"An i18n solution for React Native apps on Redux","archived":false,"fork":false,"pushed_at":"2018-05-29T13:40:40.000Z","size":189,"stargazers_count":47,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-05T15:09:37.823Z","etag":null,"topics":["arabic","belorusian","chinese","english","french","german","hindi","i18n","internationalization","l10n","languages","localization","mobile","pluralization","polish","react","react-native","redux","russian","serbian"],"latest_commit_sha":null,"homepage":null,"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/derzunov.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":"2016-11-29T19:38:06.000Z","updated_at":"2023-07-28T13:10:48.000Z","dependencies_parsed_at":"2022-08-31T03:50:41.808Z","dependency_job_id":null,"html_url":"https://github.com/derzunov/redux-react-native-i18n","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/derzunov/redux-react-native-i18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derzunov%2Fredux-react-native-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derzunov%2Fredux-react-native-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derzunov%2Fredux-react-native-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derzunov%2Fredux-react-native-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derzunov","download_url":"https://codeload.github.com/derzunov/redux-react-native-i18n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derzunov%2Fredux-react-native-i18n/sbom","scorecard":{"id":335892,"data":{"date":"2025-08-11","repo":{"name":"github.com/derzunov/redux-react-native-i18n","commit":"aec8aef7e2a606cf189afacc77bd1ec90e085176"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"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":"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":"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":"Code-Review","score":1,"reason":"Found 3/27 approved changesets -- score normalized to 1","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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:42:12.622Z","repository_id":57351306,"created_at":"2025-08-18T04:42:12.622Z","updated_at":"2025-08-18T04:42:12.622Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28428963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":["arabic","belorusian","chinese","english","french","german","hindi","i18n","internationalization","l10n","languages","localization","mobile","pluralization","polish","react","react-native","redux","russian","serbian"],"created_at":"2024-01-05T20:17:14.883Z","updated_at":"2026-01-14T17:52:04.480Z","avatar_url":"https://github.com/derzunov.png","language":"JavaScript","funding_links":[],"categories":["Components","工具"],"sub_categories":["Internationalization","其他"],"readme":"# redux-react-native-i18n\n\n[![Build Status](https://travis-ci.org/derzunov/redux-react-native-i18n.svg?branch=master)](https://travis-ci.org/derzunov/redux-react-native-i18n)\n[![npm](https://img.shields.io/npm/dt/redux-react-native-i18n.svg)](https://www.npmjs.com/package/redux-react-native-i18n)\n[![npm](https://img.shields.io/npm/v/redux-react-native-i18n.svg)](https://www.npmjs.com/package/redux-react-native-i18n)\n[![Package Quality](http://npm.packagequality.com/shield/redux-react-native-i18n.svg)](http://packagequality.com/#?package=redux-react-native-i18n)\n\n[![Package Quality](http://npm.packagequality.com/badge/redux-react-native-i18n.png)](http://packagequality.com/#?package=redux-react-native-i18n)\n\nAn **i18n** solution with **plural forms** support for **React Native** apps on Redux.\n\nThis package provides functionality of [redux-react-i18n](https://github.com/derzunov/redux-react-i18n) to React Native.\nThe difference between this package and [redux-react-i18n](https://github.com/derzunov/redux-react-i18n) is in presentational component and its container. ```\u003cLoc/\u003e``` from this package uses ```\u003cText\u003e ``` from ```'react-native'``` instead of ```\u003cspan\u003e```.\n\n\u003cimg alt=\"React Native Logo\" src=\"https://raw.githubusercontent.com/derzunov/redux-react-native-i18n/master/react-native-logo.jpg\" width=\"100%\" /\u003e\n\nThis package provides functionality of [redux-react-i18n](https://github.com/derzunov/redux-react-i18n) to React Native.\n\nThe difference between this package and [redux-react-i18n](https://github.com/derzunov/redux-react-i18n) is in presentational component. It uses ```\u003cText\u003e ``` from 'react-native' instead of ```\u003cspan\u003e```\n\n## Workers of all countries, unite!\n\n\u003cimg alt=\"redux-react-i18n\" src=\"https://raw.githubusercontent.com/derzunov/redux-react-i18n/master/i18n-logo.jpg\" width=\"100%\" /\u003e\n\n### Supported languages list with expected codes for pluralize mechanics switching\n- Russian ( ru, ru-RU )\n- English ( en, en-US, en-UK )\n- French ( fr )\n- German ( de )\n- Polish ( pl )\n- Czech ( cs )\n- Portuguese ( pt )\n- Brazilian Portuguese ( pt-BR, br )\n- Arabic ( ar-AR, ar )\n- Turkish ( tr )\n- Occitan ( oc )\n- Belarusian ( be )\n- Bosnian ( bs )\n- Croatian ( hr )\n- Serbian ( sr )\n- Ukrainian ( uk )\n- ...\n\n## Example Web Demo\n\n[derzunov.github.io/redux-react-i18n](https://derzunov.github.io/redux-react-i18n/)\n\n\n## Short code demo\n\n#### Write ( jsx ):\n```jsx\n\u003cLoc locKey=\"your_key_1\"/\u003e\n\u003cLoc locKey=\"your_key_2\" number={1}/\u003e\n\u003cLoc locKey=\"your_key_2\" number={2}/\u003e\n\u003cLoc locKey=\"your_key_2\" number={5}/\u003e\n```\n#### Result ( html ):\n```html\n\u003cText\u003eПеревод вашего первого ключа из словаря для текущего языка\u003c/Text\u003e\n\u003cText\u003eПришла 1 кошечка\u003c/Text\u003e\n\u003cText\u003eПришли 2 кошечки\u003c/Text\u003e\n\u003cText\u003eПришло 5 кошечек\u003c/Text\u003e\n```\n\n### What am I using:\nredux-react-i18n: ( [github](https://github.com/derzunov/redux-react-i18n) or [npm](https://www.npmjs.com/package/redux-react-i18n) )\n\n## Install:\n***You need react-native to be installed!***\n\nTerminal:\n```\nnpm i redux-react-native-i18n\n```\n\n## What's in the box\n\n### Components:\n - **Loc ( Container Component )**\n - LocPresentational ( Presentational Component )\n\n### Actions\n - setCurrent( languageCode )\n - setLanguages( languageCode )\n - addDictionary( languageCode, dictionary )\n - setDictionaries( dictionaries )\n\n### Reducer\n - i18n\n\n\n## Full code demo ( complete solution ):\n```jsx\nimport { i18nReducer, i18nActions, Loc } from 'redux-react-native-i18n'\n\n...\n// \"reducers\" contains your reducers\nreducers.i18n = i18nReducer\n...\n\nconst store = createStore( combineReducers( reducers ) )\n\n...\n// Set dictionaries (simpliest exapmple) -----------------------------------------------------------------------------------------------\n\n// This dictionaries can be supported by Localization team without need to know somth about interface or project,\n// and you just can fetch it to your project\nconst dictionaries = {\n    'ru-RU': {\n        'key_1': 'Первый дефолтный ключ',\n        'key_2': [ '$Count', ' ', ['штучка','штучки','штучек']], // 1 штучка, 3 штучки, пять штучек\n        'key_3': {\n            'nested_1': 'Первый вложенный ключ',\n            'nested_2': 'Второй вложенный ключ',\n        },\n        /* ... */\n        /* Other keys */\n    },\n    'en-US': {\n        'key_1': 'First default key',\n        'key_2': [ '$Count', ' ', ['thing','things']], // 1 thing, 2 things, 153 things\n        'key_3': {\n            'nested_1': 'First nested key',\n            'nested_2': 'Second nested key',\n        },\n    }\n    /* ... */\n    /* Other dictionaries */\n}\nstore.dispatch( i18nActions.setDictionaries( dictionaries ) )\n// / Set dictionaries (simpliest exapmple) ---------------------------------------------------------------------------------------------\n\n// Set languages (simpliest exapmple) --------------------------------------------------------------------------------------------------\nconst languages = [\n    {\n        code: 'ru-RU',\n        name: 'Русский'\n    },\n    {\n        code: 'en-US',\n        name: 'English (USA)'\n    }\n    /* ... */\n    /* Other languages */\n]\n\nstore.dispatch( i18nActions.setLanguages( languages ) )\n// / Set languages (simpliest exapmple) ------------------------------------------------------------------------------------------------\n\n// Set current language code (you can map this action to select component or somth like this)\nstore.dispatch( i18nActions.setCurrentLanguage( 'ru-RU' ) )\n```\n\n#### And now you can use \"Loc\" container component\n\n```jsx\nimport { Loc } from 'redux-react-native-i18n'\n...\n\n\u003cView\u003e\n    \u003cLoc locKey=\"key_1\"/\u003e // =\u003e Первый дефолтный ключ\n    \u003cLoc locKey=\"key_2\" number={7}/\u003e // =\u003e 7 штучек\n    \u003cLoc locKey=\"key_3.nested_1\"/\u003e // =\u003e Первый вложенный ключ\n    \u003cLoc locKey=\"key_3.nested_2\"/\u003e // =\u003e Второй вложенный ключ\n\u003c/View\u003e\n\n```\n\n## If you don't want to use a complete solution:\n\n#### Just use a dumb component and you can design store/actions/reducers by yourself like you want\n\n```jsx\n// Just import presentational component LocPresentational\nimport { LocPresentational } from 'redux-react-native-i18n'\n...\n...\n...\n// Then map data to props =\u003e currentLanguage, dictionary (See more in src/Loc.js):\nconst mapStateToProps = ( { /*getting data from the state*/ }, ownProps ) =\u003e ({\n    currentLanguage: yourCurrentLanguageFromState,\n    dictionary: yourDictionaryFromState\n});\nLoc = connect( mapStateToProps )( LocPresentational )\n...\n...\n...\n\u003cLoc locKey=\"YOUR_KEY_1\"/\u003e\n\u003cLoc locKey=\"YOUR_KEY_2\"  number={42}/\u003e\n\n```\nSee more in src/\\*.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderzunov%2Fredux-react-native-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderzunov%2Fredux-react-native-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderzunov%2Fredux-react-native-i18n/lists"}