This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-15 05:13:14 -08:00
|
|
|
|
<template>
|
|
|
|
|
<ul>
|
|
|
|
|
<li v-for="pronoun in pronouns" :key="pronoun.canonicalName">
|
|
|
|
|
<nuxt-link v-if="typeof pronoun === 'string'" :to="'/' + pronoun">
|
2021-03-19 12:34:34 -07:00
|
|
|
|
<strong><Spelling :text="pronoun.replace(/&/g, ' ' + $t('pronouns.or') + ' ')"/></strong>
|
2020-11-15 05:13:14 -08:00
|
|
|
|
</nuxt-link>
|
|
|
|
|
<nuxt-link v-else :to="addSlash('/' + pronoun.canonicalName)">
|
2021-03-19 12:34:34 -07:00
|
|
|
|
<strong><Spelling :text="pronoun.name(glue)"/></strong><small v-if="pronoun.smallForm">/<Spelling :text="pronoun.morphemes[pronoun.smallForm]"/></small>
|
2020-11-15 05:13:14 -08:00
|
|
|
|
–
|
2021-03-19 12:34:34 -07:00
|
|
|
|
<small><Spelling :text="pronoun.description"/></small>
|
2020-11-15 05:13:14 -08:00
|
|
|
|
</nuxt-link>
|
|
|
|
|
<NormativeBadge v-if="pronoun.normative"/>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
pronouns: {},
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
glue: ' ' + this.$t('pronouns.or') + ' ',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
addSlash(link) {
|
2020-12-23 05:40:42 -08:00
|
|
|
|
return link + (['*', `'`].includes(link.substr(link.length - 1)) ? '/' : '');
|
2020-11-15 05:13:14 -08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|