- Organizing your source text for translation
- Composing grammatically correct translatable UI
- Eliminating verbose boilerplate for generating UI
git clone firstname.lastname@example.org:facebookincubator/fbt.git cd fbt yarn install
We will make the transform and runtime installable as an npm package soon. Until then, See how to use the source directly with Babel and Webpack in our demo-app:
cd demo-app # from fbt repo yarn install yarn manifest yarn collect-fbts yarn translate-fbts yarn start
How FBT works
FBT works by transforming your
fbt(...) constructs via
Babel plugins. These plugins serve to extract strings from source and
lookup translate payloads generated at build-time. FBT creates tables
of all possible variations for the given fbt phrase and accesses this
Join the fbt community
See the CONTRIBUTING file for how to help out.
FBT is MIT licensed, as found in the LICENSE file.