Switcher for translation variables



  • To print translation data I am using default command {{ $t('failed') }}

    I would like to change the variable t to some other variable such as {{ $t_abc('failed') }}

    Is it doable?



  • What is the purpose for needing this? When you say “print”, do you mean output in a component or actually printing? And $t isn’t a variable, it is a method. And you can wrap methods in other methods, but the “why” for you needing to do that is unclear.

    Scott


Log in to reply