We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added the following HTML code to implement image localization
<img alt="200k subscribers img" data-rosey-attrs-explicit='{"alt":"img-alt", "src": "img-src"}' src="https://cdnweb.devolutions.net/web/common/images/assets/mail-subscribers.png">
In the base.json, everything works fine, and I have added the corresponding translations to /locales/fr.json
base.json
/locales/fr.json
{ "pages/index:83f2d7bd-b09b-4b78-94c6-4da5d6add366:0d65b056-3e90-4d5f-a214-ce347f3aa38e:img-alt": { "original": "200k subscribers img", "value": "200k abonnés" }, "pages/index:83f2d7bd-b09b-4b78-94c6-4da5d6add366:0d65b056-3e90-4d5f-a214-ce347f3aa38e:img-src": { "original": "https://cdnweb.devolutions.net/web/common/images/assets/mail-subscribers.png", "value": "https://cdnweb.devolutions.net/web/common/images/assets/mail-subscribers.fr.png" } }
After running the npx rosey build command, the result is:
npx rosey build
<img alt="200k abonnés" data-rosey-attrs-explicit='{"alt":"img-alt", "src": "img-src"}' src="https://cdnweb.devolutions.net/web/common/images/assets/mail-subscribers.png">
As you can see, the alt attribute is correctly translated, but the src attributte remains unchanged (it still points to the original image URL).
alt
src
Do I need to take any additional steps for the image localization (img-src) to work correctly?
img-src
Thanks!
The text was updated successfully, but these errors were encountered:
Hey @bglw did you have time to look at this?
I'll need to learn rust 😂 so I can contribute to this project.
Sorry, something went wrong.
No branches or pull requests
I added the following HTML code to implement image localization
In the
base.json
, everything works fine, and I have added the corresponding translations to/locales/fr.json
After running the
npx rosey build
command, the result is:As you can see, the
alt
attribute is correctly translated, but thesrc
attributte remains unchanged (it still points to the original image URL).Do I need to take any additional steps for the image localization (
img-src
) to work correctly?Thanks!
The text was updated successfully, but these errors were encountered: