{"name":"vue-i18n","description":"Internationalization plugin for Vue.js","version":"9.0.0-alpha.12","author":{"name":"kazuya kawaguchi","email":"kawakazu80@gmail.com"},"browser":"dist/vue-i18n.esm-browser.js","bugs":{"url":"https://github.com/inlitify/vue-i18n-next/issues"},"changelog":{"labels":{"Type: Feature":":star: Features","Type: Bug":":bug: Bug Fixes","Type: Security":":lock: Security Fixes","Type: Performance":":chart_with_upwards_trend: Performance Fixes","Type: Improvement":":zap: Improvement Features","Type: Breaking":":boom: Breaking Change","Type: Deprecated":":warning: Deprecated Features","Type: I18n":":globe_with_meridians: Internationalization","Type: A11y":":wheelchair: Accessibility","Type: Documentation":":pencil: Documentation"}},"devDependencies":{"@microsoft/api-documenter":"^7.7.17","@microsoft/api-extractor":"^7.7.12","@rollup/plugin-commonjs":"^13.0.0","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-replace":"^2.3.0","@types/jest":"^26.0.0","@typescript-eslint/eslint-plugin":"^3.0.0","@typescript-eslint/parser":"^3.0.0","@typescript-eslint/typescript-estree":"^3.0.0","brotli":"^1.3.2","chalk":"^4.0.0","convert-hrtime":"^3.0.0","cross-env":"^7.0.2","eslint":"^7.0.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-vue":"^7.0.0-alpha.1","eslint-plugin-vue-libs":"^4.0.0","execa":"^4.0.0","fs-extra":"^9.0.0","full-icu":"^1.3.1","http-server":"^0.12.1","jest":"^26.0.0","jest-puppeteer":"^4.4.0","jest-watch-typeahead":"^0.6.0","lerna-changelog":"^1.0.1","minimist":"^1.2.5","npm-run-all":"^4.1.5","opener":"^1.5.1","prettier":"^2.0.0","puppeteer":"^2.1.1","rollup":"^2.3.0","rollup-plugin-terser":"^6.0.0","rollup-plugin-typescript2":"^0.27.0","set-tz":"^0.2.0","shipjs":"^0.20.0","ts-jest":"^26.0.0","typescript":"^3.9.3","typescript-eslint-language-service":"^3.0.0","vue":"^3.0.0-beta.15"},"engines":{"node":">= 10"},"homepage":"https://github.com/intlify/vue-i18n-next#readme","keywords":["i18n","internationalization","plugin","vue","vue.js"],"license":"MIT","main":"dist/vue-i18n.cjs.js","module":"dist/vue-i18n.esm-bundler.js","peerDependencies":{"vue":"^3.0.0-beta.15"},"repository":{"type":"git","url":"git+https://github.com/intlify/vue-i18n-next.git"},"scripts":{"benchmark":"yarn build && node ./benchmark/index.js","build":"node ./scripts/build.js","build:sourcemap":"yarn build --sourcemap","build:type":"yarn build --types","build:watch":"tsc -p . --watch","clean":"npm-run-all --parallel clean:*","clean:cache":"yarn clean:cache:rollup && yarn clean:cache:jest","clean:cache:rollup":"rm -rf ./node_modules/.rts2_cache","clean:cache:jest":"jest --clearCache","clean:coverage":"rm -rf ./coverage","clean:dist":"rm -rf ./dist/**","clean:docs":"rm -rf ./docs","clean:type":"rm -rf ./types/** ./temp ./dist/vue-i18n.d.ts","coverage":"opener coverage/lcov-report/index.html","dev:docs":"npm-run-all build:type docs:api","dev:e2e":"jest --runInBand --config ./jest.e2e.config.js","docs:api":"api-documenter markdown -i ./temp -o docs","fix":"npm-run-all --parallel lint:fix format:fix","format":"prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'","format:fix":"yarn format --write","lint":"eslint ./src ./test ./e2e ./benchmark --ext .js,.ts","lint:fix":"yarn lint --fix","release:prepare":"shipjs prepare","release:trigger":"shipjs trigger","test":"npm-run-all lint clean:cache:jest test:cover test:e2e","test:cover":"yarn test:unit --coverage","test:e2e":"yarn build && jest --runInBand --config ./jest.e2e.config.js","test:type":"tsc -p . --noEmit","test:unit":"yarn clean:cache:jest && cross-env NODE_ICU_DATA=./node_modules/full-icu jest --env node","test:watch":"yarn clean:cache:jest && cross-env NODE_ICU_DATA=./node_modules/full-icu jest --env node --watch"},"sideEffects":false,"types":"dist/vue-i18n.d.ts","unpkg":"dist/vue-i18n.global.js","readmeFilename":"README.md","readme":"# vue-i18n-next\n\nInternationalization plugin for Vue.js\n\n<h3>Silver Sponsors</h3>\n\n<p>\n  <a href=\"https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01\" target=\"_blank\">\n    <img src=\"https://raw.githubusercontent.com/kazupon/vue-i18n/dev/vuepress/.vuepress/public/patrons/babeledit.png\">\n  </a>\n</p>\n\n<h3>Bronze Sponsors</h3>\n\n<p>\n  <a href=\"https://zenarchitects.co.jp/\" target=\"_blank\">\n    <img src=\"https://raw.githubusercontent.com/kazupon/vue-i18n/v8.x/vuepress/.vuepress/public/patrons/zenarchitects.png\">\n  </a>\n</p>\n\n<br/>\n\n\n## Status: Alpha ![Test](https://github.com/intlify/vue-i18n-next/workflows/Test/badge.svg)\n\nThe current codebase has most of the existing features on Vue I18n v8.x and is usable.\n\nSince the library is still unstable **and because we want feedback** on bugs and missing features, **it will probably go through a few breaking changes**.\n\nIf you use stable Vue I18n version, see this [repository](https://github.com/kazupon/vue-i18n)\n\n## :star: New Features\n\n### Composable API\n\nNew style API for Vue 3. See the following docs:\n\n- [createI18n](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.createi18n.md)\n  - [I18nOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.i18noptions.md)\n  - [ComposerOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.composeroptions.md)\n  - [VueI18nOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.vuei18noptions.md)\n- [useI18n](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.usei18n.md)\n  - [ComposerOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.composeroptions.md)\n- [Composer](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.composer.md)\n- [VueI18n](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.vuei18n.md)\n\n### `<i18n-t>` Component (formerly called `<i18n>` component)\n\nYou can use pluralization on the component. See the blow examples:\n\n- [Example with using Composable API](https://github.com/intlify/vue-i18n-next/blob/master/examples/composable/components/translation.html)\n- [Example with using Legacy API](https://github.com/intlify/vue-i18n-next/blob/master/examples/legacy/components/translation.html)\n\n### `<i18n-d>` Component\n\nYou can use datetime format on the component, like `<i18n-n>` component.\n\nSee the below examples:\n\n- [Example with using Composable API](https://github.com/intlify/vue-i18n-next/blob/master/examples/composable/components/datetime-format.html)\n- [Example with using Legacy API](https://github.com/intlify/vue-i18n-next/blob/master/examples/legacy/components/datetime-format.html)\n\n\n## :lollipop: Examples\n\nSee the [`examples`](https://github.com/intlify/vue-i18n-next/tree/master/examples) directory.\n\nThe examples are offered that use the following two API styles:\n\n- composable\n  - Examples with using new vue-i18n API optimized for Vue 3\n- legacy\n  - Examples with using vue-i18n API that almost compatible with vue-i18n v8.x\n\n\n## :heavy_exclamation_mark: Known issues\n\n### :boom: Breaking changes compared to vue-i18n v8.x\n\n#### APIs\n- The return value of `$t` and `t` methods is **string** only. object and array values ​​are no longer returned.\n- The return value of `$tc` and `tc` methods is **string** only. object and array values ​​are no longer returned.\n- `VueI18n` class cannot used with `new`. It can only be used via the `$i18n` property of Vue instance.\n  - In vue-i18n-next, by replacing `new VueI18n` with `createI18n`, you can use existing `VueI18n` options as they are.\n  - See the `examples/legacy` directory.\n- `VueI18n.prototype.getChoiceIndex`\n  - -> Legacy API style: `pluralizationRules` option of `createI18n` factory function (like `new VueI18n(...)`)\n  - -> Compsable API style: `pluralRules` option of `createI18nComposer` factory function\n- `warnHtmlInMessage` option:\n  - Composable API: `warnHtmlMessage` boolean property, default `true`.\n  - Legacy API: `warnHtmlInMessage` property.\n  - For development mode, warning is default.\n  - For production mode, HTML message detect is not check due to performance.\n- Legacy API `sync` option:\n  - default: change to `false` from `true`\n- `v-t` directive\n  - `preserve` modifier deprecated, keep Element content\n  - Legacy API `preserveDirectiveContent` option, and property deprecated\n- `VueI18n.version` -> `import { VERSION } from 'vue-i18n'`\n- `VueI18n.availabilities` -> `import { availabilities } from 'vue-i18n'`\n- See the details [here](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.md)\n\n#### Components\n- `<i18n>` component\n  - Rename to `<i18n-t>` component\n  - Remove `Boolean` type from `tag` prop\n  - if `tag` prop is not specified, return the Fragment\n  - Remove the below props:\n    - `place` prop\n    - `places` prop\n    - `path` prop (Rename to `keypath` prop)\n- `<i18n-n>` component\n  - Remove `Boolean` type from `tag` prop\n  - if `tag` prop is not specified, return the Fragment\n\n### :zap: Improvements\n\n- See the [vue-i18n issues](https://github.com/kazupon/vue-i18n/issues?q=is%3Aissue+is%3Aopen+label%3A%22Status%3A+Ready%22) that labeld with `Status: Ready`\n\n\n### :hammer: Missing features\n\n- SSR\n- Custom formatting\n- Tooling\n  - `@intlify/devtools`\n  - `vue-cli-plugin-i18n`\n  - `@intlify/eslint-plugin-vue-i18n`\n\n\n## :cd: Installation\n\n### npm\n\n```bash\nnpm install --save vue-i18n@next\n```\n\n### yarn\n```bash\nyarn add vue-i18n@next\n```\n\n\n## :white_check_mark: TODOs\n<details>\n\n- Intlify message format compiler\n  - [x] vue-i18n message format\n  - [ ] sourcemap\n  - [x] HTML format handling\n  - [ ] more unit (fuzzing) tests\n  - [x] performance tests (benchmark)\n- Intlify core runtime\n  - [x] translate function\n  - [x] datetime function\n  - [x] number function\n  - [x] warnHtmlMessage\n  - [x] improve translate `args` typing\n  - [ ] improve locale messages typing: `LocaleMessages` / `LocaleMessage` / `LocaleMessageDictiory`\n  - [x] postTranslation context option\n- Composable API: I18n Composer\n  - properties\n    - [x] locale\n    - [x] fallbackLocale\n    - [x] inheritLocale\n    - [x] availableLocales\n    - [x] messages\n    - [x] modifiers\n    - [x] pluralRules\n    - [x] missingWarn\n    - [x] fallbackWarn\n    - [x] fallbackRoot\n    - [x] fallbackFormat\n    - [x] dateTimeFormats\n    - [x] numberFormats\n    - [x] warnHtmlMessage\n  - methods\n    - [x] t\n    - [x] getLocaleMessages\n    - [x] setLocaleMessages\n    - [x] mergeLocaleMessages\n    - [x] d\n    - [x] getDateTimeFormat\n    - [x] setDateTimeFormat\n    - [x] mergeDateTimeFormat\n    - [x] n\n    - [x] getNumberFormat\n    - [x] setNumberFormat\n    - [x] mergeNumberFormat\n    - [x] getPostTranslationHandler\n    - [x] setPostTranslationHandler\n    - [x] getMissingHandler\n    - [x] setMissingHandler\n- Legacy API: compatible supporting\n  - VueI18n\n    - [x] locale\n    - [x] fallbackLocale\n    - [x] sync\n    - [x] availableLocales\n    - [x] messages\n    - [x] pluralizationRules\n    - [x] dateTimeFormats\n    - [x] numberFormats\n    - [x] formatter\n    - [x] missing\n    - [x] silentTranslationWarn\n    - [x] silentFallbackWarn\n    - [x] formatFallbackMessages\n    - [x] preserveDirectiveContent\n    - [x] warnHtmlInMessage\n    - [x] postTranslation\n    - [x] componentInstanceCreatedListener\n    - [x] t\n    - [x] tc\n    - [x] te\n    - [x] getLocaleMessage\n    - [x] setLocaleMessage\n    - [x] mergeLocaleMessage\n    - [x] d\n    - [x] getDateTimeFormat\n    - [x] setDateTimeFormat\n    - [x] mergeDateTimeFormat\n    - [x] n\n    - [x] getNumberFormat\n    - [x] setNumberFormat\n    - [x] mergeNumberFormat\n    - [x] getChoiceIndex\n  - Inejctted in Vue Prototype API\n    - [x] $i18n\n    - [x] $t\n    - [x] $tc\n    - [x] $te\n    - [x] $d\n    - [x] $n\n  - Component options\n    - [x] messages\n    - [x] pluralRule\n    - [x] dateTimeFormats\n    - [x] numberFormats\n    - [x] sharedMessages\n  - [x] plugin install & mixin\n  - [x] version\n  - [x] IntlAvailability availabilities\n- Components\n  - [x] Translation `<i18n-t>`\n  - [x] NumberFormat `<i18n-n>`\n  - [x] DatetimeFormat `<i18n-d>`\n- Directive\n  - [x] `v-t`\n- Tool Chains\n  - [ ] intlify devtools\n  - [x] vue-i18n-extensions\n  - [x] vue-i18n-loader\n  - [x] rollup-plugin-vue-i18n\n  - [x] vite-plugin-vue-i18n\n  - [ ] vue-cli-plugin-i18n\n  - [ ] eslint-plugin-vue-i18n\n- Others\n  - [ ] documentation\n  - [x] fallback localization (bubble up)\n  - [ ] SSR\n- General tasks\n  - [x] error handlings\n\n</details>\n\n\n## :copyright: License\n\n[MIT](http://opensource.org/licenses/MIT)\n","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 kazuya kawaguchi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"vue-i18n@9.0.0-alpha.12","dist":{"shasum":"2ed563bc540f23e742ee905cb7856c663d7d23ae","integrity":"sha512-pjjKm4qfJ1QwMcCJw+6OPB24W7T3HimmoSZbsPd3RqT98Bhrj1xbBva6WQv1FyFDmS2GEvK9cQ1T1Vp4uW/uAA==","tarball":"http://registry-npm.ywwl.com/vue-i18n/download/vue-i18n-9.0.0-alpha.12.tgz","fileCount":14,"unpackedSize":823780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9w3XCRA9TVsSAnZWagAAcsQP/1I8EnnvX2QaLLsW6yNS\nPWYOuUr8I3t1797O54ajSNpUaNuIAnxfNywZHeNcXTSmq5GtVAwZx872nPt/\nCHVXcXZc4rEMTw+UDM4Y/fkubd16IyIQynbtivPrO9TLwlLTZvl/F5ZHOg49\nz/NTB7HdhQICL3jBXnTzHySBxswrwY1/MZtEaezG4QTpgWWMsScPXHLlP0Ls\nBL16tST+szN49z5zQddTrPGxh1KCyooPDI4PdWn3O+cl2aQQogHi1u2T3Izc\nanPMbGEq9TyCHNe8ALPKNjapXEx4PptnkwXWvF8LqiBZWJ6C5vDO4XgW9V8/\n/dXD0kf9UIY26oqePkrTOvdtFtfxqceWDlDSxNw+owAjzwCTWR0tN9njs82b\nEzMfWA3AmJutg3fZQ5OYpcqACkf/aM+X5JZ9k97Croy562RvVtmIiQ0WiVm3\nH12/2jCw7tocmXMVoEEz1Tsbf5orqfikkMqH85+NpGQpVUysKxVe55CJG075\nhqhCALqbcRTm54747hPz3wKyAVdzyWlTKI23ny+e+GuE70StLuDUOIMq2Iyk\na7HlZEhDAvPHKh1Nqwns6/V1OLmEjuVEybzcpEYDYrJBVmQ3ROico2K1gXK0\nnZ0yX83PwXmc9XTBKG14NBXQ72t9wOV8wU6c4zyHAgUcXmoMp30VVAJj2PAx\nfomc\r\n=SGpA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdBG+1cpQiRhB1LNx9qTPx+1RJfHKhi+Jvo701wJFsAAiEAo3AYijawfHgoIlaUtuEqfhRkk0xbecCaqCkvK2aTHNA="}],"size":160203,"noattachment":false,"key":"/vue-i18n/-/vue-i18n-9.0.0-alpha.12.tgz"},"maintainers":[{"name":"kazupon","email":"kawakazu80@gmail.com"}],"_npmUser":{"name":"kazupon","email":"kawakazu80@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-i18n_9.0.0-alpha.12_1593249238426_0.5715566102279255"},"_hasShrinkwrap":false,"publish_time":1593249238658,"deprecated":"v9 and v10 no longer supported. please migrate to v11. about maintenance status, see https://vue-i18n.intlify.dev/guide/maintenance.html","_cnpm_publish_time":1593249238658,"dist-tags":{"alpha":"9.2.0-alpha.9","beta":"9.3.0-beta.27","edge":"9.3.0-beta.14-77e850b","latest":"11.4.18","legacy":"8.28.2","legacy10":"10.0.8","legacy9":"9.14.5","next":"12.0.0-alpha.9","rc":"9.0.0-rc.9","stable":"11.1.10","stable9":"9.14.5"}}