Skip to content
Discussion options

You must be logged in to vote

@nkoehring you are probably looking for something like this:

import type { Translations } from '$i18n/i18n-types'
const key = 'something' as keyof Translations['foo']
LL.foo[key]()

Replies: 2 comments 2 replies

Comment options

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

Answer selected by nkoehring
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants