|
Lines 9-15
Link Here
|
| 9 |
[% tnp('context', 'item', 'items', count) | $raw %] |
9 |
[% tnp('context', 'item', 'items', count) | $raw %] |
| 10 |
[% tnpx('context', '{count} item', '{count} items', count, { count = count }) | $raw %] |
10 |
[% tnpx('context', '{count} item', '{count} items', count, { count = count }) | $raw %] |
| 11 |
|
11 |
|
| 12 |
[%# it also works on multiple lines |
12 |
[% # it also works on multiple lines |
| 13 |
tnpx ( |
13 |
tnpx ( |
| 14 |
'context', |
14 |
'context', |
| 15 |
'{count} item', |
15 |
'{count} item', |
|
Lines 21-27
Link Here
|
| 21 |
) | $raw |
21 |
) | $raw |
| 22 |
%] |
22 |
%] |
| 23 |
|
23 |
|
| 24 |
[%# and t* calls can be nested |
24 |
[% # and t* calls can be nested |
| 25 |
tx('status is {status}', { |
25 |
tx('status is {status}', { |
| 26 |
status = active ? t('active') : t('inactive') |
26 |
status = active ? t('active') : t('inactive') |
| 27 |
}) | $raw |
27 |
}) | $raw |
| 28 |
- |
|
|