Skip to content
Discussion options

You must be logged in to vote

ok worked it out from the api :) v-t binding can take a path and return the text

<template> <select > <option v-for="loc in getLocationOptions" :value="loc" v-t="{path: loc}"></option> </select> </template> <script> . . . computed: { getLocationOptions() { const locTypeSrc = Object.keys(strings.case.general.location.type.list) const locOptions = locTypeSrc.map(function(x){ return 'case.general.location.type.list.' + x; }) return locOptions; } }, . . . 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by baradhili
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant