1.1.0 • Published 2 years ago

transifexify v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A little script to remove undefined, null or empty values in a json file to avoid Transifex errors

When submitting a json file to Transifex, if it has null, undefined or '' values, like this one, Transifex will reject your file. This module just generates a file without the key/value pairs with those values.

Additionnally, it will filter-out values on the pattern /^__\w+$/, allowing to use special values in your logic, and have those key/value removed in the file sent to Transifex.

Installation

npm install -g transifexify

How To

It takes json files as input with names like fr.json and creates a fr.transifex.json file that shouldn't throw errors when parsed by Transifex

  • you can pass either one file
transifexify path/to/lang/files/de.json
# => path/to/lang/files/de.transifex.json
  • or several
transifexify path/to/lang/files/*.json
# => path/to/lang/files/de.transifex.json, path/to/lang/files/fr.transifex.json etc
1.1.0

2 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago