Hello @RCheesley ,
I hope you are doing well.
I believe this article will help you achieve what you need. It works with a dynamic filter type on a file and dir level; please review it and let me know if you have further questions.
Best Regards
Cesar
Hi Cesar,
Sorry but I’m none the wiser - which part is this meant to help with?
Ignore me - I hadn’t scrolled far enough yet!
I will look into it - I think the fundamental issue is the folder name is missing from the path so I will have to rebuild and start again, I think.
1 Like
Hello @RCheesley
If you have any doubts, please, don’t hesitate to let me know.
Best Regards
Hi @Cesar_Garcia thanks for the guidance!
I’m a bit stuck, because it seems the docs here: How to manage translations for Sphinx projects — Read the Docs user documentation 9.13.2 documentation are outdated - they refer to bulk mapping which I believe isn’t supported in the new Transifex CLI client.
How is it possible to achieve the same outcome with the new client? I’m happy to make a PR to update the Read the Docs documentation if someone can point me in the right direction.
I found cli/README.md at devel · transifex/cli · GitHub linked to from New Transifex Client: Mapping Bulk but I fear my knowledge of what’s happening under the hood is insufficient to know how to translate the old way into a script that can be used with the new client.
Could anyone give me a steer?
Hello @RCheesley ,
You are right. In our new GO-CLI we don’t support the “mapping-bulk” flag as is mentioned on our documentation in GitHub. To overcome this scenario, we placed a few lines of code that you can run as a bash script and achieve the same result.
Let me explain what this code does. First, it will list a folder name “locale” trying to find the exact name with “-w” and using “-q” to perform this in quiet mode (avoid unnecessary output)
-w : Find the exact matching word from the input file or string.
-q --quiet, --silent
Quiet mode: suppress normal output. grep will only search a file until a match has been found, making searches potentially less expensive.
Every folder name will be stored in a variable called “FOLDER” and then for every folder, the “tx add” will be executed.
If you have any further questions, please let me know
Best Regards
Cesar