Utilities for querying Locales, and their equivalent variations.
Install
Via npm
npm install -S @standardsets/core @standardsets/locales
Via Yarn
yarn add @standardsets/core @standardsets/locales
Methods
-
getItemVariation
- Allows for swapping one variation for another. (ex.name
→threeLetterCode
|Maori
→mri
) -
getVariations
- Listing of available variations for the current data set. -
getVariationItems
- Query data set and return the specified variation items. Defaults toname
.