{"_id":"@agenda-portal/nestjs-i18n","name":"@agenda-portal/nestjs-i18n","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agenda-portal/nestjs-i18n","version":"0.1.0","description":"Internationalization (i18n) module for NestJS based on the i18next package","author":{"name":"Slate Hayes"},"license":"MIT","keywords":["nestjs","i18n"],"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"rimraf -rf dist && tsc","format":"prettier --write \"lib/**/*.ts\"","prepublish":"npm run build"},"dependencies":{"i18next":"25.2.1"},"devDependencies":{"@commitlint/cli":"19.8.1","@commitlint/config-angular":"19.8.1","@nestjs/common":"11.1.2","@types/node":"22.15.29","husky":"9.1.7","prettier":"3.5.3","rimraf":"6.0.1","typescript":"5.8.3"},"peerDependencies":{"@nestjs/common":"^11.1.2"},"_id":"@agenda-portal/nestjs-i18n@0.1.0","gitHead":"bbb373684b6f3a70b0fee9e66eda9fac857acc68","_nodeVersion":"22.12.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-MoqocxiPnC8+4A8nqRNXPrmFVMjYx+ODYSebuZlY4r5zOY/KKLjqMHQfadxQ89P92JI+gH6Q+QTonWugLKmQlg==","shasum":"086ea96099a75172b1a408b17020b7e91d280d7a","tarball":"https://registry.npmjs.org/@agenda-portal/nestjs-i18n/-/nestjs-i18n-0.1.0.tgz","fileCount":19,"unpackedSize":8047,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAf5oIccpW8O1vAgc+rRu+Sg/k1rL4U2scMB8BlF++C+AiEA/VfJONmBTdEwCuDgKVb5Q0t66Ce/q90kxQITR/MdPMs="}]},"_npmUser":{"name":"sl8","email":"slatelhayes@gmail.com"},"directories":{},"maintainers":[{"name":"sl8","email":"slatelhayes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-i18n_0.1.0_1749238669673_0.5440125852429885"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-06T19:37:49.550Z","0.1.0":"2025-06-06T19:37:49.896Z","modified":"2025-06-06T19:37:50.220Z"},"maintainers":[{"name":"sl8","email":"slatelhayes@gmail.com"}],"description":"Internationalization (i18n) module for NestJS based on the i18next package","keywords":["nestjs","i18n"],"author":{"name":"Slate Hayes"},"license":"MIT","readme":"# nestjs-i18n\n\nInternationalization (i18n) module for NestJS based on the i18next package\n\n## Installation\n\n```bash\nnpm install @agenda-portal/nestjs-i18n\n```\n\n## Usage\n\n1. Define your translations\n\n```json\n{\n  \"default\": {\n    \"hello\": \"world!\"\n  }\n}\n```\n\n```json\n{\n  \"default\": {\n    \"hello\": \"mundo\"\n  }\n}\n```\n\n2. Export the translations\n\n```typescript\nimport en from \"./en.json\";\nimport pt from \"./pt.json\";\n\nexport const translations = {\n  en,\n  pt,\n};\n```\n\n3. Declare a module augmentation for the translation types\n\n```typescript\nimport en from \"./en.json\";\nimport pt from \"./pt.json\";\n\nexport const translations = {\n  en,\n  pt,\n};\n\ndeclare module \"@agenda-portal/nestjs-i18n\" {\n  interface I18n {\n    translations: typeof translations;\n  }\n}\n```\n","readmeFilename":"README.md","_rev":"1-0f20233a3cf1ee0ac78eed1ab58d7b6b"}