Sha256: d280cf96223b90f4b249c320fd9dd7122818fee942891d244f2b886c6b6b0721
Contents?: true
Size: 686 Bytes
Versions: 35
Compression:
Stored size: 686 Bytes
Contents
{# # Renders the data attributes for the different plural forms # of the given translation key. # # 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 # http://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules #} {% macro govukPluralisedI18nAttributes(translationKey, pluralForms) %} {% for pluralType, message in pluralForms %} data-i18n.{{translationKey}}.{{pluralType}}="{{message | escape}}"{% endfor %} {% endmacro %}
Version data entries
35 entries across 35 versions & 1 rubygems