packages/react/src/index.tsx
Function createTranslatorProvider
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
export function createTranslatorProvider<
TranslatorType extends Translator<any>
>(defaultLocale: string, factory: (locale: string) => TranslatorType) {
const Context = createContext({
translator: (null as any) as TranslatorType,