Setting translation keys in HTML format #6145
Unanswered
rubenwardy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using weblate to translate the HTML document found here: https://gitlab.com/rubenwardy/renewedtab/-/blob/master/src/app/locale/store/en.html
Unfortunately, weblate constantly breaks when updating translations from the en.html source because it uses keys based on the order and type of elements. This results in the translations not matching the source
I'd like to be able to supply fixed keys for DOM elements. I tried using
id="somekey"
on the containing element, but it still uses the old key. Alternatively, the key should be based on the textContent not the element type and positionMy instance is here: https://weblate.rubenwardy.com/.
Edit: I've had to delete the project as it keeps corrupting the files.
It's an open source project, but probably isn't big enough to qualify for hosted weblate
Beta Was this translation helpful? Give feedback.
All reactions