cozy-ui 134.1.0 → 135.0.0

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.
Files changed (130) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/assets/icons/ui/database.svg +1 -0
  3. package/assets/icons/ui/expert.svg +8 -0
  4. package/package.json +4 -2
  5. package/react/ActionsBar/index.jsx +1 -1
  6. package/react/ActionsBar/locales/withActionsLocales.jsx +2 -1
  7. package/react/ActionsMenu/Actions/locales/withActionsLocales.jsx +2 -2
  8. package/react/ActionsMenu/ActionsItems.jsx +1 -1
  9. package/react/ActionsMenu/ActionsMenuButton.jsx +1 -1
  10. package/react/CozyDialogs/DialogBackButton.jsx +1 -1
  11. package/react/CozyDialogs/DialogCloseButton.jsx +1 -1
  12. package/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.jsx +1 -1
  13. package/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.jsx +1 -1
  14. package/react/CozyDialogs/SpecificDialogs/ShortcutDialog.jsx +1 -1
  15. package/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.jsx +2 -1
  16. package/react/DateMonthPicker/Readme.md +1 -1
  17. package/react/DateMonthPicker/index.jsx +1 -1
  18. package/react/DateMonthPicker/index.spec.jsx +1 -1
  19. package/react/DatePicker/index.jsx +1 -1
  20. package/react/DatePicker/locales/withOwnLocales.jsx +2 -1
  21. package/react/EditBadge/EditMenu.jsx +1 -1
  22. package/react/Icon/Readme.md +5 -1
  23. package/react/Icons/Database.jsx +14 -0
  24. package/react/Icons/Expert.jsx +17 -0
  25. package/react/Labs/PasswordInput/index.jsx +1 -1
  26. package/react/Nav/index.jsx +1 -1
  27. package/react/Nav/locales/withNavLocales.jsx +2 -1
  28. package/react/PasswordField/index.jsx +1 -2
  29. package/react/SearchBar/index.jsx +1 -1
  30. package/react/SearchBar/locales/withOnlyLocales.jsx +2 -1
  31. package/react/SelectionBar/SelectionBarAction.jsx +1 -1
  32. package/react/SelectionBar/SelectionBarMore.jsx +1 -1
  33. package/react/SelectionBar/index.jsx +1 -1
  34. package/react/Spinner/Readme.md +1 -1
  35. package/react/Spinner/index.jsx +1 -1
  36. package/react/Table/Virtualized/Dnd/TableRow.jsx +1 -2
  37. package/react/Wizard/index.jsx +1 -1
  38. package/react/deprecated/ActionMenu/Actions/ActionsItems.jsx +1 -1
  39. package/react/deprecated/ActionMenu/Actions/call.js +1 -1
  40. package/react/deprecated/ActionMenu/Actions/emailTo.js +1 -1
  41. package/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.jsx +2 -1
  42. package/react/deprecated/ActionMenu/Actions/smsTo.js +1 -1
  43. package/react/hooks/useConfirmExit/index.jsx +1 -1
  44. package/react/index.js +0 -1
  45. package/react/jestLib/I18n.js +1 -1
  46. package/react/providers/DemoProvider.jsx +1 -1
  47. package/transpiled/react/ActionsBar/index.js +1 -1
  48. package/transpiled/react/ActionsBar/locales/withActionsLocales.js +1 -1
  49. package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.d.ts +1 -1
  50. package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.js +1 -2
  51. package/transpiled/react/ActionsMenu/ActionsItems.js +1 -1
  52. package/transpiled/react/ActionsMenu/ActionsMenuButton.js +1 -1
  53. package/transpiled/react/CozyDialogs/DialogBackButton.js +1 -1
  54. package/transpiled/react/CozyDialogs/DialogCloseButton.js +1 -1
  55. package/transpiled/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.js +1 -1
  56. package/transpiled/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.js +1 -1
  57. package/transpiled/react/CozyDialogs/SpecificDialogs/ShortcutDialog.js +1 -1
  58. package/transpiled/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.js +1 -1
  59. package/transpiled/react/DateMonthPicker/index.js +1 -1
  60. package/transpiled/react/DatePicker/index.js +1 -1
  61. package/transpiled/react/DatePicker/locales/withOwnLocales.js +1 -1
  62. package/transpiled/react/EditBadge/EditMenu.js +1 -1
  63. package/transpiled/react/Icon/icons-sprite.d.ts +1 -1
  64. package/transpiled/react/Icon/icons-sprite.js +1 -1
  65. package/transpiled/react/Icons/Database.d.ts +2 -0
  66. package/transpiled/react/Icons/Database.js +17 -0
  67. package/transpiled/react/Icons/Expert.d.ts +2 -0
  68. package/transpiled/react/Icons/Expert.js +19 -0
  69. package/transpiled/react/Labs/PasswordInput/index.js +1 -1
  70. package/transpiled/react/Nav/index.js +1 -1
  71. package/transpiled/react/Nav/locales/withNavLocales.js +1 -1
  72. package/transpiled/react/PasswordField/index.js +1 -2
  73. package/transpiled/react/SearchBar/index.js +1 -1
  74. package/transpiled/react/SearchBar/locales/withOnlyLocales.js +1 -1
  75. package/transpiled/react/SelectionBar/SelectionBarAction.js +1 -1
  76. package/transpiled/react/SelectionBar/SelectionBarMore.js +1 -1
  77. package/transpiled/react/SelectionBar/index.js +1 -1
  78. package/transpiled/react/Spinner/index.js +1 -1
  79. package/transpiled/react/Table/Virtualized/Dnd/TableRow.js +1 -1
  80. package/transpiled/react/Wizard/index.js +1 -1
  81. package/transpiled/react/deprecated/ActionMenu/Actions/ActionsItems.js +1 -1
  82. package/transpiled/react/deprecated/ActionMenu/Actions/call.js +1 -1
  83. package/transpiled/react/deprecated/ActionMenu/Actions/emailTo.js +1 -1
  84. package/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.js +1 -1
  85. package/transpiled/react/deprecated/ActionMenu/Actions/smsTo.js +1 -1
  86. package/transpiled/react/hooks/useConfirmExit/index.js +1 -1
  87. package/transpiled/react/index.d.ts +0 -1
  88. package/transpiled/react/index.js +0 -1
  89. package/transpiled/react/jestLib/I18n.d.ts +1 -1
  90. package/transpiled/react/jestLib/I18n.js +1 -1
  91. package/transpiled/react/providers/DemoProvider.js +1 -1
  92. package/react/I18n/index.js +0 -25
  93. package/react/I18n/withLocales.js +0 -14
  94. package/react/providers/I18n/createUseI18n.jsx +0 -32
  95. package/react/providers/I18n/format.jsx +0 -62
  96. package/react/providers/I18n/format.spec.jsx +0 -73
  97. package/react/providers/I18n/helpers.js +0 -33
  98. package/react/providers/I18n/index.jsx +0 -107
  99. package/react/providers/I18n/index.spec.jsx +0 -135
  100. package/react/providers/I18n/translate.jsx +0 -28
  101. package/react/providers/I18n/translation.jsx +0 -42
  102. package/react/providers/I18n/useExtendI18n.jsx +0 -37
  103. package/react/providers/I18n/withLocales.jsx +0 -47
  104. package/react/providers/I18n/withLocales.spec.jsx +0 -58
  105. package/react/providers/I18n/withOnlyLocales.jsx +0 -38
  106. package/transpiled/react/I18n/index.d.ts +0 -3
  107. package/transpiled/react/I18n/index.js +0 -16
  108. package/transpiled/react/I18n/withLocales.d.ts +0 -2
  109. package/transpiled/react/I18n/withLocales.js +0 -10
  110. package/transpiled/react/providers/I18n/createUseI18n.d.ts +0 -6
  111. package/transpiled/react/providers/I18n/createUseI18n.js +0 -39
  112. package/transpiled/react/providers/I18n/format.d.ts +0 -3
  113. package/transpiled/react/providers/I18n/format.js +0 -72
  114. package/transpiled/react/providers/I18n/format.spec.d.ts +0 -1
  115. package/transpiled/react/providers/I18n/helpers.d.ts +0 -5
  116. package/transpiled/react/providers/I18n/helpers.js +0 -35
  117. package/transpiled/react/providers/I18n/index.d.ts +0 -62
  118. package/transpiled/react/providers/I18n/index.js +0 -132
  119. package/transpiled/react/providers/I18n/index.spec.d.ts +0 -1
  120. package/transpiled/react/providers/I18n/translate.d.ts +0 -3
  121. package/transpiled/react/providers/I18n/translate.js +0 -21
  122. package/transpiled/react/providers/I18n/translation.d.ts +0 -3
  123. package/transpiled/react/providers/I18n/translation.js +0 -40
  124. package/transpiled/react/providers/I18n/useExtendI18n.d.ts +0 -7
  125. package/transpiled/react/providers/I18n/useExtendI18n.js +0 -42
  126. package/transpiled/react/providers/I18n/withLocales.d.ts +0 -8
  127. package/transpiled/react/providers/I18n/withLocales.js +0 -69
  128. package/transpiled/react/providers/I18n/withLocales.spec.d.ts +0 -1
  129. package/transpiled/react/providers/I18n/withOnlyLocales.d.ts +0 -8
  130. package/transpiled/react/providers/I18n/withOnlyLocales.js +0 -39
