Translate variable in latte
- caught-in-a-nette
- Member | 19
using: Contributte\Translation
{_locale.xyz}
prints xyz (as defined in
lang/locale.<current_locale>.neon)
easy!
How do I translate a variable?
tried:
{_$name, locale}
{translator locale}{$name}{/translator}
{$name|translate|noescape}
{_locale."{$name}"}
I'm sure I've done it before.