mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Add store addPluralization
to plugin-api. (#4224)
This commit is contained in:
parent
4e59ec5a60
commit
4f671724cc
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue