git clone [email protected]:facebook/fbt.git cd fbt yarn install
NOTE: if you make changes to the fbt runtime that you'd like to test in the demo-app, be sure to run this command to rebuild the JS code:
See how to use the source directly with Babel and Webpack in our demo-app.
FBT works by transforming yourand
fbt(...)constructs via Babel plugins. These plugins serve to extract strings from source and lookup translated payloads generated at build-time. FBT creates tables of all possible variations for the given fbt phrase and accesses this at runtime.
See the CONTRIBUTING file for how to help out.
# Go to the module's folder (where package.json is located) cd fbt-runtime/ # or # cd packages/babel-plugin-fbt/ # cd packages/babel-plugin-runtime/
publishes to npm and push new git tag to Github
FBT is MIT licensed, as found in the LICENSE file.