FBT is an internationalization framework for JavaScript designed to be both powerful and flexible, but also simple and intuitive. It helps with the following:
- Organizing your source text for translation
- Composing grammatically correct translatable UI
- Eliminating verbose boilerplate for generating UI
git clone git@github.com:facebookincubator/fbt.git
cd fbt
yarn install
See how to use the source directly with Babel and Webpack in our demo-app:
yarn install # from fbt repo
cd demo-app
yarn manifest
yarn collect-fbts
yarn translate-fbts
yarn start
FBT works by transforming your <fbt>
and 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
at runtime.
https://facebookincubator.github.io/fbt
See the CONTRIBUTING file for how to help out.
FBT is MIT licensed, as found in the LICENSE file.