{"library":"vue-i18n-jest","type":"library","category":null,"description":"vue-i18n-jest is a specialized Jest transformer designed to enable the correct parsing and transformation of `<i18n>` custom blocks within Vue Single File Components (SFCs) during unit testing. It specifically targets Vue 2 applications and integrates with `vue-jest@v4`. This package is crucial for developers who store their internationalization messages directly within their Vue components and need Jest to understand and process these blocks for testing. The current stable version is 1.1.1, released in October 2021. Its release cadence has been sporadic. It differentiates itself by providing a dedicated bridge for `vue-jest` to handle i18n custom blocks, which is not natively supported by `vue-jest` alone for Vue 2 testing environments.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript","i18n","jest","vue","vue-i18n"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-i18n-jest","imports":["// jest.config.js\nmodule.exports = {\n  // ... other Jest configurations\n  globals: {\n    'vue-jest': {\n      transform: {\n        'i18n': 'vue-i18n-jest' // This line enables the transformer for i18n blocks\n      }\n    }\n  }\n};","// jest.config.js\nmodule.exports = {\n  transform: {\n    '^.+\\.(i18n|json5)$': 'vue-i18n-jest' // Example: directly mapping i18n custom blocks if extracted to separate files\n  }\n};"]},{"cmd":"yarn add vue-i18n-jest","imports":[]},{"cmd":"pnpm add vue-i18n-jest","imports":[]}],"homepage":null,"github":"https://github.com/intlify/vue-i18n-jest","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-i18n-jest","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-i18n-jest/compatibility"}}