Skip to content

Instantly share code, notes, and snippets.

@ashour
Last active April 27, 2020 22:32
Show Gist options
  • Save ashour/a1e2dd702e641895f1ca2af35d01b17f to your computer and use it in GitHub Desktop.
Save ashour/a1e2dd702e641895f1ca2af35d01b17f to your computer and use it in GitHub Desktop.
<p>@Smart.Format(Resources.ReplyCount, 1)</p>
<!-- ☝️ outputs "1 reply" -->
<p>@Smart.Format(Resources.ReplyCount, 0)</p>
<!-- ☝️ outputs "0 replies" -->
<p>@Smart.Format(Resources.ReplyCount, 2)</p>
<!-- ☝️ outputs "2 replies" -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment