jeanfortheweb/translata

View on GitHub
packages/react/src/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage

Function createTranslatorProvider has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

export function createTranslatorProvider<
  TranslatorType extends Translator<any>
>(defaultLocale: string, factory: (locale: string) => TranslatorType) {
  const Context = createContext({
    translator: (null as any) as TranslatorType,
Severity: Minor
Found in packages/react/src/index.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status