@refinitiv-ui/i18n 5.1.6 → 5.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.2](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.1...@refinitiv-ui/i18n@5.2.2) (2021-12-03)
7
+
8
+ **Note:** Version bump only for package @refinitiv-ui/i18n
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.2.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.0...@refinitiv-ui/i18n@5.2.1) (2021-11-22)
15
+
16
+ **Note:** Version bump only for package @refinitiv-ui/i18n
17
+
18
+
19
+
20
+
21
+
22
+ # [5.2.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.8...@refinitiv-ui/i18n@5.2.0) (2021-11-08)
23
+
24
+
25
+ ### Features
26
+
27
+ * Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15))
28
+
29
+
30
+
31
+
32
+
33
+ ## [5.1.8](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.5...@refinitiv-ui/i18n@5.1.8) (2021-10-25)
34
+
35
+ **Note:** Version bump only for package @refinitiv-ui/i18n
36
+
37
+
38
+
39
+
40
+
6
41
  ## [5.1.5](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.4...@refinitiv-ui/i18n@5.1.5) (2021-10-11)
7
42
 
8
43
 
package/lib/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { TranslateOptions, TranslateMessage, TranslateParams, UnicodeExtensions, MessageFormats, MessageOptions } from './types';
2
- export { LangObserverCallback, LangAttributeObserver } from './lang-attribute-observer';
3
- export { t, clearCache, resolveLocale, clearCachedRecord } from './translate';
4
- export { DEFAULT_LOCALE } from './constants';
1
+ export type { TranslateOptions, TranslateMessage, TranslateParams, UnicodeExtensions, MessageFormats, MessageOptions } from './types';
2
+ export { LangObserverCallback, LangAttributeObserver } from './lang-attribute-observer.js';
3
+ export { t, clearCache, resolveLocale, clearCachedRecord } from './translate.js';
4
+ export { DEFAULT_LOCALE } from './constants.js';
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { LangAttributeObserver } from './lang-attribute-observer';
2
- export { t, clearCache, resolveLocale, clearCachedRecord } from './translate';
3
- export { DEFAULT_LOCALE } from './constants';
1
+ export { LangAttributeObserver } from './lang-attribute-observer.js';
2
+ export { t, clearCache, resolveLocale, clearCachedRecord } from './translate.js';
3
+ export { DEFAULT_LOCALE } from './constants.js';
package/lib/memoiser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { TranslateOptions, TranslateMessage, MessageFormats, MessageOptions } from './types';
1
+ import type { TranslateOptions, TranslateMessage, MessageFormats, MessageOptions } from './types';
2
2
  declare abstract class Memoiser {
3
3
  /**
4
4
  * There is no right answer when to delete memoised function
@@ -1,4 +1,4 @@
1
- import { TranslateOptions, TranslateParams } from './types';
1
+ import type { TranslateOptions, TranslateParams } from './types';
2
2
  /**
3
3
  * Resolve translation from provided locale. For instance:
4
4
  * if `supported=['en', 'zh-Hant', 'zh-Hans']`
package/lib/translate.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Phrasebook } from '@refinitiv-ui/phrasebook';
2
2
  import { supportedLocales } from '@formatjs/intl-utils';
3
- import { DEFAULT_LOCALE } from './constants';
4
- import { Memoiser } from './memoiser';
3
+ import { DEFAULT_LOCALE } from './constants.js';
4
+ import { Memoiser } from './memoiser.js';
5
5
  /**
6
6
  * Resolve translation from provided locale. For instance:
7
7
  * if `supported=['en', 'zh-Hant', 'zh-Hans']`
package/lib/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
+ import type { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
1
2
  import { Formats, Options } from 'intl-messageformat';
2
- import { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
3
3
  declare type TranslateOptions = {
4
4
  [key: string]: unknown;
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@refinitiv-ui/i18n",
3
- "version": "5.1.6",
3
+ "version": "5.2.2",
4
4
  "description": "i18n support for Web Components",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -23,15 +23,16 @@
23
23
  "dependencies": {
24
24
  "@formatjs/icu-messageformat-parser": "^2.0.7",
25
25
  "@formatjs/intl-utils": "^3.8.4",
26
- "@refinitiv-ui/phrasebook": "^5.1.4",
26
+ "@refinitiv-ui/phrasebook": "^5.2.1",
27
27
  "intl-format-cache": "^4.3.1",
28
- "intl-messageformat": "^9.7.1"
28
+ "intl-messageformat": "^9.7.1",
29
+ "tslib": "^2.3.1"
29
30
  },
30
31
  "devDependencies": {
31
- "@refinitiv-ui/test-helpers": "^5.0.3"
32
+ "@refinitiv-ui/test-helpers": "^5.1.1"
32
33
  },
33
34
  "publishConfig": {
34
35
  "access": "public"
35
36
  },
36
- "gitHead": "35d88d431b3c7183351fb92f9ce312a6ce8b53b6"
37
+ "gitHead": "dd5c4933b7a76fbeeed086e1fe84b144202b6884"
37
38
  }