eversport / intl-codegen

generate code and type definitions from translations
MIT License
15 stars 1 forks source link

empty locale generates invalid typescript definitions #5

Closed Swatinem closed 6 years ago

Swatinem commented 6 years ago

When you do not define any languages, the generated typescript file looks like this:

// …
  const Localized: React.SFC<>;
// …

Even if you do not define any strings, the code should be valid at least :-)