Sha256: 9cb93eda90b22445b387dfde43a84d1abe3f0e56a65175802f33e0e812fe9a6d
Contents?: true
Size: 664 Bytes
Versions: 75
Compression:
Stored size: 664 Bytes
Contents
{# Renders the data attributes for the different plural forms of the given translation key. {@link https://cldr.unicode.org/index/cldr-spec/plural-rules} Helps reduce the boilerplate in component templates as they're quite verbose @private @param {string} translationKey - The kebab-cased name of the translation key @param {object} pluralForms - An object associating translation messages to the plural form they correspond to #} {% macro govukPluralisedI18nAttributes(translationKey, pluralForms) %} {% for pluralType, message in pluralForms %} data-i18n.{{translationKey}}.{{pluralType}}="{{message | escape}}"{% endfor %} {% endmacro %}
Version data entries
75 entries across 75 versions & 1 rubygems