diff --git a/src/components/Header.vue b/src/components/Header.vue index 7af3643a84026d57f3df46e55dbac9d8faee8929..3b15e875ef63eb8674222a6e884dc110675976d8 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -63,18 +63,18 @@ export default { return a_forms.join(', ') }, inflect_tooltip: function() { - return this.dictionary == 'bob' ? 'Klikk for å se bøyinger' : 'Klikk for å sjå bøyingar' + return this.dictionary == 'bm' ? 'Klikk for å se bøyinger' : 'Klikk for å sjå bøyingar' }, dict_label: function() { return { - 'bob': 'bokmålsordboka', - 'nob': 'nynorskordboka' + 'bm': 'bokmålsordboka', + 'nn': 'nynorskordboka' }[this.dictionary] || '' }, inflection_button_text: function() { return { - "bob": {false: "Se bøyning", true: "Skjul bøyning"}, - "nob": {false: "Sjå bøying", true: "Skjul bøying"} + "bm": {false: "Se bøyning", true: "Skjul bøyning"}, + "nn": {false: "Sjå bøying", true: "Skjul bøying"} }[this.dictionary][this.inflection_expanded] }, inflection_arrow: function() { @@ -97,7 +97,7 @@ export default { ) }, lemmas_with_word_class_and_lang: function() { - return this.lemmas.map(lemma => Object.assign({language: this.dictionary == 'bob' ? 'nob' : 'nno', + return this.lemmas.map(lemma => Object.assign({language: this.dictionary == 'bm' ? 'nob' : 'nno', word_class: lemma.paradigm_info[0].inflection_group.split('_')[0]}, lemma)) }, inflected: function() {