From 122b996e7552b13bb11639ccad7283492861604b Mon Sep 17 00:00:00 2001 From: Avris Date: Sun, 17 Jan 2021 20:43:21 +0100 Subject: [PATCH] #167 [pl][nouns] split dictionaries into subpages --- components/Header.vue | 12 + locale/pl/config.suml | 11 +- locale/pl/nouns/NounsExtra.vue | 496 ----------------------- locale/pl/nouns/NounsNav.vue | 18 +- locale/pl/nouns/dukatywy.vue | 172 ++++++++ locale/pl/nouns/neutratywy.vue | 226 +++++++++++ locale/pl/nouns/osobatywy.vue | 113 ++++++ locale/pl/pronouns/pronouns.tsv | 18 +- locale/pl/translations.suml | 15 +- migrations/021-terms-category-images.sql | 6 + nuxt.config.js | 9 + routes/inclusive.vue | 35 ++ routes/queerTerms.vue | 35 ++ 13 files changed, 638 insertions(+), 528 deletions(-) create mode 100644 locale/pl/nouns/dukatywy.vue create mode 100644 locale/pl/nouns/neutratywy.vue create mode 100644 locale/pl/nouns/osobatywy.vue create mode 100644 migrations/021-terms-category-images.sql create mode 100644 routes/inclusive.vue create mode 100644 routes/queerTerms.vue diff --git a/components/Header.vue b/components/Header.vue index f5b50859..5e0d83d6 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -114,11 +114,23 @@ } if (this.config.nouns.enabled) { + const extras = []; + for (let subroute of this.config.nouns.subroutes || []) { + extras.push(`/${this.config.nouns.route}/${subroute}`); + } + if (this.config.nouns.inclusive.enabled) { + extras.push(`/${this.config.nouns.route}/${this.config.nouns.inclusive.route}`); + } + if (this.config.nouns.terms.enabled) { + extras.push(`/${this.config.nouns.route}/${this.config.nouns.terms.route}`); + } + links.push({ link: '/' + this.config.nouns.route, icon: 'book', text: this.$t('nouns.header'), textLong: this.$t('nouns.headerLong'), + extra: extras, }); } diff --git a/locale/pl/config.suml b/locale/pl/config.suml index 72380701..1aa8942f 100644 --- a/locale/pl/config.suml +++ b/locale/pl/config.suml @@ -68,17 +68,20 @@ sources: nouns: enabled: true route: 'słowniki' - collapsable: true + collapsable: false plurals: true pluralsRequired: true declension: true submit: true templates: true - hashNamespace: 'neutratywy' + subroutes: + - 'neutratywy' + - 'dukatywy' + - 'osobatywy' inclusive: enabled: false categories: ['interpłciowość', 'lgbtq+', 'niepełnosprawność', 'rasa', 'trans'] - hashNamespace: 'inkluzywny' + route: 'inkluzywny' terms: enabled: false categories: @@ -88,7 +91,7 @@ nouns: - 'płeć' - 'ekspresja płciowa' - 'model relacji' - hashNamespace: 'terminologia' + route: 'terminologia' names: enabled: false diff --git a/locale/pl/nouns/NounsExtra.vue b/locale/pl/nouns/NounsExtra.vue index bbf8fc42..6beff519 100644 --- a/locale/pl/nouns/NounsExtra.vue +++ b/locale/pl/nouns/NounsExtra.vue @@ -1,498 +1,2 @@ - - - - diff --git a/locale/pl/nouns/NounsNav.vue b/locale/pl/nouns/NounsNav.vue index fba94410..d88d34f5 100644 --- a/locale/pl/nouns/NounsNav.vue +++ b/locale/pl/nouns/NounsNav.vue @@ -1,13 +1,13 @@