i18n
i18n(key=, count=?, data=?, page=?)The translation of key in page’s language; count picks the plural form, data fills {{ .Field }}.
Arguments#
| Argument | Type | Required |
|---|---|---|
key | string | yes |
count | number | no |
data | any | no |
page | page | no |
Details#
- Kind: Function, implemented by fugo.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe. - Site-bound: reads the site or the page being rendered; in a component, pass
page=or declare@__nh.