#209 [pl][sources] przykłady użycia w /unikanie

This commit is contained in:
Avris 2021-05-21 17:25:29 +02:00
parent 5398853cd6
commit 90d2b8098c
3 changed files with 17 additions and 1 deletions

View File

@ -59,6 +59,7 @@ sources:
submit: true
mergePronouns:
they/them/themself: 'they'
extraTypes: ['avoiding', 'nounself']
nouns:
enabled: true

View File

@ -68,7 +68,7 @@ sources:
ono/jenu: 'ono'
vono/vego: 'ono'
ono/eno: 'ono'
extraTypes: ['dukatywy', 'osobatywy']
extraTypes: ['dukatywy', 'osobatywy', 'unikanie']
nouns:
enabled: true

View File

@ -19,13 +19,28 @@
</li>
</ul>
</section>
<section v-if="sources && Object.keys(sources).length">
<Literature :sources="sources"/>
</section>
</div>
</template>
<script>
import {SourceLibrary} from "../src/classes";
import { head } from "../src/helpers";
export default {
data() {
return {
sources: undefined,
}
},
async mounted() {
this.sources = {
'': new SourceLibrary(await this.$axios.$get(`/sources?pronoun=${this.config.pronouns.avoiding}`)).getForPronoun(this.config.pronouns.avoiding),
};
},
head() {
return head({
title: this.$t('pronouns.avoiding.header'),