cozy-ui-plus 13.0.0 → 13.0.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,14 @@
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
+ ## [13.0.2](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@13.0.1...cozy-ui-plus@13.0.2) (2026-09-15)
7
+
8
+ **Note:** Version bump only for package cozy-ui-plus
9
+
10
+ ## [13.0.1](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@13.0.0...cozy-ui-plus@13.0.1) (2026-09-14)
11
+
12
+ **Note:** Version bump only for package cozy-ui-plus
13
+
6
14
  # [13.0.0](https://github.com/cozy/cozy-libs/compare/cozy-ui-plus@12.3.15...cozy-ui-plus@13.0.0) (2026-09-10)
7
15
 
8
16
  ### chore
@@ -1,6 +1,5 @@
1
1
  export function I18nContext(options: any): {
2
2
  t: any;
3
3
  f: (date: any, formatStr: any, opts?: {}) => string;
4
- polyglot: any;
5
4
  lang: any;
6
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui-plus",
3
- "version": "13.0.0",
3
+ "version": "13.0.2",
4
4
  "description": "Cozy-ui-plus is an extension of cozy-ui and provides components based on cozy-client",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "cozy-intent": "^2.31.1",
39
39
  "cozy-interapp": "^0.19.0",
40
40
  "cozy-logger": "^1.18.1",
41
- "cozy-sharing": "^37.6.1",
41
+ "cozy-sharing": "^37.7.0",
42
42
  "cozy-stack-client": "^60.21.1",
43
43
  "cozy-ui": "^138.1.0",
44
44
  "jest": "30.3.0",
@@ -50,7 +50,7 @@
50
50
  "react-dom": "16.12.0",
51
51
  "react-test-renderer": "16.12.0",
52
52
  "stylus": "0.64.0",
53
- "twake-i18n": "^0.4.1",
53
+ "twake-i18n": "^0.5.0",
54
54
  "typescript": "5.5.2"
55
55
  },
56
56
  "dependencies": {
@@ -78,5 +78,5 @@
78
78
  "react-dom": "^16 || ^17 || ^18",
79
79
  "twake-i18n": ">=0.3.0"
80
80
  },
81
- "gitHead": "b101bc4cb905b32920ef7a22344eb890147eab23"
81
+ "gitHead": "b204dc35cf01f135f6b8ba4a5ae4acbb0753456f"
82
82
  }
package/test/I18n.js CHANGED
@@ -1,13 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import I18n from 'twake-i18n'
3
+ import { getI18n } from 'twake-i18n'
4
4
 
5
- export const I18nContext = options => {
6
- const I18nComponent = new I18n({
7
- lang: options.lang,
8
- defaultLang: options.defaultLang,
9
- dictRequire: () => options.locale
10
- })
11
-
12
- return I18nComponent.getContextValue()
13
- }
5
+ export const I18nContext = options =>
6
+ getI18n(options.lang, () => options.locale, undefined, options.defaultLang)