useTranslation

Public Function

Returns a function to translate a translation key into a string based on the current translation.

Example
const msg = useTranslation()
const label = msg('style-panel.styles')
Parameters

None

Returns
(id: TLUiTranslationKey) => string
References

TLUiTranslationKey

Edit this page
Last edited on 5 June 2023
useTools