Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vordgi/nimpl-i18n
Internationalization library for React.js with an enabled server component (especially for Next.js App Router).
https://github.com/vordgi/nimpl-i18n
i18n intl nextjs react translation
Last synced: 30 days ago
JSON representation
Internationalization library for React.js with an enabled server component (especially for Next.js App Router).
- Host: GitHub
- URL: https://github.com/vordgi/nimpl-i18n
- Owner: vordgi
- Created: 2023-12-11T17:30:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T16:41:03.000Z (7 months ago)
- Last Synced: 2024-04-14T12:07:23.754Z (7 months ago)
- Topics: i18n, intl, nextjs, react, translation
- Language: TypeScript
- Homepage: https://next-translation-example.vercel.app
- Size: 121 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @nimpl/i18n
(Former [next-translation](https://www.npmjs.com/package/next-translation))
i18n library designed primarily with server components in mind and maximum optimization (due to the transfer of logic to the assembly stage and/or server side).
Visit https://nimpl.tech/i18n to view the full documentation.
## Why one more library?
Server components are a recent feature in React. Existing translation libraries are not yet well-optimized for them. If they support it, then only by disabling Next.js static optimization.
This library is an attempt to create a highly optimized solution exclusively using the current capabilities of React.js, Next.js and node.js.
## Features
Support for loading translations during page rendering (*instead of the application build step*), allowing for up-to-date translations with ISR or SSR;
Support for revalidation logic, i.e. you can specify how often translations should be updated (*or that they should not be updated at all*);
Optimized caching system - not a single extra request will be sent, even with parallel building (which is now enabled by default);
Passing only those translations to the client that are needed on the client;
Embedding parameters in client translations on the server;
Support for html entities.
## Installation
**Using npm:**
```bash
npm i @nimpl/i18n
```**Using yarn:**
```bash
yarn add @nimpl/i18n
```## Additionally
Create tasks with wishes, ideas, difficulties, etc. All of them will definitely be considered and thought over.
## License
[MIT](https://github.com/vordgi/nimpl-i18n/blob/main/LICENSE)