{"name":"vue-i18n","description":"Internationalization plugin for Vue.js","version":"9.0.0-alpha.0","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","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","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","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\n## :star: New Features\n\n### Composable API\n\nNew style API for Vue 3. See the following docs:\n\n- [createI18nComposer](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.createi18ncomposer.md)\n- [I18nComposerOptions](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.i18ncomposeroptions.md)\n- [I18nComposer](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.i18ncomposer.md)\n- [useI18n](https://github.com/intlify/vue-i18n-next/blob/master/docs/vue-i18n.usei18n.md)\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  - new vue-i18n API optimized for Vue 3. details about API\n- legacy\n  - vue-i18n API 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- API\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### :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- imporve `fallbackLocale` or `fallbackLocales` (related vue-i18n [issue](https://github.com/kazupon/vue-i18n/pull/829))\n- `<i18n>` custom block supporting for SFC\n- `v-t` directive\n- `preserveDirectiveContent` option (depend on `v-t`)\n- Compoonent interpolation with `<i18n>` component\n- Number custom formatting with `<i18n-n>` component\n- HTML format suppression with `warnHtmlInMessage` option\n- SSR\n- Custom formatting\n- Tooling\n  - `vue-cli-plugin-i18n`\n  - `@intlify/vue-i18n-loader`\n  - `@intlify/rollup-plugin-vue-i18n`\n  - `@intlify/vue-i18n-extensions`\n  - `@intlify/eslint-plugin-vue-i18n`\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] fallbackLocales\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  - [ ] Interpolocation `<i18n>`\n  - [ ] NumberFormat `<i18n-n>`\n- Directive\n  - [ ] `v-t`\n- Tool Chains\n  - [ ] vue-i18n-extensions\n  - [ ] 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","readmeFilename":"README.md","gitHead":"ce5b2e0acc5af7ce3930c5e7b94c2d1ca1d9145e","_id":"vue-i18n@9.0.0-alpha.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-wuxfYxYa2Lu0iss5CsFNXlvr3hdDzXxr+FpB9HPxpMJLhNPLGu7Y83AfMIsck8XTi7WwVh4TslDXmsV2x9LOug==","shasum":"5ffaa6d83b514c7318986648e88a122dc0c393ab","tarball":"http://registry-npm.ywwl.com/vue-i18n/download/vue-i18n-9.0.0-alpha.0.tgz","fileCount":13,"unpackedSize":533364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei+9sCRA9TVsSAnZWagAA5lcP/2ByjkDvSfCTuy1LuWva\nRmArh1ce7A+cYMGbz2rt2izNY/MfErQLtEvMzSUN4E+pT/D+E9BpOHqPJlqO\nEOXVUrPqppIVhdpBb1KZpUuBX30i0zOKymZm6VdvrXY1wdJdWbOxsljYWO6A\nrYkRcv7cTGQl6uFegtqbO4NPRyB0CM6PpCduHbC20u2JJzzzDBbixb/zOFgO\nVoz9aDMo10Ar9KI4gBDD9yC2Jmxm+14a3PvoTsJrrbbKTRI3/kDtfsRNaCen\ntU/36lM3tHoMWrLta62UkGwblIIu4qLtKTqYdG/apmvxzPgRLIehUOTlaDgK\n22hulBa0qorATRd/qGCE0sEOQXHQiibRyBuDgjddiY8SasCyJhXdQhX7VYvw\nwdxCJoR+Dc1KBPotd9JFZY3W7uFOT56UsRX+nn9s26Hh8q5W9XYWch+qAlvO\niGuxJp+pU/AKFv60wQunhKh6y6D3Mg7HTv3JwgsDUg44k3yQQbTSuev2RwJy\ndaBvbIzwya/9gER/tpPhupzsSmdpL38HhllS+wbXjt/ZLGLLlQoRnvItj8zF\nUoyTpupTSSvumg4BRLq0zOcjSbg+zq0r12GS/ICCRNlaSZKNZqLsWnwUxofJ\niXtyl6/5wcWCheYL+13R9vJMGwhEC5WvvektcOnwnjpuX5w6Z8XDdTf5w7v/\nSIT2\r\n=xGOb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5BJ+gqKqronjFcYc1hJtuOBZIfvLEJ73uyRFWj03lLwIgNMGS3bCaN6sK2nq7U8c4qv/SJ6w3Sxa1IwrDyp8uRQw="}],"size":101921,"noattachment":false,"key":"/vue-i18n/-/vue-i18n-9.0.0-alpha.0.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.0_1586229099844_0.16695368699883217"},"_hasShrinkwrap":false,"publish_time":1586229099990,"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":1586229099990,"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"}}