-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "extract" & "compile" publicly available API functions #1939
Comments
I think the extraction API is there but not documented. I'll take a look! |
Can you also provide your use case? |
I think this can be generally helpful, but in my particular case, I'm working on a gatsby plugin for multilingual support with the idea for it to automatically handle message extraction and later compiling optimized translations resource(s) on production builds. |
Yeah, it is. But as you said it is not documented, therefore it does not feel like the recommended way of using it. Thank you |
Yeah i do export them for testing so I'll document it |
It seems like the "compile" function is tied to the CLI usecase and does not return the compiled output |
|
@longlho can |
yeah can you submit a different GH issue? |
Which package?
@formatjs/cli
Is your feature request related to a problem? Please describe.
I think it would be great to be able to run translations extraction and compilation programmatically through Node API in addition to CLI interface
The text was updated successfully, but these errors were encountered: