1.0.13 • Published 8 months ago

@opipib/navoica-mfa-components v1.0.13

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
8 months ago

GENERATE/ADD TRANSLATIONS (TRANSIFEX)

In folder navoica-mfa-components use terminal and make: (You need activate venv)

. ../venv/bin/activate make extract_translations tx push -s

  1. go to the transifex page https://www.transifex.com/navoica/navoica-1/dashboard/ and update translations text after accepted translations in transifex back to terminal in your branch and make:

tx pull -l pl,uk

if your pull doesn't work and command was skipped make this:

tx pull -f

make commit with changes and push changes to your branch.

UPDATE TRANSIFEX pip uninstall transifex-client curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash

CONFIGURE TRANSIFEX IN BASH or local

check if you have tx token

env | grep TX_TOKEN

if you dont have tx token

generate it on https://app.transifex.com/user/settings/api/ and copy tx id and paste to variable TX_TOKEN

set tx token to variable (paste id token there) example: TX_TOKEN=123456

for local export TX_TOKEN=

for global echo "export TX_TOKEN=" >> ~/.bashrc

set tx host to variable

for local export TX_HOSTNAME=https://rest.api.transifex.com

for global echo "export TX_HOSTNAME=https://rest.api.transifex.com" >> ~/.bashrc

check if you have tx host

env | grep TX_HOSTNAME

close terminal and open again to use tx command