A fully-typed i18n solution with code completion
npm install crazy-i18nA fully-typed light-weight internationalisation solution with code completions.
``sh`
npm i crazy-i18n
The test file is also an example, please go there.
Assume the following template is used:
`ts``
type Template = {
hello: string
greet: (name: string) => string
optional?: string
good: {
morning: string
afternoon: string
evening: string
nested: {
foo: string
bar?: string
}
}
}
All available keys will pop up!
Error if the key doesn't exist,
or if the translation is a function but the types of the arguments provided don't match.
!Wrong key and wrong arguments
To keep this library clean and tidy,
framework integration won't be implemented here.
But you do it easily by yourself!
> TODO
> TODO