@bigbinary/neeto-molecules 4.1.7 → 4.1.9
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/dist/CopyToClipboardButton.js +1 -1
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/CopyToClipboardButton.js +1 -1
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/ar.json +2 -1
- package/src/translations/bg.json +2 -1
- package/src/translations/ca.json +2 -1
- package/src/translations/cs.json +2 -1
- package/src/translations/da.json +2 -1
- package/src/translations/de.json +2 -1
- package/src/translations/en.json +1 -1
- package/src/translations/es-MX.json +2 -1
- package/src/translations/es.json +2 -1
- package/src/translations/et.json +2 -1
- package/src/translations/fi.json +2 -1
- package/src/translations/fil.json +2 -1
- package/src/translations/fr.json +2 -1
- package/src/translations/he.json +2 -1
- package/src/translations/hi.json +2 -1
- package/src/translations/hr.json +2 -1
- package/src/translations/id.json +2 -1
- package/src/translations/it.json +2 -1
- package/src/translations/ja.json +2 -1
- package/src/translations/ko.json +2 -1
- package/src/translations/nl.json +2 -1
- package/src/translations/pl.json +2 -1
- package/src/translations/pt-BR.json +2 -1
- package/src/translations/pt.json +2 -1
- package/src/translations/ro.json +2 -1
- package/src/translations/ru.json +2 -1
- package/src/translations/sk.json +2 -1
- package/src/translations/sl.json +2 -1
- package/src/translations/sv.json +2 -1
- package/src/translations/th.json +2 -1
- package/src/translations/tr.json +2 -1
- package/src/translations/uk.json +2 -1
- package/src/translations/vi.json +2 -1
- package/src/translations/zh-CN.json +2 -1
- package/src/translations/zh-TW.json +2 -1
|
@@ -68,7 +68,7 @@ var CopyToClipboardButton = function CopyToClipboardButton(_ref) {
|
|
|
68
68
|
ref.current.style.minWidth = "".concat(buttonWidth, "px");
|
|
69
69
|
}, [size]);
|
|
70
70
|
var tooltipOptions = label ? null : mergeAll([TOOLTIP_CONFIG, {
|
|
71
|
-
content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.
|
|
71
|
+
content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copy")
|
|
72
72
|
}, tooltipProps]);
|
|
73
73
|
var buttonLabel = isChecked && label ? successLabel || t("neetoMolecules.common.copied") : label;
|
|
74
74
|
var buttonIcon = isChecked ? Check : icon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipboardButton.js","sources":["../src/components/CopyToClipboardButton/constants.js","../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.
|
|
1
|
+
{"version":3,"file":"CopyToClipboardButton.js","sources":["../src/components/CopyToClipboardButton/constants.js","../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copy\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,EAAE,QAEV,CAAC;;;;;;;;ACAD,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAarB;AAAA,EAAA,IAZJC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAAC,SAAA,GAAAF,IAAA,CACTG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,SAAA;IAAAG,UAAA,GAAAL,IAAA,CACXM,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IACVE,YAAY,GAAAP,IAAA,C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EAAEyB,SAAS,CAAA,EAAA,+BAAA,CAAAgB,MAAA,CACf7B,IAAI,CAAA,EAAKA,IAAI,CAC/C,CAAE;AACHE,IAAAA,OAAO,EAAEe;GAAc,EACnBd,UAAU,CACf,CAAC;AAEN;;;;"}
|
|
@@ -70,7 +70,7 @@ var CopyToClipboardButton = function CopyToClipboardButton(_ref) {
|
|
|
70
70
|
ref.current.style.minWidth = "".concat(buttonWidth, "px");
|
|
71
71
|
}, [size]);
|
|
72
72
|
var tooltipOptions = label ? null : ramda.mergeAll([TOOLTIP_CONFIG, {
|
|
73
|
-
content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.
|
|
73
|
+
content: isChecked ? successTooltipContent || t("neetoMolecules.common.copied") : tooltipContent || t("neetoMolecules.common.copy")
|
|
74
74
|
}, tooltipProps]);
|
|
75
75
|
var buttonLabel = isChecked && label ? successLabel || t("neetoMolecules.common.copied") : label;
|
|
76
76
|
var buttonIcon = isChecked ? Check : icon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopyToClipboardButton.js","sources":["../../src/components/CopyToClipboardButton/constants.js","../../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.
|
|
1
|
+
{"version":3,"file":"CopyToClipboardButton.js","sources":["../../src/components/CopyToClipboardButton/constants.js","../../src/components/CopyToClipboardButton/index.jsx"],"sourcesContent":["const TIME_OUT = 2000;\n\nconst TOOLTIP_CONFIG = {\n trigger: \"click mouseenter\",\n hideAfter: TIME_OUT,\n position: \"top\",\n};\n\nconst BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n text: \"text\",\n};\n\nconst BUTTON_SIZES = {\n small: \"small\",\n medium: \"medium\",\n large: \"large\",\n};\n\nexport { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES, BUTTON_SIZES };\n","import { useState, useLayoutEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { copyToClipboard } from \"neetocommons/utils/general\";\nimport { Copy, Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeAll } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport {\n TOOLTIP_CONFIG,\n TIME_OUT,\n BUTTON_STYLES,\n BUTTON_SIZES,\n} from \"./constants\";\nimport \"./copyToClipboard.scss\";\n\nconst CopyToClipboardButton = ({\n className,\n icon = Copy,\n label = \"\",\n successLabel,\n tooltipContent,\n successTooltipContent,\n value,\n style,\n size = BUTTON_SIZES.medium,\n tooltipProps,\n onClick,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n const [isChecked, setIsChecked] = useState(false);\n\n const ref = useRef();\n\n const onHandleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n\n if (onClick) onClick(event);\n else copyToClipboard(value, { showToastr: false });\n\n setIsChecked(true);\n setTimeout(() => {\n setIsChecked(false);\n }, TIME_OUT); // Reset copied state after 2 seconds\n };\n\n useLayoutEffect(() => {\n if (!ref.current) return;\n ref.current.style.minWidth = \"\";\n const buttonWidth = ref.current.clientWidth;\n ref.current.style.minWidth = `${buttonWidth}px`;\n }, [size]);\n\n const tooltipOptions = label\n ? null\n : mergeAll([\n TOOLTIP_CONFIG,\n {\n content: isChecked\n ? successTooltipContent || t(\"neetoMolecules.common.copied\")\n : tooltipContent || t(\"neetoMolecules.common.copy\"),\n },\n tooltipProps,\n ]);\n\n const buttonLabel =\n isChecked && label\n ? successLabel || t(\"neetoMolecules.common.copied\")\n : label;\n const buttonIcon = isChecked ? Check : icon;\n\n return (\n <Button\n {...{ ref, size, style }}\n data-testid=\"copy-to-clipboard-button\"\n icon={buttonIcon}\n label={buttonLabel}\n tooltipProps={tooltipOptions}\n className={classnames(\"neeto-molecules-copy-button\", {\n [className]: className,\n \"neeto-molecules-copy-button--active\": isChecked,\n [`neeto-molecules-copy-button--${size}`]: size,\n })}\n onClick={onHandleClick}\n {...otherProps}\n />\n );\n};\n\nCopyToClipboardButton.propTypes = {\n /**\n * To provide additional classnames to the button.\n */\n className: PropTypes.string,\n /**\n * To provide the icon to be passed to the button. Defaults to the Copy icon.\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n /**\n * To provide the label to the button. By default there is no label.\n */\n label: PropTypes.string,\n /**\n * The label of button when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successLabel: PropTypes.string,\n /**\n * The value to be copied to clipboard. (required)\n */\n value: PropTypes.string,\n /**\n * To specify the style of the Button.\n */\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n /**\n * To specify the size of the Button. Defaults to 'medium'.\n */\n size: PropTypes.oneOf(Object.values(BUTTON_SIZES)),\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copy'.\n */\n tooltipContent: PropTypes.string,\n /**\n * The content of the tooltip when the value is copied to clipboard. Defaults to 'Copied'.\n */\n successTooltipContent: PropTypes.string,\n};\n\nexport default CopyToClipboardButton;\n"],"names":["TIME_OUT","TOOLTIP_CONFIG","trigger","hideAfter","position","BUTTON_SIZES","small","medium","CopyToClipboardButton","_ref","className","_ref$icon","icon","Copy","_ref$label","label","successLabel","tooltipContent","successTooltipContent","value","style","_ref$size","size","tooltipProps","onClick","otherProps","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isChecked","setIsChecked","ref","useRef","onHandleClick","event","preventDefault","stopPropagation","copyToClipboard","showToastr","setTimeout","useLayoutEffect","current","minWidth","buttonWidth","clientWidth","concat","tooltipOptions","mergeAll","content","buttonLabel","buttonIcon","Check","_jsx","Button","_objectSpread","classnames","_defineProperty"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAMA,QAAQ,GAAG,IAAI;AAErB,IAAMC,cAAc,GAAG;AACrBC,EAAAA,OAAO,EAAE,kBAAkB;AAC3BC,EAAAA,SAAS,EAAEH,QAAQ;AACnBI,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAQD,IAAMC,YAAY,GAAG;AACnBC,EACAC,MAAM,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,CAAA;AACCvB,IAAAA,GAAG,EAAHA,GAAG;AAAEf,IAAAA,IAAI,EAAJA,IAAI;AAAEF,IAAAA,KAAK,EAALA,KAAK;AACtB,IAAA,aAAA,EAAY,0BAA0B;AACtCR,IAAAA,IAAI,EAAE4C,UAAW;AACjBzC,IAAAA,KAAK,EAAEwC,WAAY;AACnBhC,IAAAA,YAAY,EAAE6B,cAAe;IAC7B1C,SAAS,EAAEmD,UAAU,CAAC,6BAA6B,EAAAC,eAAA,CAAAA,eAAA,CAAAA,eAAA,CAAA,EAAA,EAChDpD,SAAS,EAAGA,SAAS,CAAA,EACtB,qCAAqC,EAAEyB,SAAS,CAAA,EAAA,+BAAA,CAAAgB,MAAA,CACf7B,IAAI,CAAA,EAAKA,IAAI,CAC/C,CAAE;AACHE,IAAAA,OAAO,EAAEe;GAAc,EACnBd,UAAU,CACf,CAAC;AAEN;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.9",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
package/src/translations/ar.json
CHANGED
package/src/translations/bg.json
CHANGED
|
@@ -904,7 +904,8 @@
|
|
|
904
904
|
"pending": "В изчакване",
|
|
905
905
|
"enter": "Въведете {{what}}",
|
|
906
906
|
"permission_one": "разрешение",
|
|
907
|
-
"permission_other": "разрешения"
|
|
907
|
+
"permission_other": "разрешения",
|
|
908
|
+
"copy": "Копирай"
|
|
908
909
|
},
|
|
909
910
|
"columns": {
|
|
910
911
|
"columns": "Персонализиране на колони",
|
package/src/translations/ca.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Pendent",
|
|
218
218
|
"enter": "Entrar {{what}}",
|
|
219
219
|
"permission_one": "permissió",
|
|
220
|
-
"permission_other": "permissons"
|
|
220
|
+
"permission_other": "permissons",
|
|
221
|
+
"copy": "Còpia"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Personalitza columnes",
|
package/src/translations/cs.json
CHANGED
package/src/translations/da.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Afventer",
|
|
218
218
|
"enter": "Indtast {{what}}",
|
|
219
219
|
"permission_one": "tilladelse",
|
|
220
|
-
"permission_other": "tilladelser"
|
|
220
|
+
"permission_other": "tilladelser",
|
|
221
|
+
"copy": "Kopier"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Tilpas kolonner",
|
package/src/translations/de.json
CHANGED
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"pending": "Ausstehend",
|
|
61
61
|
"enter": "Geben Sie {{what}} ein",
|
|
62
62
|
"permission_one": "Berechtigung",
|
|
63
|
-
"permission_other": "Berechtigungen"
|
|
63
|
+
"permission_other": "Berechtigungen",
|
|
64
|
+
"copy": "Kopieren"
|
|
64
65
|
},
|
|
65
66
|
"columns": {
|
|
66
67
|
"columns": "Spalten anpassen",
|
package/src/translations/en.json
CHANGED
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"madeWith": "Made with <strong>{{productName, anyCase}}</strong>",
|
|
64
64
|
"viewHelpArticle": "View help article",
|
|
65
|
+
"copy": "Copy",
|
|
65
66
|
"copied": "Copied",
|
|
66
|
-
"copyToClipboard": "Copy to clipboard",
|
|
67
67
|
"success": "Success",
|
|
68
68
|
"pending": "Pending",
|
|
69
69
|
"enter": "Enter {{what}}"
|
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Pendiente",
|
|
218
218
|
"enter": "Ingresar {{what}}",
|
|
219
219
|
"permission_one": "permiso",
|
|
220
|
-
"permission_other": "permisos"
|
|
220
|
+
"permission_other": "permisos",
|
|
221
|
+
"copy": "Copiar"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Personalizar columnas",
|
package/src/translations/es.json
CHANGED
package/src/translations/et.json
CHANGED
package/src/translations/fi.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Naka-pending",
|
|
218
218
|
"enter": "Ipasok {{what}}",
|
|
219
219
|
"permission_one": "pahintulot",
|
|
220
|
-
"permission_other": "mga pahintulot"
|
|
220
|
+
"permission_other": "mga pahintulot",
|
|
221
|
+
"copy": "Kopyahin"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "I-customize ang mga kolum",
|
package/src/translations/fr.json
CHANGED
package/src/translations/he.json
CHANGED
package/src/translations/hi.json
CHANGED
package/src/translations/hr.json
CHANGED
package/src/translations/id.json
CHANGED
package/src/translations/it.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "In sospeso",
|
|
218
218
|
"enter": "Inserisci {{what}}",
|
|
219
219
|
"permission_one": "permesso",
|
|
220
|
-
"permission_other": "permessi"
|
|
220
|
+
"permission_other": "permessi",
|
|
221
|
+
"copy": "Copia"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Personalizza colonne",
|
package/src/translations/ja.json
CHANGED
package/src/translations/ko.json
CHANGED
package/src/translations/nl.json
CHANGED
package/src/translations/pl.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Pendente",
|
|
218
218
|
"enter": "Digite {{what}}",
|
|
219
219
|
"permission_one": "permissão",
|
|
220
|
-
"permission_other": "permissões"
|
|
220
|
+
"permission_other": "permissões",
|
|
221
|
+
"copy": "Copiar"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Personalizar colunas",
|
package/src/translations/pt.json
CHANGED
package/src/translations/ro.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "În așteptare",
|
|
218
218
|
"enter": "Introduceți {{what}}",
|
|
219
219
|
"permission_one": "permisie",
|
|
220
|
-
"permission_other": "permisiuni"
|
|
220
|
+
"permission_other": "permisiuni",
|
|
221
|
+
"copy": "Copiază"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Personalizați coloanele",
|
package/src/translations/ru.json
CHANGED
|
@@ -211,7 +211,8 @@
|
|
|
211
211
|
"pending": "В ожидании",
|
|
212
212
|
"enter": "Введите {{what}}",
|
|
213
213
|
"permission_one": "разрешение",
|
|
214
|
-
"permission_other": "разрешения"
|
|
214
|
+
"permission_other": "разрешения",
|
|
215
|
+
"copy": "Копировать"
|
|
215
216
|
},
|
|
216
217
|
"columns": {
|
|
217
218
|
"columns": "Настроить колонки",
|
package/src/translations/sk.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Čaká",
|
|
218
218
|
"enter": "Zadajte {{what}}",
|
|
219
219
|
"permission_one": "povolenie",
|
|
220
|
-
"permission_other": "povolenia"
|
|
220
|
+
"permission_other": "povolenia",
|
|
221
|
+
"copy": "Kopírovať"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Prispôsobenie stĺpcov",
|
package/src/translations/sl.json
CHANGED
package/src/translations/sv.json
CHANGED
package/src/translations/th.json
CHANGED
package/src/translations/tr.json
CHANGED
package/src/translations/uk.json
CHANGED
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
"pending": "Очікується",
|
|
218
218
|
"enter": "Введіть {{what}}",
|
|
219
219
|
"permission_one": "дозвіл",
|
|
220
|
-
"permission_other": "дозволи"
|
|
220
|
+
"permission_other": "дозволи",
|
|
221
|
+
"copy": "Копіювати"
|
|
221
222
|
},
|
|
222
223
|
"columns": {
|
|
223
224
|
"columns": "Налаштування стовпців",
|
package/src/translations/vi.json
CHANGED