Skip to content

Commit 7529130

Browse files
committed
feat: update linear scale labels to use localization
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 7db54c5 commit 7529130

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/Questions/QuestionLinearScale.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,14 @@
8080
</template>
8181

8282
<script>
83+
import { t } from '@nextcloud/l10n'
8384
import NcActionInput from '@nextcloud/vue/components/NcActionInput'
8485
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
8586
86-
import QuestionMixin from '../../mixins/QuestionMixin.js'
87-
8887
import IconPencil from 'vue-material-design-icons/Pencil.vue'
8988
89+
import QuestionMixin from '../../mixins/QuestionMixin.js'
90+
9091
export default {
9192
name: 'QuestionLinearScale',
9293
@@ -104,8 +105,8 @@ export default {
104105
105106
lowestOption: 1,
106107
highestOption: 5,
107-
labelLowest: 'Lowest',
108-
labelHighest: 'Highest',
108+
labelLowest: t('forms', 'Strongly disagree'),
109+
labelHighest: t('forms', 'Strongly agree'),
109110
}
110111
},
111112

0 commit comments

Comments
 (0)