@refinitiv-ui/i18n
Advanced tools
Comparing version 5.0.0-beta.3 to 5.0.0-build.1823865528.1
127
CHANGELOG.md
@@ -6,3 +6,3 @@ # Change Log | ||
# [5.0.0-beta.3](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.1...@refinitiv-ui/i18n@5.0.0-beta.3) (2021-07-02) | ||
## [5.2.6](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.5...@refinitiv-ui/i18n@5.2.6) (2022-01-12) | ||
@@ -15,3 +15,3 @@ **Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [5.0.0-beta.2](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.1...@refinitiv-ui/i18n@5.0.0-beta.2) (2021-07-02) | ||
## [5.2.5](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.4...@refinitiv-ui/i18n@5.2.5) (2021-12-21) | ||
@@ -24,3 +24,3 @@ **Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [5.0.0-beta.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.0...@refinitiv-ui/i18n@5.0.0-beta.1) (2021-06-22) | ||
## [5.2.4](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.3...@refinitiv-ui/i18n@5.2.4) (2021-12-15) | ||
@@ -33,4 +33,125 @@ **Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [5.2.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/i18n@5.2.2...@refinitiv-ui/i18n@5.2.3) (2021-12-07) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [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) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [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) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [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) | ||
### Features | ||
* Lit@2 upgrade ([dbda63b](https://github.com/Refinitiv/refinitiv-ui/commit/dbda63be97257f891cb1f2c5ff46b638c70e0b15)) | ||
## [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) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [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) | ||
### Bug Fixes | ||
* remove source maps reference from the production build ([655d0bb](https://github.com/Refinitiv/refinitiv-ui/commit/655d0bb57290e5fe1276bf1a99bd7a0190d7a2f8)) | ||
## [5.1.4](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.3...@refinitiv-ui/i18n@5.1.4) (2021-09-15) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [5.1.3](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.2...@refinitiv-ui/i18n@5.1.3) (2021-09-13) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [5.1.2](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.1...@refinitiv-ui/i18n@5.1.2) (2021-09-10) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
## [5.1.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.1.0...@refinitiv-ui/i18n@5.1.1) (2021-08-27) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [5.1.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0...@refinitiv-ui/i18n@5.1.0) (2021-07-30) | ||
### Features | ||
* use latest FormatJS polyfills and ICU parser ([b7855e4](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/b7855e409d10d9c8b9f31a34953470549295a8ab)) | ||
# [5.0.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.3...@refinitiv-ui/i18n@5.0.0) (2021-07-16) | ||
### Bug Fixes | ||
* i18n linting ([9c46fdc](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/9c46fdcc5a4e0c01784c5820086b1de58c2d954c)) | ||
### Features | ||
* rollback files and folders that do not need to be changed ([83a382a](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/commits/83a382a522c10895b4c31c69fe19f5f7d00c9f66)) | ||
# [5.0.0-beta.3](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.1...@refinitiv-ui/i18n@5.0.0-beta.3) (2021-07-02) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [5.0.0-beta.1](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-beta.0...@refinitiv-ui/i18n@5.0.0-beta.1) (2021-06-22) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n | ||
# [5.0.0-beta.0](https://git.sami.int.thomsonreuters.com/elf/refinitiv-ui/compare/@refinitiv-ui/i18n@5.0.0-alpha.6...@refinitiv-ui/i18n@5.0.0-beta.0) (2021-06-22) | ||
**Note:** Version bump only for package @refinitiv-ui/i18n |
@@ -1,5 +0,4 @@ | ||
declare const DEFAULT_LOCALE = "en-GB"; | ||
export { TranslateOptions, TranslateMessage, TranslateParams, UnicodeExtensions, MessageFormats, MessageOptions } from './types'; | ||
export { LangObserverCallback, LangAttributeObserver } from './lang-attribute-observer'; | ||
export { t, clearCache, resolveLocale, clearCachedRecord } from './translate'; | ||
export { DEFAULT_LOCALE }; | ||
export type { TranslateOptions, TranslateMessage, TranslateParams, UnicodeExtensions, MessageFormats, MessageOptions } from './types'; | ||
export { LangObserverCallback, LangAttributeObserver } from './lang-attribute-observer.js'; | ||
export { t, clearCache, resolveLocale, clearCachedRecord } from './translate.js'; | ||
export { DEFAULT_LOCALE } from './constants.js'; |
@@ -1,4 +0,3 @@ | ||
const DEFAULT_LOCALE = 'en-GB'; | ||
export { LangAttributeObserver } from './lang-attribute-observer'; | ||
export { t, clearCache, resolveLocale, clearCachedRecord } from './translate'; | ||
export { DEFAULT_LOCALE }; | ||
export { LangAttributeObserver } from './lang-attribute-observer.js'; | ||
export { t, clearCache, resolveLocale, clearCachedRecord } from './translate.js'; | ||
export { DEFAULT_LOCALE } from './constants.js'; |
@@ -1,2 +0,2 @@ | ||
import { TranslateOptions, TranslateMessage, MessageFormats, MessageOptions } from './types'; | ||
import type { TranslateOptions, TranslateMessage, MessageFormats, MessageOptions } from './types'; | ||
declare abstract class Memoiser { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { TranslateOptions, TranslateParams } from './types'; | ||
import type { TranslateOptions, TranslateParams } from './types'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Resolve translation from provided locale. For instance: |
import { Phrasebook } from '@refinitiv-ui/phrasebook'; | ||
import { supportedLocales } from '@formatjs/intl-utils'; | ||
import { DEFAULT_LOCALE } from './index'; | ||
import { Memoiser } from './memoiser'; | ||
import { DEFAULT_LOCALE } from './constants.js'; | ||
import { Memoiser } from './memoiser.js'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Resolve translation from provided locale. For instance: |
@@ -0,3 +1,3 @@ | ||
import type { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; | ||
import { Formats, Options } from 'intl-messageformat'; | ||
import { MessageFormatElement } from 'intl-messageformat-parser'; | ||
declare type TranslateOptions = { | ||
@@ -4,0 +4,0 @@ [key: string]: unknown; |
{ | ||
"name": "@refinitiv-ui/i18n", | ||
"version": "5.0.0-beta.3", | ||
"version": "5.0.0-build.1823865528.1", | ||
"description": "i18n support for Web Components", | ||
@@ -10,11 +10,14 @@ "main": "./lib/index.js", | ||
"type": "git", | ||
"url": "git@git.sami.int.thomsonreuters.com:elf/refinitiv-ui.git", | ||
"url": "git@github.com:Refinitiv/refinitiv-ui.git", | ||
"directory": "packages/i18n" | ||
}, | ||
"scripts": { | ||
"build": "tsc --sourceMap false", | ||
"build:watch": "tsc --watch --preserveWatchOutput --sourceMap", | ||
"lint": "eslint . --fix", | ||
"test": "yarn build && karma start ../../karma.conf.js", | ||
"test:watch": "yarn build && yarn test --auto-watch=true --single-run=false" | ||
"build": "tsc --sourceMap --declarationMap", | ||
"build:watch": "npm run build -- --watch --preserveWatchOutput", | ||
"build:prod": "tsc", | ||
"lint": "eslint .", | ||
"lint:fix": "eslint . --fix", | ||
"test": "npm run build && karma start ../../karma.config.js --package=i18n --include-snapshots=false", | ||
"test:watch": "npm run test -- --watch", | ||
"version": "node ../../scripts/version" | ||
}, | ||
@@ -24,14 +27,19 @@ "author": "Refinitiv", | ||
"dependencies": { | ||
"@formatjs/icu-messageformat-parser": "^2.0.15", | ||
"@formatjs/intl-utils": "^3.8.4", | ||
"@refinitiv-ui/phrasebook": "^5.0.0-beta.3", | ||
"intl-format-cache": "^4.3.1", | ||
"intl-messageformat": "~9.4.0" | ||
"intl-messageformat": "^9.10.0", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@refinitiv-ui/test-helpers": "^5.0.0-beta.3" | ||
"@refinitiv-ui/phrasebook": "^5.0.0-build.1823865528.1", | ||
"@refinitiv-ui/test-helpers": "^5.0.0-build.1823865528.1" | ||
}, | ||
"peerDependencies": { | ||
"@refinitiv-ui/phrasebook": "^5.4.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "ac83adb028dcc281b187a759e8b3d458d403ebc8" | ||
"gitHead": "cbc400436fe5259c810049b2775a2beb72551f38" | ||
} |
# I18N | ||
`@refinitiv-ui/i18n` provides wrappers and APIs around formatjs [IntlMessageFormat](https://formatjs.io/docs/intl-messageformat/) and `@refinitiv-ui/phrasebook`. In addition it provides tools to observe `lang` attribute changes. | ||
`@refinitiv-ui/i18n` provides wrappers and APIs around formatjs [IntlMessageFormat](https://formatjs.io/docs/intl-messageformat/) and `@refinitiv-ui/phrasebook`. In addition, it provides tools to observe `lang` attribute changes. | ||
@@ -150,3 +150,3 @@ ## Usage | ||
Note that you cannot provide more than one list of unicode extensions. Therefore if extensions are provided via html and JavaScript, the list is merged. | ||
Note that you cannot provide more than one list of unicode extensions. Therefore, if extensions are provided via html and JavaScript, the list is merged. | ||
@@ -161,1 +161,2 @@ ## References | ||
- https://messageformat.github.io/messageformat/page-guide | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66684
17
507
161
6
2
+ Addedtslib@^2.3.1
+ Added@formatjs/ecma402-abstract@1.11.42.2.3(transitive)
+ Added@formatjs/fast-memoize@1.2.12.2.3(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.02.9.3(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.61.8.7(transitive)
+ Added@formatjs/intl-localematcher@0.2.250.5.7(transitive)
+ Addedintl-messageformat@9.13.0(transitive)
- Removed@formatjs/ecma402-abstract@1.5.4(transitive)
- Removedfast-memoize@2.5.2(transitive)
- Removedintl-messageformat@9.4.9(transitive)
- Removedintl-messageformat-parser@6.3.4(transitive)
Updatedintl-messageformat@^9.10.0