这是indexloc提供的服务,不要输入任何密码
Skip to content

ICU support #725

@sandstrom

Description

@sandstrom

Following up on this one.

We're running into some limitations with the current pluralization handling in this gem. In short, it's hard to do strings with multiple plural words.

Would you be open to me exploring/suggestion what a hook that could integrate with an external message format library (e.g. https://github.com/format-message/message-format-rb) could look like?

I'd try to come up with something minimal. Hook would be in library, the rest would be 'user space' (not inside this gem).

You 
  {reportCount, plural,
    =0 {have no projects}
    one {have # project}
    other {have # projects}
  }
  pending approval and 
  {unreadCount, plural,
    =0 {have no unread notifications}
    one {have # unread notifications}
    other {have # unread notifications}
  }
today.

Related: #522

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions