i18n values in returns?

Hello,

I’m written a method to parse a given set of numbers, and return a card name based on those numbers. I’ve created each card name in i18n and I’m trying to pass back the translated i18n tag, but my calling method keeps getting the literal ‘i18n:cards.cardname’ rather then ‘Visa’. Is there something that we need to do to pull back the value rather the literal text?

Thanks!

Hi Chico,

Check out the i18n node in the Editor.
Here you see that you need to use the following syntax:

i18n.getI18NMessage('i18n:cards.cardname')

Hope this helps.