webext-tx-fix

0.3.3 • Public • Published

webext-tx-fix

Build Status Coverage Status

A CLI tool which re-adds placeholders to webextension locales pulled from Transifex. Note that Transifex has fixed this problem for newly uploaded message files, see #4.

Installation

npm install -d webext-tx-fix

Use it as npm script:

"scripts": {
    "build-locales": "tx pull -a --mode=developer && webext-tx-fix",
}

Usage

webext-tx-fix

Usage:
  webext-tx-fix [--source SOURCE_DIR]

Options:
  -s --source SOURCE_DIR  Source folder containing manifest.json. [default: .]
  -h --help               Show this.
  -v --version            Show version.

Changelog

  • 0.3.3 (Jan 22, 2020)

    • Fix: strip unknown keys.
  • 0.3.2 (Jun 5, 2019)

    • Update to detect-indent@6.0.0.
  • 0.3.1 (May 13, 2018)

    • Exclude test files from the dist.
  • 0.3.0 (May 13, 2018)

    • Update neodoc.
    • Add: files are processed in parallel.
    • Add: detect the indent style of the source language and fix the indent if translation.
  • 0.2.1 (Dec 26, 2017)

    • Add: use ordered-json.
  • 0.2.0 (Dec 14, 2017)

    • Add: messages which is not translated are removed.
    • Add: re-order the messages to match source language.
  • 0.1.0 (Dec 12, 2017)

    • First release.

Package Sidebar

Install

npm i webext-tx-fix

Weekly Downloads

1

Version

0.3.3

License

MIT

Unpacked Size

6.72 kB

Total Files

5

Last publish

Collaborators

  • eight04