q-select translate #17572
Answered
by
yusufkandemir
denprog
asked this question in
General - Components / Directives / etc
q-select translate
#17572
-
How to translate string in a q-select? I mean something like this:
Here I need to translate strings in the angleMeasure options. |
Beta Was this translation helpful? Give feedback.
Answered by
yusufkandemir
Oct 13, 2024
Replies: 1 comment
-
const angleMeasures = ref([]) // assuming it comes from somewhere somehow
// ...
const measureOptions = computed(() => angleMeasures.value.map(measure => ({
...measure,
label: t(...) // translate the label here
}))) or <q-select ... :option-label="measure => t(...) /* translate it here */" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
denprog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or