You can use data-i18n="[value]content.mytranslation" to insert value in button. You can change any element attribute using "[" "]"
How translate button value with i18next?
-
16-07-2023 - |
Question
Using
data-i18n="content.mytranslation"
The translation goes to the end of ">" of the button.
How can I translate the button value?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow