@carforyou/phraseapp v1.1.33
CAR FOR YOU Phraseapp workflow
Usage
npm install @carforyou/phraseappLint the sort order, respectively sort the translation files:
cfy-phraseapp sort
cfy-phraseapp sort --fixVaildate the consistency of the translation keys:
cfy-phraseapp validatePush translations on CI:
PHRASEAPP_TOKEN=abc123 cfy-phraseapp pushCreate a .phraseapp.yml:
phraseapp:
project_id: <your project id>
file_format: nested_json
push:
sources:
- file: ./public/static/locales/<locale_name>/app.json
pull:
targets:
- file: ./public/static/locales/<locale_name>/app.json
params:
include_empty_translations: trueDevelopment
Some commands require a PHRASEAPP_TOKEN. In order not to type it over and over again, you can set it "globally" in your .zshrc or equivalent:
export PHRASEAPP_TOKEN=abc123npm run build && npx cfy-phraseapp <command>We also ave a dummy phraseapp project set up, where you can safely push to:
CIRCLE_BRANCH=master PHRASEAPP_TOKEN=abc123 cfy-phraseapp pushTest
PHRASEAPP_TOKEN=abc123 npm run testDevelopment
You can link your local npm package to integrate it with any local project:
cd carforyou-phraseapp-pkg
npm run build
cd carforyou-listings-web
npm link ../carforyou-phraseapp-pkgRelease a new version
New versions are released on the ci using semantic-release as soon as you merge into master. Please make sure your merge commit message adheres to the corresponding conventions.
Update phraseapp-cli
On CI, we use the phrasepp-cli binary. Locally, you will need to install one manually.
To update the CI bindary, get the latest link from https://github.com/phrase/phraseapp-client/releases and download the binary as follows:
wget -O bin/phraseapp "https://github.com/phrase/phraseapp-client/releases/download/<version>/phraseapp_linux_386"
chmod +x bin/phraseapp3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago