8000 GitHub - avianezbq/react-poeditor-synchronization: Script to download strings from poeditor
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

avianezbq/react-poeditor-synchronization

8000
 
 

Repository files navigation

React/React native POEditor synchronization

Installation

  • Open package.json
  • Add to devDependencies:
	"dependencies": {
    "poeditor": "git+https://github.com/andonivianez/react-poeditor-synchronization.git",
	}
  • Setup npm script:
	"scripts": {
		"poeditor": "node_modules/poeditor/exports.sh src/config/poeditor.json",
		"poeditor-setup": "node_modules/poeditor/setup.sh",
		"poeditor-list-projects": "node_modules/poeditor/list_projects.sh src/config/poeditor.json",
		"poeditor-list-languages": "node_modules/poeditor/list_languages.sh src/config/poeditor.json"
	}

Example: src/config/poeditor.json

  • File contents are saved in the URL so you can share files

RUN poeditor-setup TO SETUP REQUIREMENTS

Let's start with CONFIG json file:

  • api_k 54DE ey: get it from [POEdtior API].
  • project_id: run command npm run poeditor-list-projects to get list of project ids.
  • languages: run command npm run poeditor-list-languages` to get list of language ids.
  • file_format: apple_strings, android_strings, json
  • path: saved path for return data from POEditor
  • type: key_value_json to get an structured json key-value file compatible with most platforms like React Native
{
  "api_key": "0791fc384c6011ddfa7df3656ffd6529",
  "project_id": "79427",
  "languages": "en,es",
  "type": "key_value_json",
  "file_name": "strings",
  "path": "src/i18n",
  "file_format": "json"
}

About

Script to download strings from poeditor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%
0