[bisq-network/bisq-website] Add automated workflow for transifex updates (#386)

m52go notifications at github.com
Sun Aug 9 16:59:23 UTC 2020


This PR adds a much-needed automated workflow for integrating updates on Transifex to this Jekyll website, building on groundwork pushed earlier this week (e.g., consolidated yml files).

**NOTE: this workflow will only work once the updated XML attributes from #385 are also merged.** To test this PR, you'll need to merge that PR with this one (and obtain a Transifex API key for the `bisq-website` project). I may just merge this PR after that one is merged since (1) it is unlikely that anyone will actually be able to test this PR and (2) nothing in this PR affects the rendering of the website. Still, I will leave it open for a few days for feedback.

The workflow:
- translators update Transifex
- shell script gets updates from Transifex
- shell script applies updates to yml files in `_data/<lang>.yml`
- node script updates svg images (currently all such images are only those that appear on the DAO page)

As a result of this update, all translation work for the website must only occur on Transifex. Anyone with a Transifex API key (i.e., Transifex admin) can apply updates by running `.tx/update-translations.sh`.

This PR finally makes it feasible to document the localization process (#244), specifically:
* how existing translations should be maintained using this new workflow
* how to add new languages

When complete, I'll post the relevant wiki links in #244.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq-website/pull/386

-- Commit Summary --

  * Add automated translations workflow
  * Add package.json
  * Add status output to shell script

-- File Changes --

    M .gitignore (1)
    A .tx/config (9)
    A .tx/package-lock.json (73)
    A .tx/package.json (16)
    A .tx/update-svg-text.js (88)
    A .tx/update-translations.sh (16)

-- Patch Links --

https://github.com/bisq-network/bisq-website/pull/386.patch
https://github.com/bisq-network/bisq-website/pull/386.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-website/pull/386
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200809/5c2d5323/attachment.html>


More information about the bisq-github mailing list