Translate variable in latte

caught-in-a-nette
Member | 19
+
0
-

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.

MajklNajt
Member | 498
+
0
-

{translate}locale.{$name}{/translate}

caught-in-a-nette
Member | 19
+
+1
-

Thanks that's it!