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.
To use phrase-prompt
you need to install deno first:
brew install deno
Not on macOS? Deno install guide
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:
--token <access token>
- Don't have an access token?
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 sincephrase-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.
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
.
Just execute phrase-prompt
and follow the instructions.
- Search for Translation Keys and view their Translations
- Create Translation Keys
- Create Branches
- Tests 🙃
- Editing Translation Keys
- Editing Translations
- Compare Branches
- Merge Branches
- Deleting Branches