Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Find use of #pluralize on translations #10

Open
BigBigDoudou opened this issue Oct 2, 2021 · 0 comments
Open

Find use of #pluralize on translations #10

BigBigDoudou opened this issue Oct 2, 2021 · 0 comments

Comments

@BigBigDoudou
Copy link
Contributor

BigBigDoudou commented Oct 2, 2021

Search for this patterns:

t("message").pluralize
Lease.model_name.human.pluralize

Note: plural should be handled in locales:

fr:
  message:
    one: message
    other: messages
  activerecord:
    models:
      lease:
        one: Bail
        other: Baux

Then:

t("message", count: messages.count)
Lease.model_name.human(count: leases.count)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant