useTranslation

See source code

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

function useTranslation(): (id?: string | undefined) => string;

Example

const msg = useTranslation();
const label = msg("style-panel.styles");
Prev
useTools
Next
useUiEvents