We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b78a03 commit 21d55b3Copy full SHA for 21d55b3
src/.vuepress/theme/components/sponsors/SpecialSponsors.vue
@@ -26,7 +26,23 @@ export default {
26
27
computed: {
28
heading () {
29
- return `Special Sponsor${this.sponsors.length === 1 ? '' : 's'}`
+ return (
30
+ this.sponsors.length > 0
31
+ ? `Patrocinador${this.getPlural(0)} Especia${this.getPlural(1)}`
32
+ : ''
33
+ )
34
+ }
35
+ },
36
+
37
+ methods: {
38
+ getPlural(wordId) {
39
+ const plurals = ['es', 'is']
40
+ const singulars = ['', 'l']
41
42
+ this.sponsors.length === 1
43
+ ? singulars[wordId]
44
+ : plurals[wordId]
45
46
}
47
48
0 commit comments