nip.utils.jinja_filters.add_s_plural

Contents

nip.utils.jinja_filters.add_s_plural#

nip.utils.jinja_filters.add_s_plural(value: str, count: int) str[source]#

Add ‘s’ to a string if the count is not 1.

Parameters:
  • value (str) – The string to pluralise.

  • count (int) – The count of the items.

Returns:

pluralised_value (str) – The pluralised string.