DEV Community

Discussion on: How to add support Typescript for FBT an internationalization framework

Collapse
 
retyui profile image
Davyd NRB

What exactly "not works"
How can I reproduce it?

Collapse
 
khadorkin profile image
Dzmitry Khadorkin • Edited

I just cloned your repo github.com/retyui/horoscope and changed github.com/retyui/horoscope/blob/m...
<fbt>...</fbt>
to <FbtPlural count={5}>...</FbtPlural> - as the result - FbtPlural is undefined. Of course I imported it from fbt. Looks like metro-config breaks babel-plugin-fbt

Thread Thread
 
retyui profile image
Davyd NRB • Edited

Sorry but this project didn't create as a demo to fbt

Anyway, I added an example of plural:
github.com/retyui/horoscope/commit...

And if it works!