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

Tracking changes to already translated strings #6

Open
raphaelarias opened this issue Dec 26, 2024 · 1 comment
Open

Tracking changes to already translated strings #6

raphaelarias opened this issue Dec 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@raphaelarias
Copy link

raphaelarias commented Dec 26, 2024

Thanks for the work on this! I noticed a potential area for improvement that could enhance the workflow for managing translations.

Currently, when a string is updated but already exists in the metadata, it gets skipped during the translation process—even if the string's content has changed. To force a new translation, it requires manually removing the entry from the metadata, which can be error-prone and time-consuming.

Proposed Solution:

  • Introduce a hashing mechanism to track the translated string's state.
  • If the hash of the current string (e.g., its content or checksum) differs from the stored hash in the metadata, the system could automatically trigger a re-translation.

This approach could:

  • Ensure translations stay up to date when strings are modified.
  • Remove the need for manual metadata edits, reducing the risk of mistakes.
  • Provide a more seamless experience for developers and translators.

What do you think? I'd be happy to discuss further or help brainstorm implementation ideas if this seems like a valuable addition! If you would like I can also submit a PR.

@robisim74
Copy link
Owner

Hi @raphaelarias, I like your proposal.

A PR is welcome!

@robisim74 robisim74 added the enhancement New feature or request label Dec 30, 2024
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