I have a haml file which is used to translate text into multi language as below
%ul
%li
%a
%i{'ng-class' => '[button.css_class]'}
%span t ('{{button.label}}')
The button.label retreives from the model, but it did not work. If I change the code as below:
%ul
%li
%a
%i{'ng-class' => '[button.css_class]'}
%span t ('save')
it works fine.
I need to use button.label for dynamical name.
Any approach to solve this. Thanks!