Skip to content

Expand the i18n API to support PluralCount #7791

Description

@bep

go-i18n has now added PluralCount to their API which Hugo uses in a backward compatible way (e.g. if the user passes in a number, e.g. .WordCount.)

If would, however, be nice if the user could pass in more complex objects and indicate plural some other way, e.g.:

{{ i18n "hello" $page $pluralCount }}

Or something ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions