Is it possible to know when manageTranslations is finished?
See original GitHub issueOn my project I am trying to create a script that does the following:
- runs babel to extract the messages
- runs the translations manager to generate the language files
- removes the extracted messages directory (at least I don’t see any reason to keep these files…)
The problem is that there is no callback in the manageTranslations
function and it also doesn’t return a Promise… Without this I cannot know when the function is finished so I can delete the extracted messages directory.
Is there any way to accomplish this?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
How To Manage Translations For Your Application | Crowdin ...
Hello Today we are looking at how to manage translations using Crowdin and the GitHub integration. This example is using a React app ......
Read more >How to manage translations in a software project? Try the new ...
Struggling to manage translations in a software project? Here is an open-source translation management tools called Babelsheet from TSH.
Read more >Manage translations - Ultimate Subscriptions - Shopify App
All text translation will be done from here. There are 3 options are available to make the text translation: Subscription page; Messages ...
Read more >Manage translations for custom content | Jira Service ...
Manage translations for custom content · From your service project, go to Project settings > Language support. · Select the language of your...
Read more >Manage Translations for Sphinx projects - Read the Docs
This guide walks through the process needed to manage translations of your documentation. Once this work is done, you can setup your project...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @LoicUV,
Here is a sample of what I did:
Then if you are using a tool like webpack together with json-loader you can do something like:
Hope this helps!
I just realised what the problem was. I was using the
transformFile
function frombabel-core
instead oftransformFileSync
to generate the JSON files. SomanageTranslations
was being called before all the translation files were there. So my bad… Sorry for bothering you and thank you for the fast replies!