GithubHelp home page GithubHelp logo

max923 / fbt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebook/fbt

0.0 2.0 0.0 1.77 MB

A JavaScript Internationalization Framework

Home Page: https://facebookincubator.github.io/fbt

License: MIT License

JavaScript 99.23% CSS 0.67% HTML 0.02% PHP 0.08%

fbt's Introduction

FBT

FBT is an internationalization framework 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
  • Source-code bloat from generating similarly constructed UI

Examples

See our demo here

Requirements

Building fbt

git clone [email protected]:facebookincubator/fbt.git
cd fbt
yarn install

Installing fbt

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> 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

Full documentation

https://facebookincubator.github.io/fbt

Join the fbt community

See the CONTRIBUTING file for how to help out.

License

FBT is MIT licensed, as found in the LICENSE file.

fbt's People

Contributors

aclave1 avatar aralroca avatar david-cho-lerat-hl2 avatar didierfranc avatar emersonlaurentino avatar facebook-github-bot avatar iwonbigbro avatar jiyeonseo avatar jrwats avatar kayhadrin avatar maciek134 avatar mitoyarzun avatar pakoito avatar petetnt avatar robincsl avatar rubennorte avatar tychota avatar vincentfretin avatar weilei0107 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.