https://github.com/vinayakkulkarni/v-intl
Add i18n to your awesome Vue 3 app ๐
https://github.com/vinayakkulkarni/v-intl
composition-api internationalization intl intl-api v-intl vue vue-components vue-composition-api vue-intl vue2 vue3 vuejs
Last synced: 2 months ago
JSON representation
Add i18n to your awesome Vue 3 app ๐
- Host: GitHub
- URL: https://github.com/vinayakkulkarni/v-intl
- Owner: vinayakkulkarni
- License: mit
- Created: 2020-05-31T10:59:57.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T00:18:42.000Z (about 1 year ago)
- Last Synced: 2024-04-14T00:53:44.174Z (about 1 year ago)
- Topics: composition-api, internationalization, intl, intl-api, v-intl, vue, vue-components, vue-composition-api, vue-intl, vue2, vue3, vuejs
- Language: Vue
- Homepage: https://v-intl.netlify.app/
- Size: 4.77 MB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# [v-intl ๐ผ](https://github.com/vinayakkulkarni/v-intl#readme)
[](https://github.com/vinayakkulkarni/v-intl/actions/workflows/ci.yml)
[](https://github.com/vinayakkulkarni/v-intl/actions/workflows/codeql.yml)
[](https://github.com/vinayakkulkarni/v-intl/actions/workflows/shipjs-trigger.yml)
[](https://github.com/vinayakkulkarni/v-intl/releases)
[](https://www.npmjs.com/package/@vinayakkulkarni/v-intl)
[](http://npm-stat.com/charts.html?package=@vinayakkulkarni/v-intl)
[](https://bundlephobia.com/package/@vinayakkulkarni/v-intl@latest)
[](https://github.com/vinayakkulkarni/v-intl/blob/master/package.json)
[](https://deepscan.io/dashboard#view=project&tid=9055&pid=22877&bid=682246)
[](https://snyk.io/test/github/vinayakkulkarni/v-intl)
[](https://github.com/vinayakkulkarni/v-intl/blob/master/LICENSE)
[](https://github.com/vinayakkulkarni/v-intl/graphs/contributors)[](https://eslint.org/)
[](https://prettier.io/)
[](https://vitejs.dev/)
[](https://vuejs.org/)
[](https://www.typescriptlang.org/)---
Intl in your dopeass Vue 3 apps ๐จโ๐ง
## Demo
[](https://codesandbox.io/s/v-intl-7e0j0?fontsize=14&hidenavigation=1&theme=dark)
## Usage
### [In the docs ๐](https://v-intl.netlify.app)
## Background
The package exposes 5 `Intl` components, viz.,
| Formatter | What it does? | More Info |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [VIntlListFormat](https://v-intl.netlify.app/guide/format/list.html) | _Enables language-sensitive list formatting._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) |
| [VIntlNumberFormat](https://v-intl.netlify.app/guide/format/number.html) | _Enable language sensitive number formatting._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat) |
| [VIntlDateTimeFormat](https://v-intl.netlify.app/guide/format/date-time.html) | _Formats the Date & Time._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) |
| [VIntlRelativeTimeFormat](https://v-intl.netlify.app/guide/format/relative-time.html) | _Create a relative time formatter in specified locale._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat) |
| [VIntlDisplayNames](https://v-intl.netlify.app/guide/format/display-names.html) | _Translates region, language, currency, script._ | [Read More](https://v8.dev/features/intl-displaynames#full-api) |
| [VIntlDurationFormat](https://v-intl.netlify.app/guide/format/duration.html) | _Enables language-sensitive duration formatting._ | [Read More](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat) |They're are tree-shakable, meaning, you don't need to bulk up your bundle by including all the components.
I've tried to keep the API as consistent as possible.## Author
**v-intl** ยฉ [Vinayak](https://github.com/vinayakkulkarni), Released under the [MIT](./LICENSE) License.
Authored and maintained by Vinayak Kulkarni with help from contributors ([list](https://github.com/vinayakkulkarni/v-intl/contributors)).> [vinayakkulkarni.dev](https://vinayakkulkarni.dev) ยท GitHub [@vinayakkulkarni](https://github.com/vinayakkulkarni) ยท Twitter [@\_vinayak_k](https://twitter.com/_vinayak_k)