({
translationKey,
translationParams,
className,
}: {
translationKey: string;
translationParams?: TranslationPatterns;
className?: string;
html?: boolean;
})
| 43 | const translate = t(dictionary); |
| 44 | |
| 45 | const Translate = ({ |
| 46 | translationKey, |
| 47 | translationParams, |
| 48 | className, |
| 49 | }: { |
| 50 | translationKey: string; |
| 51 | translationParams?: TranslationPatterns; |
| 52 | className?: string; |
| 53 | html?: boolean; |
| 54 | }) => { |
| 55 | return ( |
| 56 | <div |
| 57 | className={className} |
| 58 | dangerouslySetInnerHTML={{ |
| 59 | __html: translate(translationKey, translationParams), |
| 60 | }} |
| 61 | /> |
| 62 | ); |
| 63 | }; |
| 64 | |
| 65 | const getLocaleDictionary = () => dictionary; |
| 66 |
nothing calls this directly
no outgoing calls
no test coverage detected