Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created January 21, 2020 12:05
Show Gist options
  • Save ABooooo/438100abc7ac8700c58dd022aafd402b to your computer and use it in GitHub Desktop.
Save ABooooo/438100abc7ac8700c58dd022aafd402b to your computer and use it in GitHub Desktop.
// Variante 1
{{@("@").translate('proceed_to_checkout',[])}}
// Variante 2
{{@@.translate('proceed_to_checkout',[])}}
// Variante 3
//While it is only a small step less ugly workaround, you can simply @Html.Raw the full attribute name and value.
<a @Html.Raw("title=\"@@.translate('proceed_to_checkout',[])\"")>Test</a>
//Results in:
<a title="Show Size 6&#189;-8">Test</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment