Currently, translating all languages at once takes too much time, and every time the translation process is run, all folders are deleted and re-created. This results in inefficiencies, especially if we only need to work on a single language at a time.
Solution
Distribute Translation Tasks: Instead of having one person handle all the translations, encourage team members to each translate one language and then upload their contributions.
Granular Translation Commands:
translate -add -l "ko": This command adds a new Korean translation without deleting any existing translations. If the translation already exists, it skips those files.
translate -update -l "ko": This command deletes the current Korean translation and re-translates everything for that language.
When specifying a language code, only the corresponding language folder should be deleted, not all language folders.
Example Implementation
Adding a Translation
The following command will add a new Korean translation without affecting any other existing translations:
translate -add -l "ko"
Updating a Translation
The following command will delete all existing Korean translations and regenerate them:
translate -update -l "ko"
Only Image Translation
The following commands will add a new Korean translation without creating markdowm
translate -add -images -l "ko"
This command checks for existing images with the language code ("ko" in this case). If they exist, it skips those files and does not re-translate them.
translate -update -images -l "ko"
This command deletes all existing images with the language code("ko") and regenerates the translated images.
Only Markdown Translation
The following commands will add a new Korean translation without creating image
translate -add -md -l "ko"
This command checks for existing markdown with the language code ("ko" in this case). If they exist, it skips those files and does not re-translate them.
translate -update -images -l "ko"
This command deletes all existing markdowns with the language code("ko") and regenerates the translated images.
Description
The -add command will only translate files that haven't been translated in the specified language.
The -update command will delete and re-translate files only for the specified language, without affecting other translations.
The -images command will only translate image files.
The -md command will only translate markdown files.
Problem
Currently, translating all languages at once takes too much time, and every time the translation process is run, all folders are deleted and re-created. This results in inefficiencies, especially if we only need to work on a single language at a time.
Solution
Distribute Translation Tasks: Instead of having one person handle all the translations, encourage team members to each translate one language and then upload their contributions.
Granular Translation Commands:
translate -add -l "ko"
: This command adds a new Korean translation without deleting any existing translations. If the translation already exists, it skips those files.translate -update -l "ko"
: This command deletes the current Korean translation and re-translates everything for that language.When specifying a language code, only the corresponding language folder should be deleted, not all language folders.
Example Implementation
Adding a Translation
The following command will add a new Korean translation without affecting any other existing translations:
Updating a Translation
The following command will delete all existing Korean translations and regenerate them:
Only Image Translation
The following commands will add a new Korean translation without creating markdowm
This command checks for existing images with the language code ("ko" in this case). If they exist, it skips those files and does not re-translate them.
This command deletes all existing images with the language code("ko") and regenerates the translated images.
Only Markdown Translation
The following commands will add a new Korean translation without creating image
This command checks for existing markdown with the language code ("ko" in this case). If they exist, it skips those files and does not re-translate them.
This command deletes all existing markdowns with the language code("ko") and regenerates the translated images.
Description
-add
command will only translate files that haven't been translated in the specified language.-update
command will delete and re-translate files only for the specified language, without affecting other translations.-images
command will only translate image files.-md
command will only translate markdown files.