1.1.2 • Published 5 years ago

v-intl-listformat v1.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

v-intl-listformat :zap: Build Status

Requirements

:white_check_mark: Install :ok_hand:

npm install v-intl-listformat --save
// or
yarn add v-intl-listformat

CDN: UNPKG | jsDelivr (available as window.VIntlListFormat)

:white_check_mark: Usage :mortar_board:

Register the component globally:

Vue.component('IntlListFormat', require('v-intl-listformat'));

Or use locally

import IntlListFormat from 'v-intl-listformat';

:white_check_mark: Example 1 :four_leaf_clover:

<intl-list-format :payload="name"></intl-list-format>
// → 'Frank and Christine'
Vue.component('example-component', {
	data() {
		return {
			name: ['Frank', 'Christine'],
		};
	}
});

:white_check_mark: :book: Props

NameTypeRequired?DefaultDescription
payloadArrayYes[]Locale you want to initialise the formatting to be done.
localeStringNoenLocale you want to initialise the formatting to be done.
typeStringNonullType can be disjunction or unit.
styleStringNonullStyle is passed with type, values can be short or narrow.

NPM :octocat:

NPM

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

v-intl-listformat © Vinayak, Released under the MIT License. Authored and maintained by Vinayak Kulkarni with help from contributors (list).

vinayak.pw · GitHub @vinayakkulkarni · Twitter @_vinayak_k