{"_id":"@aloksbd9/esm-translations","name":"@aloksbd9/esm-translations","dist-tags":{"latest":"6.2.0"},"versions":{"6.2.0":{"name":"@aloksbd9/esm-translations","version":"6.2.0","license":"MPL-2.0","description":"O3 Framework module for translation support","browser":"dist/openmrs-esm-translations.js","main":"src/index.ts","source":true,"scripts":{"test":"jest --passWithNoTests --color","build":"webpack --mode=production","build:development":"webpack --mode development","analyze":"webpack --mode=production --env analyze=true","typescript":"tsc","lint":"eslint src --ext ts,tsx","extract-translations":"i18next src/translations.ts --config='i18next-parser.config.mjs'"},"keywords":["openmrs","microfrontends"],"directories":{"lib":"dist","src":"src"},"browserslist":["extends browserslist-config-openmrs"],"repository":{"type":"git","url":"git+https://github.com/openmrs/openmrs-esm-core.git"},"bugs":{"url":"https://github.com/openmrs/openmrs-esm-core/issues"},"homepage":"https://github.com/openmrs/openmrs-esm-core#readme","publishConfig":{"access":"public"},"devDependencies":{"i18next-parser":"^8.13.0"},"dependencies":{"i18next":"21.10.0"},"peerDependencies":{"i18next":"21.x"},"_id":"@aloksbd9/esm-translations@6.2.0","gitHead":"94e86c81dfbc300af22b1ecab8d2cc77fbaa2d17","_nodeVersion":"23.5.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-CJuQe26j5Uc5NbN+waqHta/TT9FCR1Tx4vrKyQf0Wubs/FXjKqiSXHSwXD/E9fi0B7kq3WNTc5mH2FgTWEQNeA==","shasum":"ea304042a2ec9f068fe0966b3c8139e284c5a5bc","tarball":"https://registry.npmjs.org/@aloksbd9/esm-translations/-/esm-translations-6.2.0.tgz","fileCount":44,"unpackedSize":111587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAIhBhB+a9vDTFVjsCL7ZykqTyqEfbcWct+W6IpIzIXzAiA+pr8wBHl44JOPlhflcueu8L5xxqLRP6rnRgIhSXbo4g=="}]},"_npmUser":{"name":"aloksbd","email":"aloksubedi@hotmail.com"},"maintainers":[{"name":"aloksbd","email":"aloksubedi@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esm-translations_6.2.0_1754302344883_0.688540820204077"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-04T10:12:24.788Z","6.2.0":"2025-08-04T10:12:25.105Z","modified":"2025-08-04T10:12:25.434Z"},"maintainers":[{"name":"aloksbd","email":"aloksubedi@hotmail.com"}],"description":"O3 Framework module for translation support","homepage":"https://github.com/openmrs/openmrs-esm-core#readme","keywords":["openmrs","microfrontends"],"repository":{"type":"git","url":"git+https://github.com/openmrs/openmrs-esm-core.git"},"bugs":{"url":"https://github.com/openmrs/openmrs-esm-core/issues"},"license":"MPL-2.0","readme":"# @openmrs/esm-translations\n\nThis framework library supports translations that can be used throughout the O3 application.\n\nUse translations with `getCoreTranslation`. The translations are in the `core` namespace.\n\n## Under the hood\n\nTranslation key-value pairs are kept in `src/translations.ts`. The keys in that file\nare used to generate the `CoreTranslationKey` type, which allows Typescript to tell\ndevelopers whether a key is in the core translations or not. The values are used by\nthe `getCoreTranslation` function, so no default needs to be provided.\n\nA custom i18next-parser lexer is defined so that the `extract-translations` script\npulls translation strings directly out of this `translations.ts` file.\n","readmeFilename":"README.md","_rev":"1-0557aa23482db03205bda82747b60787"}