@brightspace-ui/intl
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -139,2 +139,3 @@ export const defaultLocale = 'en'; | ||
this._listeners = []; | ||
this.oslo = {batch: null, collection: null}; | ||
} | ||
@@ -147,2 +148,3 @@ | ||
this.timezone = this._tryParseHtmlElemAttr('data-timezone', {name: '', identifier: ''}); | ||
this.oslo = this._tryParseHtmlElemAttr('data-oslo', {batch: null, collection: null}); | ||
} | ||
@@ -161,2 +163,4 @@ | ||
this.timezone = this._tryParseHtmlElemAttr('data-timezone', {name: '', identifier: ''}); | ||
} else if (mutation.attributeName === 'data-oslo') { | ||
this.oslo = this._tryParseHtmlElemAttr('data-oslo', {batch: null, collection: null}); | ||
} | ||
@@ -163,0 +167,0 @@ } |
@@ -14,3 +14,3 @@ import { | ||
const groupSizes = [3]; | ||
const groupSizes = Array.isArray(descriptor.groupSize) ? descriptor.groupSize : [descriptor.groupSize]; | ||
let currentGroupSizeIndex = -1; | ||
@@ -161,2 +161,3 @@ const maxGroupSizeIndex = groupSizes.length - 1; | ||
const descriptor = { | ||
groupSize: 3, | ||
patterns: { | ||
@@ -163,0 +164,0 @@ decimal: { |
{ | ||
"name": "@brightspace-ui/intl", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.", | ||
@@ -5,0 +5,0 @@ "main": "lib/number.js", |
@@ -5,3 +5,3 @@ # intl | ||
[![NPM downloads](https://img.shields.io/npm/dt/@brightspace-ui/intl.svg)](https://www.npmjs.com/package/@brightspace-ui/intl) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/BrightspaceUI/intl.svg)](https://greenkeeper.io/) | ||
[![Dependabot badge](https://flat.badgen.net/dependabot/BrightspaceUI/intl?icon=dependabot)](https://app.dependabot.com/) | ||
[![Build status](https://travis-ci.com/BrightspaceUI/intl.svg?branch=master)](https://travis-ci.com/BrightspaceUI/intl) | ||
@@ -8,0 +8,0 @@ |
53261
1076