Automattic / i18n-calypso

i18n JavaScript library on top of Jed originally used in Calypso
GNU General Public License v2.0
24 stars 19 forks source link

Enable babel parser plugins needed for calypso translate #60

Closed yurynix closed 6 years ago

yurynix commented 6 years ago

After upgrade to xgettext-js 2.0.0, in order to run

npm run translate

on calypso, we need those additional plugins:

'exportDefaultFrom', 'exportNamespaceFrom'

From babel-parser:

plugin example
exportDefaultFrom  export v from "mod" ( calypso )
exportNamespaceFrom export * as ns from "mod" ( calypso )

Testing instructions

  1. Clone this repo and run git checkout update/xgettext-version
  2. Clone wp-calypso master and run npm install && rm -rf ./node_modules/i18n-calypso
  3. cd this repo, run npm install && npm link
  4. cd wp-calypso and run npm link i18n-calypso
  5. run npm run translate
  6. assert it run to completion and you see "Done."
blowery commented 6 years ago

Fixed by #68