{"id":14964171,"url":"https://github.com/s00d/nuxt-i18n-micro","last_synced_at":"2026-02-19T09:37:43.132Z","repository":{"id":253447691,"uuid":"842990422","full_name":"s00d/nuxt-i18n-micro","owner":"s00d","description":"Nuxt I18n Micro is a fast, simple, and lightweight internationalization (i18n) module for Nuxt","archived":false,"fork":false,"pushed_at":"2026-02-16T18:54:54.000Z","size":50820,"stargazers_count":232,"open_issues_count":9,"forks_count":28,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-16T21:42:16.286Z","etag":null,"topics":["i18n","internationalization","localization","multi-language","nuxt","nuxt-module","nuxt3","performance","seo","translation"],"latest_commit_sha":null,"homepage":"https://s00d.github.io/nuxt-i18n-micro/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s00d.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["s00d"],"custom":["https://www.donationalerts.com/r/s00d88"]}},"created_at":"2024-08-15T14:43:40.000Z","updated_at":"2026-02-16T18:50:28.000Z","dependencies_parsed_at":"2024-08-26T15:53:11.174Z","dependency_job_id":"711de65e-8e72-4808-8e97-af2ae83e3abf","html_url":"https://github.com/s00d/nuxt-i18n-micro","commit_stats":{"total_commits":289,"total_committers":5,"mean_commits":57.8,"dds":0.01384083044982698,"last_synced_commit":"7f9fa6a454cb9a5ae2cc817fecb294f83fb60649"},"previous_names":["s00d/nuxt-i18n-micro"],"tags_count":280,"template":false,"template_full_name":null,"purl":"pkg:github/s00d/nuxt-i18n-micro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fnuxt-i18n-micro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fnuxt-i18n-micro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fnuxt-i18n-micro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fnuxt-i18n-micro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s00d","download_url":"https://codeload.github.com/s00d/nuxt-i18n-micro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s00d%2Fnuxt-i18n-micro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["i18n","internationalization","localization","multi-language","nuxt","nuxt-module","nuxt3","performance","seo","translation"],"created_at":"2024-09-24T13:32:41.134Z","updated_at":"2026-02-19T09:37:43.127Z","avatar_url":"https://github.com/s00d.png","language":"TypeScript","funding_links":["https://github.com/sponsors/s00d","https://www.donationalerts.com/r/s00d88"],"categories":["TypeScript"],"sub_categories":[],"readme":"[![npm version](https://img.shields.io/npm/v/nuxt-i18n-micro/latest?style=for-the-badge)](https://www.npmjs.com/package/nuxt-i18n-micro)\n[![npm downloads](https://img.shields.io/npm/dw/nuxt-i18n-micro?style=for-the-badge)](https://www.npmjs.com/package/nuxt-i18n-micro)\n[![License](https://img.shields.io/npm/l/nuxt-i18n-micro?style=for-the-badge)](https://www.npmjs.com/package/nuxt-i18n-micro)\n[![Donate](https://img.shields.io/badge/Donate-Donationalerts-ff4081?style=for-the-badge)](https://www.donationalerts.com/r/s00d88)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/s00d/nuxt-i18n-micro/blob/main/branding/logo_full.png?raw=true\" alt=\"logo\"\u003e\n\u003c/p\u003e\n\n# Nuxt I18n Micro\n\n`Nuxt I18n Micro` is a fast, simple, and lightweight internationalization (i18n) module for Nuxt. Despite its compact size, it's designed with large projects in mind, offering significant performance improvements over traditional i18n solutions like `nuxt-i18n`. The module was built from the ground up to be highly efficient, focusing on minimizing build times, reducing server load, and shrinking bundle sizes.\n\n## Why Nuxt I18n Micro?\n\nThe `Nuxt I18n Micro` module was created to address critical performance issues found in the original `nuxt-i18n` module, particularly in high-traffic environments and projects with large translation files. Key issues with `nuxt-i18n` include:\n\n- **High Memory Consumption**: Consumes significant memory during both build and runtime, leading to performance bottlenecks.\n- **Slow Performance**: Especially with large translation files, it causes noticeable slowdowns in build times and server response.\n- **Large Bundle Size**: Generates a large bundle, negatively impacting application performance.\n- **Memory Leaks and Bugs**: Known for memory leaks and unpredictable behavior under heavy load.\n\n### Performance Comparison\n\nTo showcase the efficiency of `Nuxt I18n Micro`, we conducted tests under identical conditions. Both modules were tested with a 10MB translation file on the same hardware. We also include a **plain-nuxt** baseline (no i18n module) to measure the real overhead.\n\n#### Build Time and Resource Consumption\n\n\u003e **Note:** The `plain-nuxt` baseline is a minimal implementation created solely for benchmarking purposes. It loads data directly from JSON files without any i18n logic. Real-world applications will have more complexity and higher resource usage.\n\n| Project | Build Time | Code Bundle | Max Memory | Max CPU |\n|---------|------------|-------------|------------|---------|\n| **plain-nuxt** (baseline) | 5.71s | 1.35 MB | 674 MB | 240% |\n| **i18n-micro** | 23.47s | 1.5 MB | 1,658 MB | 208% |\n| **i18n v10** | 84.91s | 19.24 MB | 9,528 MB | 439% |\n\n\u003e **Code Bundle** = JavaScript/CSS code only (excludes translation JSON files).\n\u003e i18n-micro stores translations as lazy-loaded JSON files, keeping the code bundle minimal.\n\n- **i18n-micro vs baseline**: +17.76s build, +0.15 MB code, +984 MB memory\n- **i18n v10 vs baseline**: +79.20s build, +17.89 MB code, +8,854 MB memory\n\n#### Stress Test Results (Requests per Second)\n\n| Project | Avg Response | RPS (Artillery) | Max Memory |\n|---------|--------------|-----------------|------------|\n| **plain-nuxt** | 544 ms | 228 | 340 MB |\n| **i18n-micro** | 411 ms | 292 | 347 MB |\n| **i18n v10** | 1,363 ms | 51 | 1,243 MB |\n\n#### Comparison: i18n v10 vs i18n-micro\n\n- **Code Bundle**: 17.74 MB smaller (i18n-micro: 1.5 MB vs i18n v10: 19.24 MB)\n- **Build Time**: 61.44s faster (i18n-micro: 23.47s vs i18n v10: 84.91s)\n- **Max Memory (build)**: 7,870 MB less (i18n-micro: 1,658 MB vs i18n v10: 9,528 MB)\n- **Average Response Time**: 952 ms faster (i18n-micro: 411 ms vs i18n v10: 1,363 ms)\n- **Requests Per Second**: 241 more (i18n-micro: 292 vs i18n v10: 51)\n\nThese results clearly demonstrate that `Nuxt I18n Micro` significantly outperforms the original module in every critical area while staying close to the plain Nuxt baseline.\n\n## Key Features\n\n- 🌐 **Compact Yet Powerful**: Despite its small size, `Nuxt I18n Micro` is designed for large-scale projects, focusing on performance and efficiency.\n- ⚡ **Optimized Build and Runtime**: Reduces build times, memory usage, and server load, making it ideal for high-traffic applications.\n- 🛠 **Minimalist Design**: The module is structured around just 5 components (1 module and 4 plugins), making it easy to understand, extend, and maintain.\n- 📏 **Efficient Routing**: Generates only 2 routes regardless of the number of locales, thanks to dynamic regex-based routing, unlike other i18n modules that generate separate routes for each locale.\n- 🗂 **Streamlined Translation Loading**: Only JSON files are supported, with translations split between a global file for common texts (e.g., menus) and page-specific files, which are auto-generated in the `dev` mode if not present.\n\n## Quick Setup\n\nInstall the module in your Nuxt application with:\n\n```bash\nnpm install nuxt-i18n-micro\n```\n\nThen, add it to your `nuxt.config.ts`:\n\n```typescript\nexport default defineNuxtConfig({\n  modules: [\n    'nuxt-i18n-micro',\n  ],\n  i18n: {\n    locales: [\n      { code: 'en', iso: 'en-US', dir: 'ltr' },\n      { code: 'fr', iso: 'fr-FR', dir: 'ltr' },\n      { code: 'ar', iso: 'ar-SA', dir: 'rtl' },\n    ],\n    defaultLocale: 'en',\n    translationDir: 'locales',\n    meta: true,\n  },\n})\n```\n\nThat's it! You're now ready to use Nuxt I18n Micro in your Nuxt app.\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=s00d/nuxt-i18n-micro\u0026type=date\u0026legend=top-left)](https://www.star-history.com/#s00d/nuxt-i18n-micro\u0026type=date\u0026legend=top-left)\n\n\n[Docs](https://s00d.github.io/nuxt-i18n-micro/)\n\n[Plugin Methods](https://s00d.github.io/nuxt-i18n-micro/api/methods)\n\n[Performance](https://s00d.github.io/nuxt-i18n-micro/guide/performance)\n\n[Performance Test Results](https://s00d.github.io/nuxt-i18n-micro/guide/performance-results)\n\n[Components](https://s00d.github.io/nuxt-i18n-micro/components/i18n-t)\n\n[Layers](https://s00d.github.io/nuxt-i18n-micro/guide/layers)\n\n[Seo](https://s00d.github.io/nuxt-i18n-micro/guide/seo)\n\n[Migration](https://s00d.github.io/nuxt-i18n-micro/guide/migration)\n\n[Contribution](https://s00d.github.io/nuxt-i18n-micro/guide/contribution)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs00d%2Fnuxt-i18n-micro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs00d%2Fnuxt-i18n-micro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs00d%2Fnuxt-i18n-micro/lists"}