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: TLTranslationKey) => string
References

TLTranslationKey

Edit this page
Last edited on 11 May 2023
useTools