forked from platypush/platypush
A (slightly) smarter way to infer the plural spelling of singular entity names
This commit is contained in:
parent
3d1a08f7af
commit
440cd60d6e
1 changed files with 9 additions and 1 deletions
|
@ -98,7 +98,15 @@ export default {
|
|||
|
||||
methods: {
|
||||
prettifyGroupingName(name) {
|
||||
return name ? this.prettify(name) + 's' : ''
|
||||
if (!name)
|
||||
return ''
|
||||
|
||||
name = this.prettify(name)
|
||||
if (name.endsWith('y'))
|
||||
name = name.slice(0, name.length-1) + 'ie'
|
||||
|
||||
name += 's'
|
||||
return name
|
||||
},
|
||||
|
||||
iconForGroup(group) {
|
||||
|
|
Loading…
Reference in a new issue