Skip to content

Instantly share code, notes, and snippets.

@marinados
Created October 19, 2016 10:30
Show Gist options
  • Save marinados/34736bb4d5a5961c00f50a3624484834 to your computer and use it in GitHub Desktop.
Save marinados/34736bb4d5a5961c00f50a3624484834 to your computer and use it in GitHub Desktop.

Attention, François !

config/locales/en.yml

en:
  notification:
    one: You have 1 notification
    other: You have %{count} notifications
<%# app/views/notifications/index.html.erb %>

<%= t("notification", count: current_user.notifications.count) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment