woocommerce/plugins/woocommerce-admin/languages
Ron Rennick 692dcc21e5 update i18n scripts for making JSON files (https://github.com/woocommerce/woocommerce-admin/pull/3433)
* update i18n scripts for making JSON files

* update documentation

* update postbuild command for new translation script

* update per feedback

* update readme instructions

* update script reference patterns to anywhere on line
2019-12-30 09:38:20 -04:00
..
README.md update i18n scripts for making JSON files (https://github.com/woocommerce/woocommerce-admin/pull/3433) 2019-12-30 09:38:20 -04:00

README.md

Languages

Contributing a Translation

If you'd like to contribute a translation, please follow the Localizing section in CONTRIBUTING.md.

Generating POT

The generated POT template file is not included in this repository. To create this file locally, follow instructions from README.md to install the project, then run the following command:

npm run i18n lang=xx_YY

After the build completes, you'll find a woocommerce-admin-xx_YY.po (eg. woocommerce-admin-fr_FR.po) strings file in this directory.

Generating JSON

To generate JSON from your translations, save your translation file in this directory then run the following command:

npm run i18n:json