-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Translations does not work in ExecuteAsTemplate #6331
Comments
I can confirm for Outside of |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
i18n translations does not work in assets.
This is how I process my JS file:
{{ $scriptJS := resources.Get "js/script.js" | resources.ExecuteAsTemplate (printf "%s/js/script.js" .Lang ) . | resources.Minify | fingerprint }}
I’m using translations in an usual way:
{{T "translations_key"}}
I get my script.js file for every language but only with English translations(English being main language of the site).
Hugo version:
Hugo Static Site Generator v0.57.0-9B00E647/extended linux/amd64 BuildDate: 2019-08-14T08:12:12Z
OS:
Related discussions:
https://discourse.gohugo.io/t/is-it-possible-to-use-translations-in-assets/20726
https://discourse.gohugo.io/t/style-css-in-multilingual-mode/20754/2
The text was updated successfully, but these errors were encountered: