{"repo":"alexdln/nimpl-i18n","free":true,"listed":false,"github":"https://github.com/alexdln/nimpl-i18n","clone":"git clone https://github.com/alexdln/nimpl-i18n.git","description":"Internationalization library for React.js with an enabled server component (especially for Next.js App Router).","language":"TypeScript","stars":21,"topics":["i18n","intl","nextjs","react","translation"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"@nimpl/i18n i18n library designed for React Server Components with maximum optimization (due to the transfer of logic to the assembly stage and/or server side). Read the documentation in a convenient interface at nimpl.dev/docs/i18n Installation Why This Library? Most i18n libraries either load the entire dictionary on the client or disable static optimization when working with Server Components. This library resolves translations on the server. Client components only receive the specific precompiled keys they need through the Transmitter wrapper - not the whole dictionary. Pages remain statically generated with translations baked into the HTML. Quick Start 1. Create i18n Configuration Create a configuration file (e.g., src/i18n.ts ): 2. Set Up Routes 3. Use Translations API initialize Creates configured i18n functions. Call once and export the returned functions. Config Options Option Type Required Description -------- ------ ---------- ------------- load (language: string) = Promise Yes Async function that returns translations for a language getLanguage () = Promise Yes Function to determine current language languages string[] Yes Array of supported language codes cache boolean No Enable translation caching (recommended for production) getTranslation Server-side function for translations in React Server Components. With explicit language (useful for generateMetadata ): With namespace: Transmitter Server component that passes translations to client components. Wrap client co","default_branch":null,"files":null,"tree":[],"storefront":"/r/alexdln","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alexdln/nimpl-i18n/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}