{"repo":"ChristianIvicevic/intl-watcher","free":true,"listed":false,"github":"https://github.com/ChristianIvicevic/intl-watcher","clone":"git clone https://github.com/ChristianIvicevic/intl-watcher.git","description":"Automated translation key extraction and dictionary management plugin for Next.js","language":"TypeScript","stars":57,"topics":["i18n","internationalization","intl","localization","next","nextjs","react","translate","translation"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"🌐 intl-watcher plugin for Next.js Automatically scans your Next.js project's source files to manage internationalization (i18n) translation keys. It keeps your translation dictionaries up-to-date by extracting new keys, removing unused ones, and optionally partitioning keys into separate client and server dictionaries. [!NOTE] Primarily designed for use with next-intl , this plugin can technically be adapted for other i18n libraries or frameworks that share a similar dictionary structure and access pattern in code. Features - Automatic Extraction : Scans your project's source code for i18n keys. - Namespace Support : Handles nested i18n keys organized into namespaces for structured translations. - Dictionary Syncing : Automatically updates JSON dictionaries with new translation keys. - Unused Keys Handling : Warns or removes unused keys. - Client/Server Partitioning : Separates translation keys into client-side and server-side bundles. - Debounced Scanning : Efficiently handles rapid file changes. - Suppression Escape Hatch : Silence warnings for specific unsupported expression kinds while native support is pending. Installation Install the package via npm, yarn or pnpm: Usage Wrap your Next.js configuration with the provided createIntlWatcher function: Single-Run Mode For use cases where you need to perform a one-time sync without file watching (e.g., in CI/CD pipelines, custom build scripts, or pre-commit hooks), use the syncTranslationKeys function: Run this script manual","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChristianIvicevic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChristianIvicevic/intl-watcher/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."}