Skip to content

Instantly share code, notes, and snippets.

@dfreeman
Created August 16, 2016 14:55
Show Gist options
  • Save dfreeman/b7dc359ca3eab45b6631c74c38ea51f0 to your computer and use it in GitHub Desktop.
Save dfreeman/b7dc359ca3eab45b6631c74c38ea51f0 to your computer and use it in GitHub Desktop.
pluralize
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
count: 5
});
I have {{count}} {{pluralize-word count 'cat' omitCount=true}}<br>
I have {{pluralize-word count 'cat'}}<br>
{
"version": "0.10.4",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {
"ember-pluralize": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment