diff --git a/src/components/inflection/Adjective.vue b/src/components/inflection/Adjective.vue index 3d9c98b39bec35e83e6f57069425f824293196b0..cbe6d50b5e0d5f34c3bef0070e3d56c6803a4d55 100644 --- a/src/components/inflection/Adjective.vue +++ b/src/components/inflection/Adjective.vue @@ -1,16 +1,19 @@ <template> <table> <tr> - <th rowspan="2">Adjektiv</th><th colspan="3">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th> + <th rowspan="2">Adjektiv</th> + <th colspan="3">{{i18n[0]}}</th> + <th>{{i18n[1]}}</th> + <th colspan="3">Gradbøying</th> </tr> <tr> - <th>Hankjønn og hunkjønn</th> - <th>Intetkjønn</th> - <th>Bestemt form</th> + <th>Han/{{i18n[2]}}kjønn</th> + <th>{{i18n[3]}}kjønn</th> + <th>B{{i18n[4]}} form</th> <th></th> <th>Komparativ</th> <th>Superlativ</th> - <th>Superlativ, bestemt form</th> + <th>Superlativ, b{{i18n[4]}} form</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> <td></td> @@ -30,6 +33,14 @@ export default { name: "ADJ", props: { standardisations: Array + }, + computed: { + i18n: function() { + return { + bob: ['Entall', 'Flertall', 'Hun', 'Intet', 'estemt'], + nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje', 'unden'] + }[this.$route.params.lang] + } } } </script> diff --git a/src/components/inflection/AdjectiveMF.vue b/src/components/inflection/AdjectiveMF.vue index 7b0eea28057a05737f1fbcbd7cbf14cefff8687b..f0d7712d09e7e9ac5065667be82dbe05fc408fdf 100644 --- a/src/components/inflection/AdjectiveMF.vue +++ b/src/components/inflection/AdjectiveMF.vue @@ -1,17 +1,20 @@ <template> <table> <tr> - <th rowspan="2">Adjektiv</th><th colspan="4">Entall</th><th>Flertall</th><th colspan="3">Gradbøying</th> + <th rowspan="2">Adjektiv</th> + <th colspan="4">{{i18n[0]}}</th> + <th>{{i18n[1]}}</th> + <th colspan="3">Gradbøying</th> </tr> <tr> <th>Hankjønn</th> - <th>Hokjønn</th> - <th>Inkjekjønn</th> - <th>Bunden form</th> + <th>{{i18n[2]}}kjønn</th> + <th>{{i18n[3]}}kjønn</th> + <th>B{{i18n[4]}} form</th> <th></th> <th>Komparativ</th> <th>Superlativ</th> - <th>Superlativ, bunden form</th> + <th>Superlativ, b{{i18n[4]}} form</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> <td></td> @@ -32,6 +35,14 @@ export default { name: "ADJ_masc_fem", props: { standardisations: Array + }, + computed: { + i18n: function() { + return { + bob: ['Entall', 'Flertall', 'Hun', 'Intet', 'estemt'], + nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje', 'unden'] + }[this.$route.params.lang] + } } } </script> diff --git a/src/components/inflection/Determinative.vue b/src/components/inflection/Determinative.vue index 04040fc5becbcb26bd080e1029067aa1a417da95..f1ff082fa444942a28726a3ad1faadcf17dd49a0 100644 --- a/src/components/inflection/Determinative.vue +++ b/src/components/inflection/Determinative.vue @@ -1,10 +1,10 @@ <template> <table> <tr> - <th rowspan="2">Determinativ</th><th colspan="3">Entall</th><th rowspan="2">Flertall</th> + <th rowspan="2">Determinativ</th><th colspan="3">{{i18n[0]}}</th><th rowspan="2">{{i18n[1]}}</th> </tr> <tr> - <th>Hankjønn</th><th>Hunkjønn</th><th>Intetkjønn</th> + <th>Hankjønn</th><th>{{i18n[2]}}kjønn</th><th>{{i18n[3]}}kjønn</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> <td></td> @@ -21,6 +21,14 @@ export default { name: "DET", props: { standardisations: Array + }, + computed: { + i18n: function() { + return { + bob: ['Entall', 'Flertall', 'Hun', 'Intet'], + nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje'] + }[this.$route.params.lang] + } } } </script> diff --git a/src/components/inflection/Noun.vue b/src/components/inflection/Noun.vue index ac8a7deda37ec957d07fdc0fba630218cba0fc62..32fa3bfaaab3125ee3d1b1d254d2875c811eba76 100644 --- a/src/components/inflection/Noun.vue +++ b/src/components/inflection/Noun.vue @@ -1,14 +1,14 @@ <template> <table> <tr> - <th rowspan="2">Substantiv</th><th colspan="2">Entall</th><th colspan="2">Flertall</th> + <th rowspan="2">Substantiv</th><th colspan="2">{{i18n[0]}}</th><th colspan="2">{{i18n[1]}}</th> </tr> <tr> - <th>Ubestemt</th><th>Bestemt</th><th>Ubestemt</th><th>Bestemt</th> + <th>{{i18n[2]}}</th><th>{{i18n[3]}}</th><th>{{i18n[2]}}</th><th>{{i18n[3]}}</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> - <th>{{std.tags[1]}}</th> - <td>{{std.inflection[0].word_form}}</td> + <th>{{i18n[4][std.tags[1]][0]}}</th> + <td>{{i18n[4][std.tags[1]][1]}} {{std.inflection[0].word_form}}</td> <td>{{std.inflection[1].word_form}}</td> <td>{{std.inflection[2].word_form}}</td> <td>{{std.inflection[3].word_form}}</td> @@ -21,6 +21,14 @@ export default { name: "NOUN", props: { standardisations: Array + }, + computed: { + i18n: function() { + return { + bob: ['Entall', 'Flertall', 'Ubestemt', 'Bestemt', {Masc: ['mask.', 'en'], Fem: ['fem.', 'ei'], Neuter: ['nøytr.', 'et']}], + nob: ['Eintal', 'Fleirtal', 'Ubunden', 'Bunden', {Masc: ['mask.', 'ein'], Fem: ['fem.', 'ei'], Neuter: ['nøytr.', 'eit']}] + }[this.$route.params.lang] + } } } </script> diff --git a/src/components/inflection/Verb.vue b/src/components/inflection/Verb.vue index 4a320f687377d0a6563d4c86ea15806ff3549650..4f5b0c3c69a66c5cd55e34d1f68c9d4466a7c00d 100644 --- a/src/components/inflection/Verb.vue +++ b/src/components/inflection/Verb.vue @@ -11,14 +11,14 @@ <th rowspan="2">Presens partisipp</th> </tr> <tr> - <th>Hankjønn/hunkjønn</th> - <th>Intetkjønn</th> - <th>Bestemt form</th> - <th>Flertall</th> + <th>Han/{{i18n[0]}}kjønn</th> + <th>{{i18n[1]}}kjønn</th> + <th>{{i18n[2]}} form</th> + <th>{{i18n[3]}}</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> <th></th> - <td>å {{std.inflection[0].word_form + (std.inflection[1].word_form ? '/' + std.inflection[1].word_form : '')}}</td> + <td>å<span v-html="' '"></span>{{std.inflection[0].word_form + (std.inflection[1].word_form ? '/' + std.inflection[1].word_form : '')}}</td> <td>{{std.inflection[2].word_form}}</td> <td>{{std.inflection[5].word_form}}</td> <td>har {{std.inflection[6].word_form}}</td> @@ -37,6 +37,14 @@ export default { name: "VERB", props: { standardisations: Array + }, + computed: { + i18n: function() { + return { + bob: ['hun', 'Intet', 'Bestemt', 'Flertall'], + nob: ['ho', 'Inkje', 'Bunden', 'Fleirtal'] + }[this.$route.params.lang] + } } } </script>