🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@carforyou/phraseapp

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carforyou/phraseapp

Phraseapp workflow

latest
Source
npmnpm
Version
1.1.33
Version published
Maintainers
2
Created
Source

CAR FOR YOU Phraseapp workflow

semantic-release

Usage

npm install @carforyou/phraseapp

Lint the sort order, respectively sort the translation files:

cfy-phraseapp sort
cfy-phraseapp sort --fix

Vaildate the consistency of the translation keys:

cfy-phraseapp validate

Push translations on CI:

PHRASEAPP_TOKEN=abc123 cfy-phraseapp push

Create 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: true

Development

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=abc123
npm 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 push

Test

PHRASEAPP_TOKEN=abc123 npm run test

Development

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-pkg

Release 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/phraseapp

FAQs

Package last updated on 04 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts