Plurality in user messages

前端 未结 25 1508
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 01:53

Many times, when generating messages to show to the user, the message will contain a number of something that I want to inform the customer about.

I\'ll give a

相关标签:
25条回答
  • 2021-01-30 02:50

    For the first problem , I mean Pluralize, you can use Inflector.

    And for the second, you can use a string representation extension with a name such as ToPronounString.

    0 讨论(0)
提交回复
热议问题