🌎 Type safe React i18n library
MIT License
An internationalization and translation (i18n) library for React that focuses on the developer experience. With ChatGPT capable of producing high-quality translations, there's no longer a need to rely on third-party translation services. This allows us to shift our attention from making resource files editable in spreadsheet software to enhancing the developer experience. In i18nifty, everything is TypeScript and type-safe. You can define your translations as functions and return them as React nodes, making the process more expressive, easier to write, and simpler to maintain.
i18nifty
is intended for use in Single Page Application (SPA) projects, such as Vite or Create React App. It is not designed for use with Next.js or other SSR/SSG-enabled meta-frameworks.
?lang=xx
to the URL without involving my routing library.i18nifty
is the only library i18n library (at the time of writing theses lines) that checks all the boxes. Discover.
This library has been used to build the following projects:
## Contributing
git clone https://github.com/garronej/i18nifty
cd i18nifty
yarn
# Start the test app in watch mode
yarn start-test-app
# Start the alternative test app where resources are split into multiples files to enable lazy loading.
yarn start-test-app-lazy
# Link in an external app.
yarn link-in-app YOUR-APP # ../YOUR-APP is supposed to exist
npx tsc -w