This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
Programmatic use of fbt-translate
#333
Unanswered
alexandernanberg
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Interesting question timing. I was just thinking of that too: #334 (comment) Could you share more context about how you are serving the JS code to browsers? With more info about this, we could offer better advice. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to generate translations files on-demand, so translations changes go live without having to deploy the site. E.g.
Translation service (Crowdin) -> Transform translations (
fbt-translate
) -> CDN -> WebsiteCrowdin have web hooks so the transformation is only run whenever a translation changes. I've got pretty much everything working except the transformation part. AFAIK there is no way of running the transform in plain JS but you must use the script, which isn't convenient for this particular case. Is there a nice way of getting around this or do I have to inline a bunch of
fbt
internals in my script?Anyone got pointer or have done something similar?
Beta Was this translation helpful? Give feedback.
All reactions