<template> <table> <tr> <th rowspan="2">Adjektiv</th> <th colspan="3">{{i18n[0]}}</th> <th>{{i18n[1]}}</th> <th colspan="3">Gradbøying</th> </tr> <tr> <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, b{{i18n[4]}} form</th> </tr> <tr v-for="(std, index) in standardisations" :key="index"> <td></td> <td>{{std.inflection[0].word_form}}</td> <td>{{std.inflection[3].word_form}}</td> <td>{{std.inflection[2].word_form}}</td> <td>{{std.inflection[1].word_form}}</td> <td>{{std.inflection[4].word_form}}</td> <td>{{std.inflection[5].word_form}}</td> <td>{{std.inflection[6].word_form}}</td> </tr> </table> </template> <script> export default { name: "ADJ", props: { standardisations: Array, dictionary: String }, computed: { i18n: function() { return { bob: ['Entall', 'Flertall', 'Hun', 'Intet', 'estemt'], nob: ['Eintal', 'Fleirtal', 'Ho', 'Inkje', 'unden'] }[this.dictionary] } } } </script>