@brightspace-ui/intl 3.50.0 → 3.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -401,18 +401,19 @@ const localizer = new Localize({
401
401
 
402
402
  #### localizeCommon
403
403
 
404
- The localized value of the following common terms can be accessed using `localizeCommon(name)`:
404
+ The localized value of [these common terms](blob/main/lang/en.js) can be accessed using `localizeCommon(name)`, where `intl-common:` is omitted from the term name.
405
405
 
406
- Navigation
407
- * `navigation:back:title` (Back)
408
- * `navigation:next:title` (Next)
409
- * `navigation:previous:title` (Previous)
406
+ Example:
407
+
408
+ ```javascript
409
+ const value = localizer.localizeCommon('actions:copy'); // -> Copy in en-US
410
+ ```
410
411
 
411
412
  #### localizeCharacter
412
413
 
413
414
  The localized value of the following characters can be accessed using `localizeCharacter(char)`:
414
- * `'` (apostrophe)
415
415
  * `&` (ampersand)
416
+ * `'` (apostrophe)
416
417
  * `*` (asterisk)
417
418
  * `\` (backslash)
418
419
  * `:` (colon)
package/lib/localize.js CHANGED
@@ -20,7 +20,7 @@ const characterMap = new Map([
20
20
  ['?', 'questionMark'],
21
21
  ['"', 'quotationMark']
22
22
  ]);
23
- const commonTerms = [
23
+ export const commonTerms = [
24
24
  'actions:add',
25
25
  'actions:apply',
26
26
  'actions:browse',
@@ -37,6 +37,7 @@ const commonTerms = [
37
37
  'actions:insert',
38
38
  'actions:more',
39
39
  'actions:print',
40
+ 'actions:reload',
40
41
  'actions:remove',
41
42
  'actions:save',
42
43
  'actions:saveAndClose',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/intl",
3
- "version": "3.50.0",
3
+ "version": "3.50.1",
4
4
  "description": "Internationalization APIs for number, date, time and file size formatting and parsing in D2L Brightspace.",
5
5
  "main": "lib/number.js",
6
6
  "type": "module",