Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
Discussion options

You must be logged in to vote

You essentially want to "fetch" the appropriate translation for your given instance based on the locale itself.

fbt is really optimized for one language/locale on the entire page and pulls the locale from the one set globally on IntlViewerContext. Today, you could override getTranslatedInput with the initialization function (init).

https://github.com/facebook/fbt/blob/master/runtime/nonfb/fbtInit.js#L39

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jrwats
Comment options

@mrtnzlml
Comment options

@jrwats
Comment options

Answer selected by mrtnzlml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants