{"name":"vue-i18n","description":"Internationalization plugin for Vue.js","version":"9.0.0-beta.6","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.8.56","@microsoft/api-extractor":"^7.9.22","@rollup/plugin-commonjs":"^15.1.0","@rollup/plugin-node-resolve":"^9.0.0","@rollup/plugin-json":"^4.0.0","@rollup/plugin-replace":"^2.3.3","@types/jest":"^26.0.14","@typescript-eslint/eslint-plugin":"^4.2.0","@typescript-eslint/parser":"^4.2.0","@vue/devtools-api":"^6.0.0-beta.2","@vue/server-renderer":"^3.0.0","brotli":"^1.3.2","chalk":"^4.1.0","convert-hrtime":"^3.0.0","cross-env":"^7.0.2","eslint":"^7.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-vue":"^7.0.0-beta.4","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.4.2","jest-puppeteer":"^4.4.0","jest-watch-typeahead":"^0.6.1","lerna-changelog":"^1.0.1","minimist":"^1.2.5","npm-run-all":"^4.1.5","opener":"^1.5.1","prettier":"^2.1.2","puppeteer":"^2.1.1","rollup":"^2.32.0","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-typescript2":"^0.28.0","set-tz":"^0.2.0","shipjs":"^0.22.0","ts-jest":"^26.4.0","tsd":"^0.13.1","typescript":"^4.0.2","typescript-eslint-language-service":"^4.0.1","vue":"^3.0.0"},"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"},"repository":{"type":"git","url":"git+https://github.com/intlify/vue-i18n-next.git"},"scripts":{"benchmark":"yarn build && node ./benchmark/index.js","build":"yarn clean:cache:rollup && node ./scripts/build.js","build:sourcemap":"yarn build --sourcemap","build:type":"yarn build --types && tail -n +14 src/vue.d.ts >> ./dist/vue-i18n.d.ts","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:size":"rm -rf ./size-check/**/dist ./size-check/**/node_modules","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 ./test-d ./e2e ./benchmark ./format-explorer --ext .js,.ts,.vue","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":"tsd","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","dependencies":{"source-map":"^0.6.1"},"gitHead":"3aa7f00acdde8a144b57ad20e96843448eb22e68","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\" width=\"200px\">\n  </a>\n</p>\n\n<br />\n<br />\n\n<p>\n  <a href=\"https://www.sendcloud.com/\" target=\"_blank\">\n    <img src=\"https://raw.githubusercontent.com/kazupon/vue-i18n/v8.x/vuepress/.vuepress/public/patrons/sendcloud.png\" width=\"200px\">\n  </a>\n</p>\n\n<br/>\n<br/>\n\n## Status: Beta ![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### Message Format Syntax\n- Literal Interpolation\n  - You can use a single quote `'` and \"Mustache\" like (`{` `}` ) to make the message literal.\n  - e.g. `foo{'@'}domain.com`\n- Message Functions\n  - As Vue's render function, vue-i18n-next and later support the **Message** functions.\n  - Using the Message function has the following advantages\n    - Accelerate evaluation of vue-i18n messages (pre-compilation)\n    - Support for complex i18n that cannot be handled by message format\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## :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#### Message Format Syntax\n- Special characters\n  - Since vue-i18n-next, message format syntax is handled by the compiler.\n  - The following characters used in the message syntax are processed by the compiler as special characters:\n  - `{`, `}`, `@`, `$`, `|`\n  - If you want to use these special characters, you can use **lietral interpolation** to get around it:\n\n#### APIs\n- The return value of `$t` and `t` methods is **string** only. object and array values ​​are no longer returned.\n  - As an alternative way, you can use `$tm` / `tm`\n- The return value of `$tc` and `tc` methods is **string** only. object and array values ​​are no longer returned.\n  - As an alternative way, you can use `$tm` / `tm`\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- 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## :package: About dist files\n\n### From CDN or without a Bundler\n\n- **`vue-i18n.global(.prod).js`**:\n  - For direct use via `<script src=\"...\">` in the browser. Exposes the `VueI18n` global.\n  - Note that global builds are not [UMD](https://github.com/umdjs/umd) builds.  They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src=\"...\">`.\n  - Contains hard-coded prod/dev branches, and the prod build is pre-minified. Use the `*.prod.js` files for production.\n\n- **`vue-i18n.esm-browser(.prod).js`**:\n  - For usage via native ES modules imports (in browser via `<script type=\"module\">`.\n  - Shares the same runtime compilation, dependency inlining and hard-coded prod/dev behavior with the global build.\n\n### With a Bundler\n\n- **`vue-i18n.esm-bundler.js`**:\n  - For use with bundlers like `webpack`, `rollup` and `parcel`.\n  - Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler)\n  - Does not ship minified builds (to be done together with the rest of the code after bundling)\n\n#### Bundler Build Feature Flags\n\nStarting with 9.0.0-beta.2, `esm-bundler` builds now exposes global feature flags that can be overwritten at compile time:\n\n- `__VUE_I18N_FULL_INSTALL__` (enable/disable, in addition to vue-i18n APIs, components and directives all fully support installation: `true`)\n- `__VUE_I18N_LEGACY_API__` (enable/disable vue-i18n legacy style APIs support, default: `true`)\n- `__INTLIFY_PROD_DEVTOOLS__` (enable/disable intlify-devtools and vue-devtools support in production, default: `false`)\n\nThe build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle. To configure these flags:\n\n- webpack: use [DefinePlugin](https://webpack.js.org/plugins/define-plugin/)\n- Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace)\n- Vite: configured by default, but can be overwritten using the [`define` option](https://github.com/vitejs/vite/blob/a4133c073e640b17276b2de6e91a6857bdf382e1/src/node/config.ts#L72-L76)\n\nNote: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.\n\n\n## :white_check_mark: TODOs\n<details>\n\n- Intlify message format compiler\n  - [x] vue-i18n message format\n  - [x] 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  - [x] 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    - [x] escapeParameter\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    - [x] tm\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] escapeParameterHtml\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    - [x] tm\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    - [x] $tm\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-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  - [x] SSR\n- General tasks\n  - [x] error handlings\n- Next Tasks (v9.1)\n  - [ ] monorepo\n  - [ ] message format pre-compilation tools\n\n</details>\n\n\n## :copyright: License\n\n[MIT](http://opensource.org/licenses/MIT)\n","readmeFilename":"README.md","_id":"vue-i18n@9.0.0-beta.6","_nodeVersion":"14.1.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-6WWNumUYOnoFi50szUxhxNjTntWlL3SSb6DCoDQW3aKIGK6xTKj9bLI1gnSPfFn54dTYlJtzxEHuY8C/kvm7kg==","shasum":"ea89cee5ade18f2a2d0f2ead0ac4a6bedccade6e","tarball":"http://registry-npm.ywwl.com/vue-i18n/download/vue-i18n-9.0.0-beta.6.tgz","fileCount":12,"unpackedSize":867403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjXnuCRA9TVsSAnZWagAAKHwP/34zJa0/AOXDhPRfD+95\n2Ok8+bYV9Z1sj+n0JfUE/5xIH2wUAhNhmUYUHCKG0h1O1PfY/2Gjpv5AwDs5\n7Pog/h8wArSCOA5NRfBvuQV2NTfJeXRCKoUVAovtxgaf/OrjdSM4JoF7f0NY\neJg0aAUOHudPOgp2Q6hAiyFspsgisSyKKRkFBWTKV1UPU1UeaESqc4n+FovL\nlbF9WdRBAA1LbijJRYS8oPBjNjX2LCgbKUD3ffMHDo2oGMG/V9upWDHVAOBh\nmEjUsfPCBFoSox9+uSvKzMuKvlFgJdAOTL8ajIX/cDfWn8XE7hxBZ7WvNqQP\niRhg22m2fnty0kFXDNiDVyV5rz9jRv0h88vWPvF6FmV4l1Wv9kqarIDzuPnB\n/PuaO5p8TWxb7KqA4SNyCz6rpHl/12kpFgHc3p0yxJW5wH1kFkzUpM+ODMy/\nmafqt1nZ+jjMFhRyoDn7JHRXa3uJb2ux1lqI5Ju29NEYZhh+97eSqJK6N2j7\nVt2QkYinbOwWYzNgVw/htjo2/7hbm8+IrIyoyXodv6BvZIn3nYpMc+ci8F+p\nVY1rjC7LMcrW1gW69VFtB8MO946bbjxA+h/qJH6obEAIBoCLmyfsSqrlIqlg\nRXR8Uyn++bFywi2TmeQOrNJg7UYWs6XzmrAladVhKLJ6aBPR4SO1CUWlVlwm\nQQ4h\r\n=GQuE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNorTEBFihGwwMZoXe4/CMUoXmvmxPN+12VvRQSCAugAIgcLqQWb52+xB8C7C2o2gAKT3rh54rTQNYjbNfofA4rpY="}],"size":164048,"noattachment":false,"key":"/vue-i18n/-/vue-i18n-9.0.0-beta.6.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-beta.6_1603107310346_0.28426956353716926"},"_hasShrinkwrap":false,"publish_time":1603107310659,"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":1603107310659,"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"}}