Programatically compile languages with js-lingui

廉价感情. 提交于 2020-01-15 11:58:21
问题 I recently tried to integrate js-lingui into my react project. The tricky part I can't get right is compiling my languages to js files. My goal is as follows: I will assemble my languages trough some task running (gulp or webpack maybe). This is as easy as walking trough my project, and outputting appropiate json files. However, to use these files they have to be compiled via js-lingui. And I don't know how to do this. I am aware of lingui-cli , which allows me to do this on the cli, but I'm