Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

intlify/vue-i18n-jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

afaa5c3 Β· Oct 21, 2021

History

74 Commits
Oct 21, 2021
Dec 18, 2020
Jun 8, 2021
Jun 8, 2021
Nov 14, 2019
Nov 14, 2019
Nov 14, 2019
Jun 9, 2021
Dec 18, 2020
Jun 9, 2021
Nov 14, 2019
Jun 9, 2021
Dec 18, 2020
Jun 9, 2021
May 11, 2020
Nov 15, 2019
Oct 21, 2021

Repository files navigation

🌐 vue-i18n-jest

Test npm

vue-jest transformer for i18n custom blocks

⚠️ NOTICE

v2.x or later is for vue-i18n-next (Vue 3.x)

If you want to use for vue-i18n@v8.x (Vue 2.x), use the v1.x

This transformer is for vue-jest@v5.x

πŸ’Ώ Installation

npm

npm install --save-dev vue-i18n-jest

yarn

yarn add -D vue-i18n-jest

πŸš€ Usages

To define vue-i18n-jest as a transformer for your .vue files that have i18n custom blocks, map them to the vue-i18n-jest module.

if you've already setup vue-jest, You can change it as follows:

module.exports = {
  globals: {
    'vue-jest': {
      transform: {
        'i18n': 'vue-i18n-jest'
      }
    }
  }
}

πŸ“œ Changelog

Details changes for each release are documented in the CHANGELOG.md.

❗ Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

βœ… TODO

Managed with GitHub Projects

©️ License

MIT