@@ -1,8 +1,8 @@
1
1
  import React from 'react'
2
+ import { useI18n } from 'twake-i18n'
2
3
 
3
4
  import withActionsLocales from './locales/withActionsLocales'
4
5
  import CommentIcon from '../../../Icons/Comment'
5
- import { useI18n } from '../../../providers/I18n'
6
6
  import ActionMenuItemWrapper from '../ActionMenuItemWrapper'
7
7
 
8
8
  export const smsTo = () => {
@@ -1,5 +1,6 @@
1
1
  import PropTypes from 'prop-types'
2
2
  import React, { useCallback, useRef, useState } from 'react'
3
+ import { withLocales } from 'twake-i18n'
3
4
 
4
5
  import en from './locales/en.json'
5
6
  import fr from './locales/fr.json'
@@ -7,7 +8,6 @@ import ru from './locales/ru.json'
7
8
  import vi from './locales/vi.json'
8
9
  import { ConfirmDialog } from '../../CozyDialogs'
9
10
  import Button from '../../deprecated/Button'
10
- import withLocales from '../../providers/I18n/withLocales'
11
11
  import useEventListener from '../useEventListener'
12
12
 
13
13
  /**
package/react/index.js CHANGED
@@ -6,7 +6,6 @@ export { default as Banner } from './Banner'
6
6
  export { default as ButtonAction } from './deprecated/ButtonAction'
7
7
  export { default as BottomDrawer } from './deprecated/BottomDrawer'
8
8
  export { default as BarButton } from './BarButton'
9
- export { default as I18n, translate, useI18n } from './providers/I18n'
10
9
  export { default as Icon } from './Icon'
11
10
  export { default as Sprite } from './Icon/Sprite'
12
11
  export { default as Sidebar } from './Sidebar'
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { I18n } from '../providers/I18n'
3
+ import { I18n } from 'twake-i18n'
4
4
 
5
5
  export const I18nContext = options => {
6
6
  const I18nComponent = new I18n({
@@ -1,9 +1,9 @@
1
1
  import React from 'react'
2
+ import I18n from 'twake-i18n'
2
3
 
3
4
  import { BreakpointsProvider } from './Breakpoints'
4
5
  import CozyTheme from './CozyTheme'
5
6
  import AlertProvider from '../providers/Alert'
6
- import I18n from '../providers/I18n'
7
7
 
8
8
  const DemoProvider = ({ variant, dictRequire, children }) => {
9
9
  const lang = localStorage.getItem('lang') || 'en'
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import PropTypes from 'prop-types';
3
3
  import React, { useRef, useState, useMemo } from 'react';
4
+ import { useI18n } from 'twake-i18n';
4
5
  import ResponsiveAction from "cozy-ui/transpiled/react/ActionsBar/ResponsiveAction";
5
6
  import withActionsLocales from "cozy-ui/transpiled/react/ActionsBar/locales/withActionsLocales";
6
7
  import ActionsMenu from "cozy-ui/transpiled/react/ActionsMenu";
@@ -19,7 +20,6 @@ import Toolbar from "cozy-ui/transpiled/react/Toolbar";
19
20
  import Typography from "cozy-ui/transpiled/react/Typography";
20
21
  import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
21
22
  import CozyTheme, { useCozyTheme } from "cozy-ui/transpiled/react/providers/CozyTheme";
22
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
23
23
  import { makeStyles } from "cozy-ui/transpiled/react/styles";
24
24
  var useStyles = makeStyles({
25
25
  appBar: function appBar(_ref) {
@@ -1,3 +1,4 @@
1
+ import { withOnlyLocales } from 'twake-i18n';
1
2
  var en = {
2
3
  selected: "%{smart_count} item selected |||| %{smart_count} items selected",
3
4
  selected_light: "%{smart_count} item |||| %{smart_count} items"
@@ -14,7 +15,6 @@ var vi = {
14
15
  selected: "%{smart_count} m\u1EE5c \u0111\u01B0\u1EE3c ch\u1ECDn |||| %{smart_count} m\u1EE5c \u0111\u01B0\u1EE3c ch\u1ECDn",
15
16
  selected_light: "%{smart_count} m\u1EE5c |||| %{smart_count} m\u1EE5c"
16
17
  };
17
- import withOnlyLocales from "cozy-ui/transpiled/react/providers/I18n/withOnlyLocales";
18
18
  export var locales = {
19
19
  en: en,
20
20
  fr: fr,
@@ -6,7 +6,7 @@ export namespace locales {
6
6
  }
7
7
  export function getActionsI18n(): {
8
8
  t: any;
9
- f: (date: any, formatStr: any, opts?: {}) => string | undefined;
9
+ f: (date: any, formatStr: any, opts?: {} | undefined) => string;
10
10
  lang: any;
11
11
  };
12
12
  declare var _default: Component;
@@ -1,3 +1,4 @@
1
+ import { withOnlyLocales, getI18n } from 'twake-i18n';
1
2
  var en = {
2
3
  menu: "Menu",
3
4
  viewInContacts: "View in Cozy Contacts",
@@ -114,8 +115,6 @@ var vi = {
114
115
  },
115
116
  call: "G\u1ECDi"
116
117
  };
117
- import { getI18n } from "cozy-ui/transpiled/react/providers/I18n/helpers";
118
- import withOnlyLocales from "cozy-ui/transpiled/react/providers/I18n/withOnlyLocales";
119
118
  export var locales = {
120
119
  en: en,
121
120
  fr: fr,
@@ -9,9 +9,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
9
9
 
10
10
  import PropTypes from 'prop-types';
11
11
  import React, { forwardRef, useMemo } from 'react';
12
+ import { useI18n } from 'twake-i18n';
12
13
  import { useWebviewIntent } from 'cozy-intent';
13
14
  import { getActionName, getOnlyNeededActions } from "cozy-ui/transpiled/react/ActionsMenu/Actions/helpers";
14
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
15
15
  var ActionsItems = /*#__PURE__*/forwardRef(function (_ref, ref) {
16
16
  var docs = _ref.docs,
17
17
  actions = _ref.actions,
@@ -1,12 +1,12 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useState, useRef } from 'react';
3
+ import { useI18n, useExtendI18n } from 'twake-i18n';
3
4
  import ActionsMenu from "cozy-ui/transpiled/react/ActionsMenu";
4
5
  import { locales } from "cozy-ui/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales";
5
6
  import Icon from "cozy-ui/transpiled/react/Icon";
6
7
  import IconButton from "cozy-ui/transpiled/react/IconButton";
7
8
  import DotsIcon from "cozy-ui/transpiled/react/Icons/Dots";
8
9
  import ListItemIcon from "cozy-ui/transpiled/react/ListItemIcon";
9
- import { useI18n, useExtendI18n } from "cozy-ui/transpiled/react/providers/I18n";
10
10
 
11
11
  var ActionsMenuButton = function ActionsMenuButton(_ref) {
12
12
  var docs = _ref.docs,
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["onClick"];
4
4
  import PropTypes from 'prop-types';
5
5
  import React from 'react';
6
+ import { createUseI18n } from 'twake-i18n';
6
7
  import locales from "cozy-ui/transpiled/react/CozyDialogs/locales";
7
8
  var styles = {
8
9
  "DialogCloseButton": "styles__DialogCloseButton___cxKPO",
@@ -11,7 +12,6 @@ var styles = {
11
12
  import Icon from "cozy-ui/transpiled/react/Icon";
12
13
  import IconButton from "cozy-ui/transpiled/react/IconButton";
13
14
  import PreviousIcon from "cozy-ui/transpiled/react/Icons/Previous";
14
- import { createUseI18n } from "cozy-ui/transpiled/react/providers/I18n";
15
15
  var useI18n = createUseI18n(locales);
16
16
 
17
17
  var DialogBackButton = function DialogBackButton(_ref) {
@@ -3,6 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["onClick"];
4
4
  import PropTypes from 'prop-types';
5
5
  import React from 'react';
6
+ import { createUseI18n } from 'twake-i18n';
6
7
  import locales from "cozy-ui/transpiled/react/CozyDialogs/locales";
7
8
  var styles = {
8
9
  "DialogCloseButton": "styles__DialogCloseButton___cxKPO",
@@ -11,7 +12,6 @@ var styles = {
11
12
  import Icon from "cozy-ui/transpiled/react/Icon";
12
13
  import IconButton from "cozy-ui/transpiled/react/IconButton";
13
14
  import CrossMediumIcon from "cozy-ui/transpiled/react/Icons/CrossMedium";
14
- import { createUseI18n } from "cozy-ui/transpiled/react/providers/I18n";
15
15
  var useI18n = createUseI18n(locales);
16
16
 
17
17
  var CloseButton = function CloseButton(_ref) {
@@ -1,12 +1,12 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React, { forwardRef } from 'react';
3
+ import { useI18n } from 'twake-i18n';
3
4
  import CozyLocation from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/icons/CozyLocation";
4
5
  import withSpecificDialogsLocales from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales";
5
6
  import { IllustrationDialog } from "cozy-ui/transpiled/react/CozyDialogs";
6
7
  import Button from "cozy-ui/transpiled/react/Buttons";
7
8
  import Icon from "cozy-ui/transpiled/react/Icon";
8
9
  import Typography from "cozy-ui/transpiled/react/Typography";
9
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
10
10
 
11
11
  var createStyles = function createStyles() {
12
12
  return {
@@ -1,5 +1,6 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React, { forwardRef } from 'react';
3
+ import { useI18n } from 'twake-i18n';
3
4
  import DefaultQRCode from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/icons/QRCodeInstallFlagshipAppDialog.png";
4
5
  import appStoreIcon from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/icons/appstore.png";
5
6
  import playStoreIcon from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/icons/playstore.png";
@@ -7,7 +8,6 @@ import withSpecificDialogsLocales from "cozy-ui/transpiled/react/CozyDialogs/Spe
7
8
  import { IllustrationDialog } from "cozy-ui/transpiled/react/CozyDialogs";
8
9
  import Link from "cozy-ui/transpiled/react/Link";
9
10
  import Typography from "cozy-ui/transpiled/react/Typography";
10
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
11
11
  var InstallFlagshipAppDialog = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
12
  var onClose = _ref.onClose,
13
13
  playStoreUrl = _ref.playStoreUrl,
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import PropTypes from 'prop-types';
3
3
  import React, { useState } from 'react';
4
+ import { useI18n } from 'twake-i18n';
4
5
  import { checkAndSaveShortcut, makeHumanReadableFileName } from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/helpers/shortcuts";
5
6
  import withSpecificDialogsLocales from "cozy-ui/transpiled/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales";
6
7
  import { ConfirmDialog } from "cozy-ui/transpiled/react/CozyDialogs";
@@ -8,7 +9,6 @@ import Button from "cozy-ui/transpiled/react/Buttons";
8
9
  import Stack from "cozy-ui/transpiled/react/Stack";
9
10
  import TextField from "cozy-ui/transpiled/react/TextField";
10
11
  import { useAlert } from "cozy-ui/transpiled/react/providers/Alert";
11
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
12
12
  var ENTER_KEY = 13;
13
13
 
14
14
  var ShortcutDialog = function ShortcutDialog(_ref) {
@@ -1,3 +1,4 @@
1
+ import { withOnlyLocales } from 'twake-i18n';
1
2
  var en = {
2
3
  cancel: "Cancel",
3
4
  allow: "Allow",
@@ -162,7 +163,6 @@ var vi = {
162
163
  "url-bad-format": "URL \u0111\xE3 nh\u1EADp kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng"
163
164
  }
164
165
  };
165
- import withOnlyLocales from "cozy-ui/transpiled/react/providers/I18n/withOnlyLocales";
166
166
  export var locales = {
167
167
  en: en,
168
168
  fr: fr,
@@ -4,6 +4,7 @@ import format from 'date-fns/format';
4
4
  import range from 'lodash/range';
5
5
  import PropTypes from 'prop-types';
6
6
  import React, { useState } from 'react';
7
+ import { useI18n } from 'twake-i18n';
7
8
  var styles = {
8
9
  "DateMonthPicker__YearControls": "styles__DateMonthPicker__YearControls___1DGlB",
9
10
  "DateMonthPicker__YearButton": "styles__DateMonthPicker__YearButton___3zNDK",
@@ -15,7 +16,6 @@ var styles = {
15
16
  import Icon from "cozy-ui/transpiled/react/Icon";
16
17
  import LeftIcon from "cozy-ui/transpiled/react/Icons/Left";
17
18
  import RightIcon from "cozy-ui/transpiled/react/Icons/Right";
18
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
19
19
 
20
20
  var MonthButton = function MonthButton(_ref) {
21
21
  var monthNum = _ref.monthNum,
@@ -18,10 +18,10 @@ import LocaleFR from 'date-fns/locale/fr';
18
18
  import subDays from 'date-fns/subDays';
19
19
  import PropTypes from 'prop-types';
20
20
  import React, { forwardRef, useState } from 'react';
21
+ import { useI18n } from 'twake-i18n';
21
22
  import { makeFormat } from "cozy-ui/transpiled/react/DatePicker/helpers";
22
23
  import withOwnLocales from "cozy-ui/transpiled/react/DatePicker/locales/withOwnLocales";
23
24
  import useBreakpoints from "cozy-ui/transpiled/react/providers/Breakpoints";
24
- import { useI18n } from "cozy-ui/transpiled/react/providers/I18n";
25
25
  import { makeStyles } from "cozy-ui/transpiled/react/styles";
26
26
  var localesFNS = {
27
27
  fr: LocaleFR,
@@ -1,3 +1,4 @@
1
+ import { withOnlyLocales } from 'twake-i18n';
1
2
  var en = {
2
3
  cancel: "Cancel",
3
4
  clear: "Clear",
@@ -30,7 +31,6 @@ var vi = {
30
31
  today: "H\xF4m nay",
31
32
  minDateLabelError: "Ng\xE0y kh\xF4ng \u0111\u01B0\u1EE3c tr\u01B0\u1EDBc ng\xE0y t\u1ED1i thi\u1EC3u (%{date})"
32
33
  };
33
- import withOnlyLocales from "cozy-ui/transpiled/react/providers/I18n/withOnlyLocales";
34
34
  export var locales = {
35
35
  en: en,
36
36
  fr: fr,
@@ -1,4 +1,5 @@
1
1
  import React, { useRef } from 'react';
2
+ import { useI18n, useExtendI18n } from 'twake-i18n';
2
3
  import { handleDelete, handleUpload } from "cozy-ui/transpiled/react/EditBadge/helpers";
3
4
  import { locales } from "cozy-ui/transpiled/react/EditBadge/locales";
4
5
  import Icon from "cozy-ui/transpiled/react/Icon";
@@ -9,7 +10,6 @@ import ListItemText from "cozy-ui/transpiled/react/ListItemText";
9
10
  import Menu from "cozy-ui/transpiled/react/Menu";
10
11
  import MenuItem from "cozy-ui/transpiled/react/MenuItem";
11
12
  import { useAlert } from "cozy-ui/transpiled/react/providers/Alert";
12
- import { useI18n, useExtendI18n } from "cozy-ui/transpiled/react/providers/I18n";
13
13
 
14
14
  var EditMenu = function EditMenu(_ref) {
15
15
  var anchorRef = _ref.anchorRef,