Add store addPluralization to plugin-api. (#4224)

This commit is contained in:
Guo Xiang Tan 2016-05-16 23:11:15 +08:00 committed by Robin Ward
parent 4e59ec5a60
commit 4f671724cc

View file

@ -293,6 +293,13 @@ class PluginApi {
return addFlagProperty(property);
}
/**
* Adds a pluralization to the store
* api.addPluralization('mouse', 'mice')
**/
addStorePluralization(thing, plural) {
this.container.lookup("store:main").addPluralization(thing, plural);
}
}
let _pluginv01;