@nimpl/i18n

2.0.0 • Public • Published

@nimpl/i18n

(Former 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:

npm i @nimpl/i18n

Using yarn:

yarn add @nimpl/i18n

Additionally

Create tasks with wishes, ideas, difficulties, etc. All of them will definitely be considered and thought over.

License

MIT

Package Sidebar

Install

npm i @nimpl/i18n

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

25.1 kB

Total Files

30

Last publish

Collaborators

  • vordgi