{"name":"vue-i18n","description":"Internationalization plugin for Vue.js","version":"9.0.0-alpha.2","author":{"name":"kazuya kawaguchi","email":"kawakazu80@gmail.com"},"browser":"dist/vue-i18n.esm.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"}},"dependencies":{"vue":"^3.0.0-alpha.10"},"devDependencies":{"@microsoft/api-documenter":"^7.7.17","@microsoft/api-extractor":"^7.7.12","@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-node-resolve":"^7.1.1","@rollup/plugin-replace":"^2.3.0","@types/jest":"^25.0.0","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","@typescript-eslint/typescript-estree":"^2.26.0","brotli":"^1.3.2","chalk":"^4.0.0","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.2","eslint-plugin-vue":"^7.0.0-alpha.0","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":"^25.2.4","jest-puppeteer":"^4.4.0","jest-watch-typeahead":"^0.5.0","lerna-changelog":"^1.0.1","minimist":"^1.2.5","opener":"^1.5.1","prettier":"^2.0.0","puppeteer":"^2.1.1","rollup":"^2.3.0","rollup-plugin-terser":"^5.2.0","rollup-plugin-typescript2":"^0.27.0","set-tz":"^0.2.0","shipjs":"^0.18.1","ts-jest":"^25.3.0","typescript":"^3.8.3","typescript-eslint-language-service":"^2.0.3"},"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","repository":{"type":"git","url":"git+https://github.com/intlify/vue-i18n-next.git"},"scripts":{"build":"node ./scripts/build.js","build:sourcemap":"yarn build --sourcemap","build:type":"yarn build --types","build:watch":"tsc -p . --watch","clean":"yarn clean:type && yarn clean:dist && yarn clean:docs && yarn clean:cache && yarn clean:coverage","clean:cache":"rm -rf ./node_modules/.rts2_cache","clean:coverage":"rm -rf ./coverage","clean:dist":"rm -rf ./dist/**","clean:type":"rm -rf ./types/** ./temp ./dist/vue-i18n.d.ts","clean:docs":"rm -rf ./docs","coverage":"opener coverage/lcov-report/index.html","dev:e2e":"jest --runInBand --config ./jest.e2e.config.js","dev:docs":"yarn build:type && yarn docs:api","docs:api":"api-documenter markdown -i ./temp -o docs","format":"prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'","format:fix":"yarn format --write","fix":"yarn lint:fix && yarn format:fix","lint":"eslint ./src ./test ./e2e --ext .js,.ts","lint:fix":"yarn lint --fix","release:prepare":"shipjs prepare","release:trigger":"shipjs trigger","test":"yarn lint && yarn test:cover && yarn 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":"cross-env NODE_ICU_DATA=./node_modules/full-icu jest --env node","test:watch":"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<p>\n  <a href=\"https://www.patreon.com/kazupon\" target=\"_blank\">\n    <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" alt=\"Become a Patreon\">\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 pluralalization 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` facatory function\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  - Renamte to `<i18n-t>` component\n  - Remove the below props:\n    - `place` prop\n    - `places` prop\n    - `path` prop (Rename to `keypath` prop)\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- `v-t` directive\n- `preserveDirectiveContent` option (depend on `v-t`)\n- HTML format suppression with `warnHtmlInMessage` option\n- SSR\n- Custom formatting\n- Tooling\n  - `vue-cli-plugin-i18n`\n  - `@intlify/rollup-plugin-vue-i18n`\n  - `@intlify/vue-i18n-extensions`\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  - [ ] error handling\n  - [ ] more unit tests!\n- Intlify core runtime\n  - [x] translate function\n  - [x] datetime function\n  - [x] number function\n  - [ ] warnHtmlInMessage\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] 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  - 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] 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    - [ ] preserveDirectiveContent\n    - [ ] warnHtmlInMessage\n    - [x] postTranslation\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  - [ ] `v-t`\n- Tool Chains\n  - [ ] vue-i18n-extensions\n  - [x] vue-i18n-loader\n  - [ ] rollup-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\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.2","dist":{"shasum":"38d4b66095dc475e56930940037c2850cc73bfa4","integrity":"sha512-5uM42HRfWNXtI7e6DbqmfUa1W/He20YRQY4AxoKcnl5tQU60Cw8BSAXNC887cila4fm4PjleSugYrppLY0rXEw==","tarball":"http://registry-npm.ywwl.com/vue-i18n/download/vue-i18n-9.0.0-alpha.2.tgz","fileCount":18,"unpackedSize":853006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJek//8CRA9TVsSAnZWagAAAf8P+wUPWsN4h7JAG/ChTedU\nC1wg1op9PxxorUxV4ZJhk6XwhdOagTjtVpsnKuhAvMVmjTcuBZNvqUWJpLTJ\nJE2/qnAgWVVdWwFe5n6pQEkXlwZLBrLf+iSAEXz1wEdl5zBdvKtefaRl/9R5\nMZEQN5qJzkiGp4GODrSMeTv2WdDzkYvjyEpav9bxaPFwD7cKhz6m8jfOBw+r\n/2sQFV/mNt37iAJJ3PukyQ0l25sZiBRuDasrYL1R8NXADRnh1HP6v/30K7zE\nIbUiTCjymtj+Vy1VB8CHegJ69bQ4ttEYlEO4hOvfIkp3l527zet2GDInAQdi\n9O6NI4VJ9er4kTZEd29Fndrtl4wH0nCltu1nIsGe3KtgnqI/hcCpt+FTByPR\n0F/IIkncjcSlqZr8Bi/3eC0zkeEnmYBhlln+nKOG7nIBZg4oAMRhJi/PaTuj\nm/mlh0j8Tp5WejpESyWt0ijsl1HR4lICBks+2H0rJ0iPrm8PyPlCB0z3AKSB\npGFW728q5HHjR1KUC7zvDgBwZxiOcH4ZFI2hucZn/tRwdai7sxI6QdxSTHPc\nPEN3mBz67QQyK7lSdZmnr4x3unaay5+Ob1Qrp8TwW95/eXUkC/ot4nHOuURR\n0A7BGeCG+1peQaZw2kLGEBhBVAgcuy8VS/1Hu0o5gw+bPabYUmrbqJ6a9m6L\nx9/1\r\n=x0nF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBFvCy/727DHMes4Bw711LalBACa69YmyyAC7busbe28AiEAybZACOWgy3oD4DTeZeWZWYQ7l+wESqDw77kluqY39TQ="}],"size":159302,"noattachment":false,"key":"/vue-i18n/-/vue-i18n-9.0.0-alpha.2.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.2_1586757627719_0.8560217651069948"},"_hasShrinkwrap":false,"publish_time":1586757627947,"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":1586757627947,"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"}}