-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support multiple files per locale in push and pull commands #1
Comments
Hi @bavdh Thanks for reporting this! The current version of the CLI assumes that the upload and download config will use one file per locale rule. In the attached example, the push command will try to send 3 times the same file (the last specified) for I see that there is a space for improvement. Maybe better error handling that will guide users to use one file per locale in config or extending current CLI to support multiple files per locale. Also, could you share your motives to split translations for one locale in multiple files, so we can better understand the needs. |
Hi @lzoran Thanks for the reply! I am working with multiple devices, and each device comes with a file containing its own instructions and configuration. Using a script the instructions are separated in a different file (a separate file containing instruction for each device). Now I need to translate these files per locale, and also maintain the separations after the translations(after download). To make the push work I made some changes in the CLI by using its index rather than locale and it seems to do the trick for multiple files upload. But after a pull, I am getting separate files(as required) but containing all the translations in every of them (this maybe because CLI assumes one file per locale in pull as well). It would be great if the CLI supports multiple files per locale (for both push and pull). |
Thanks for the provided info! I suggest we leave this issue open so we can better track demand (upvotes) for the proposed functionality. Until then, is it convenient for you to use tags and independent calls via CLI for the each file you need to translate? Push translations from
Pull translations for
*Note: This requires you to have unique keys across all localization files in case you use single Localizely project |
Unable to push files to localizely.
Expected behaviour:
Actual behaviour:
Here is my configuration localizely.yml file
The text was updated successfully, but these errors were encountered: