In my page code I have expression:
{{key | containerkeyname | translate }}
where key is some string (a field ID), containerkeyname filter takes it and outputs translation key (serving human-friendly description for the field), and finally translate is translating that key.
This works fine initially (translation is provided), however, when I change translation language, this expression is not re-translated (unlike the rest of the interface that uses a lot of translations, mainly made via directive). I am confused, since translation filter is last in line.
What could be the reason and how I could achieve normal re-translation of this expression?
答案 0 :(得分:0)
为了使其有效,我按如下方式更改了代码:
span(translate='{{key|containerkeyname}}')