Skip to content
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

[FEATURE] translate should update target if source record is changed #129

Open
mcm1957 opened this issue Apr 16, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@mcm1957
Copy link

mcm1957 commented Apr 16, 2022

a) Currently npm run translate writes translated text records into the target files only if the corresponding record does not exist there.

npm run translate should keep a record of the source file (i18n/en/translate,json) and hence detect if a text has been changed. In this case the target records should be replaced with the new translations too. Note: npm run traslate MUST NOT write the full target file if no change in source json is detected as this would override manual corrections.

b) at least optionally npm translate should remove outdated record from the target files. Outdated records should be defined as records no longer exist in source file.

@mcm1957 mcm1957 changed the title [FEATURE] translate should update target if source record ic changed [FEATURE] translate should update target if source record is changed Apr 21, 2022
@Apollon77 Apollon77 added the enhancement New feature or request label Sep 12, 2022
@mcm1957
Copy link
Author

mcm1957 commented Feb 3, 2023

Please consider WEBLATE integration when adapting anything in this area. Maybe weblate should leave some marker to contraol behavior of trabslate script - or vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants