Skip to content
Snippets Groups Projects
Commit b6807d97 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

bob, nob => bm, nn

parent 1c9f8695
No related branches found
No related tags found
No related merge requests found
...@@ -63,18 +63,18 @@ export default { ...@@ -63,18 +63,18 @@ export default {
return a_forms.join(', ') return a_forms.join(', ')
}, },
inflect_tooltip: function() { 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() { dict_label: function() {
return { return {
'bob': 'bokmålsordboka', 'bm': 'bokmålsordboka',
'nob': 'nynorskordboka' 'nn': 'nynorskordboka'
}[this.dictionary] || '' }[this.dictionary] || ''
}, },
inflection_button_text: function() { inflection_button_text: function() {
return { return {
"bob": {false: "Se bøyning", true: "Skjul bøyning"}, "bm": {false: "Se bøyning", true: "Skjul bøyning"},
"nob": {false: "Sjå bøying", true: "Skjul bøying"} "nn": {false: "Sjå bøying", true: "Skjul bøying"}
}[this.dictionary][this.inflection_expanded] }[this.dictionary][this.inflection_expanded]
}, },
inflection_arrow: function() { inflection_arrow: function() {
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
) )
}, },
lemmas_with_word_class_and_lang: function() { 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)) word_class: lemma.paradigm_info[0].inflection_group.split('_')[0]}, lemma))
}, },
inflected: function() { inflected: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment