cozy-ui 134.2.0 → 135.1.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.
- package/CHANGELOG.md +32 -0
- package/assets/icons/ui/send.svg +1 -0
- package/package.json +4 -2
- package/react/ActionsBar/index.jsx +1 -1
- package/react/ActionsBar/locales/withActionsLocales.jsx +2 -1
- package/react/ActionsMenu/Actions/locales/withActionsLocales.jsx +2 -2
- package/react/ActionsMenu/ActionsItems.jsx +1 -1
- package/react/ActionsMenu/ActionsMenuButton.jsx +1 -1
- package/react/CozyDialogs/DialogBackButton.jsx +1 -1
- package/react/CozyDialogs/DialogCloseButton.jsx +1 -1
- package/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.jsx +1 -1
- package/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.jsx +1 -1
- package/react/CozyDialogs/SpecificDialogs/ShortcutDialog.jsx +1 -1
- package/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.jsx +2 -1
- package/react/DateMonthPicker/Readme.md +1 -1
- package/react/DateMonthPicker/index.jsx +1 -1
- package/react/DateMonthPicker/index.spec.jsx +1 -1
- package/react/DatePicker/index.jsx +1 -1
- package/react/DatePicker/locales/withOwnLocales.jsx +2 -1
- package/react/EditBadge/EditMenu.jsx +1 -1
- package/react/Icon/Readme.md +3 -1
- package/react/Icons/Send.jsx +12 -0
- package/react/Labs/PasswordInput/index.jsx +1 -1
- package/react/Nav/index.jsx +1 -1
- package/react/Nav/locales/withNavLocales.jsx +2 -1
- package/react/PasswordField/index.jsx +1 -2
- package/react/SearchBar/index.jsx +1 -1
- package/react/SearchBar/locales/withOnlyLocales.jsx +2 -1
- package/react/SelectionBar/SelectionBarAction.jsx +1 -1
- package/react/SelectionBar/SelectionBarMore.jsx +1 -1
- package/react/SelectionBar/index.jsx +1 -1
- package/react/Spinner/Readme.md +1 -1
- package/react/Spinner/index.jsx +1 -1
- package/react/Table/Virtualized/Dnd/TableRow.jsx +1 -2
- package/react/Wizard/index.jsx +1 -1
- package/react/deprecated/ActionMenu/Actions/ActionsItems.jsx +1 -1
- package/react/deprecated/ActionMenu/Actions/call.js +1 -1
- package/react/deprecated/ActionMenu/Actions/emailTo.js +1 -1
- package/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.jsx +2 -1
- package/react/deprecated/ActionMenu/Actions/smsTo.js +1 -1
- package/react/hooks/useConfirmExit/index.jsx +1 -1
- package/react/index.js +0 -1
- package/react/jestLib/I18n.js +1 -1
- package/react/providers/DemoProvider.jsx +1 -1
- package/transpiled/react/ActionsBar/index.js +1 -1
- package/transpiled/react/ActionsBar/locales/withActionsLocales.js +1 -1
- package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.d.ts +1 -1
- package/transpiled/react/ActionsMenu/Actions/locales/withActionsLocales.js +1 -2
- package/transpiled/react/ActionsMenu/ActionsItems.js +1 -1
- package/transpiled/react/ActionsMenu/ActionsMenuButton.js +1 -1
- package/transpiled/react/CozyDialogs/DialogBackButton.js +1 -1
- package/transpiled/react/CozyDialogs/DialogCloseButton.js +1 -1
- package/transpiled/react/CozyDialogs/SpecificDialogs/AllowLocationDialog.js +1 -1
- package/transpiled/react/CozyDialogs/SpecificDialogs/InstallFlagshipAppDialog.js +1 -1
- package/transpiled/react/CozyDialogs/SpecificDialogs/ShortcutDialog.js +1 -1
- package/transpiled/react/CozyDialogs/SpecificDialogs/withSpecificDialogsLocales.js +1 -1
- package/transpiled/react/DateMonthPicker/index.js +1 -1
- package/transpiled/react/DatePicker/index.js +1 -1
- package/transpiled/react/DatePicker/locales/withOwnLocales.js +1 -1
- package/transpiled/react/EditBadge/EditMenu.js +1 -1
- package/transpiled/react/Icon/icons-sprite.d.ts +1 -1
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/Send.d.ts +2 -0
- package/transpiled/react/Icons/Send.js +13 -0
- package/transpiled/react/Labs/PasswordInput/index.js +1 -1
- package/transpiled/react/Nav/index.js +1 -1
- package/transpiled/react/Nav/locales/withNavLocales.js +1 -1
- package/transpiled/react/PasswordField/index.js +1 -2
- package/transpiled/react/SearchBar/index.js +1 -1
- package/transpiled/react/SearchBar/locales/withOnlyLocales.js +1 -1
- package/transpiled/react/SelectionBar/SelectionBarAction.js +1 -1
- package/transpiled/react/SelectionBar/SelectionBarMore.js +1 -1
- package/transpiled/react/SelectionBar/index.js +1 -1
- package/transpiled/react/Spinner/index.js +1 -1
- package/transpiled/react/Table/Virtualized/Dnd/TableRow.js +1 -1
- package/transpiled/react/Wizard/index.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/ActionsItems.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/call.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/emailTo.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/locales/withActionsLocales.js +1 -1
- package/transpiled/react/deprecated/ActionMenu/Actions/smsTo.js +1 -1
- package/transpiled/react/hooks/useConfirmExit/index.js +1 -1
- package/transpiled/react/index.d.ts +0 -1
- package/transpiled/react/index.js +0 -1
- package/transpiled/react/jestLib/I18n.d.ts +1 -1
- package/transpiled/react/jestLib/I18n.js +1 -1
- package/transpiled/react/providers/DemoProvider.js +1 -1
- package/react/I18n/index.js +0 -25
- package/react/I18n/withLocales.js +0 -14
- package/react/providers/I18n/createUseI18n.jsx +0 -32
- package/react/providers/I18n/format.jsx +0 -62
- package/react/providers/I18n/format.spec.jsx +0 -73
- package/react/providers/I18n/helpers.js +0 -33
- package/react/providers/I18n/index.jsx +0 -107
- package/react/providers/I18n/index.spec.jsx +0 -135
- package/react/providers/I18n/translate.jsx +0 -28
- package/react/providers/I18n/translation.jsx +0 -42
- package/react/providers/I18n/useExtendI18n.jsx +0 -37
- package/react/providers/I18n/withLocales.jsx +0 -47
- package/react/providers/I18n/withLocales.spec.jsx +0 -58
- package/react/providers/I18n/withOnlyLocales.jsx +0 -38
- package/transpiled/react/I18n/index.d.ts +0 -3
- package/transpiled/react/I18n/index.js +0 -16
- package/transpiled/react/I18n/withLocales.d.ts +0 -2
- package/transpiled/react/I18n/withLocales.js +0 -10
- package/transpiled/react/providers/I18n/createUseI18n.d.ts +0 -6
- package/transpiled/react/providers/I18n/createUseI18n.js +0 -39
- package/transpiled/react/providers/I18n/format.d.ts +0 -3
- package/transpiled/react/providers/I18n/format.js +0 -72
- package/transpiled/react/providers/I18n/format.spec.d.ts +0 -1
- package/transpiled/react/providers/I18n/helpers.d.ts +0 -5
- package/transpiled/react/providers/I18n/helpers.js +0 -35
- package/transpiled/react/providers/I18n/index.d.ts +0 -62
- package/transpiled/react/providers/I18n/index.js +0 -132
- package/transpiled/react/providers/I18n/index.spec.d.ts +0 -1
- package/transpiled/react/providers/I18n/translate.d.ts +0 -3
- package/transpiled/react/providers/I18n/translate.js +0 -21
- package/transpiled/react/providers/I18n/translation.d.ts +0 -3
- package/transpiled/react/providers/I18n/translation.js +0 -40
- package/transpiled/react/providers/I18n/useExtendI18n.d.ts +0 -7
- package/transpiled/react/providers/I18n/useExtendI18n.js +0 -42
- package/transpiled/react/providers/I18n/withLocales.d.ts +0 -8
- package/transpiled/react/providers/I18n/withLocales.js +0 -69
- package/transpiled/react/providers/I18n/withLocales.spec.d.ts +0 -1
- package/transpiled/react/providers/I18n/withOnlyLocales.d.ts +0 -8
- package/transpiled/react/providers/I18n/withOnlyLocales.js +0 -39
|
@@ -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
|
|
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,
|