Skip to content

aleks/phrase-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phrase-prompt 🦕

Interactive Phrase.com CLI - built with Deno

The Leanest, Fastest, and Most Reliable Localization Platform

phrase-prompt is an alternative frontend to the phrase command-line client.

Search Translation Keys

search keys

Create Translation Keys

create keys

Create Branch

create keys

Requirements

To use phrase-prompt you need to install deno first:

Deno

brew install deno

Not on macOS? Deno install guide

Phrase Client

phrase-prompt will read the phrase config from your current path (while in a phrase-enabled project). The config file (.phrase.yml or .phraseapp.yml) usually lives in your project root. If you have a phrase config in your current path, you will not have to do anything.

If you want to be independent from a specific path, you can also provide phrase-prompt an access token via a flag:

Install

From GitHub

deno install --unstable --allow-net --allow-read -n phrase-prompt https://raw.githubusercontent.com/aleks/phrase-prompt/main/phrase-prompt.ts

What do these flags mean?

  • --unstable is required since phrase-prompt uses some unstable features from Deno.
  • --allow-net is required to request data from the phrase API.
  • --allow-read is required to be able to read your Phrase config (.phrase.yml or .phraseapp.yml)
  • -n defines the name of the executable. Feel free to change it to your liking.

Note: Once you've run the install command, Deno will notify you to update your $PATH to be able to access Deno-installed tools from everywhere in your terminal.

From Source

git clone git@github.com:aleks/phrase-prompt.git
cd phrase-prompt
deno compile --unstable --allow-read --allow-net phrase-prompt.ts

Afterwards you will find a phrase-prompt executable in the same folder. Feel free to move it somewhere in your $PATH.

Usage

Just execute phrase-prompt and follow the instructions.

Features

  • Search for Translation Keys and view their Translations
  • Create Translation Keys
  • Create Branches

Missing features i would like to add:

  • Tests 🙃
  • Editing Translation Keys
  • Editing Translations
  • Compare Branches
  • Merge Branches
  • Deleting Branches

phrase deno

Phrase on GitHub | Deno