Skip to content

Create a reactive $translate from Plugin #9424

Discussion options

You must be logged in to vote

From the error message, I think it's reporting that the parameter you pass to computed is not a function. And, indeed, it isn't.

Try something like this:

computed(() => !i18nDict[key] && "#"+key+"#" || i18nDict[key][opts.curLang] || i18nDict[key][opts.fallBack])

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amplexdenmark
Comment options

Answer selected by amplexdenmark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants