@mui/docs 6.0.0-alpha.0 → 6.0.0-alpha.10

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 (106) hide show
  1. package/CHANGELOG.md +591 -6
  2. package/CodeCopy/CodeCopy.d.ts +20 -0
  3. package/CodeCopy/CodeCopy.js +172 -0
  4. package/CodeCopy/CodeCopyButton.d.ts +5 -0
  5. package/CodeCopy/CodeCopyButton.js +41 -0
  6. package/CodeCopy/index.d.ts +3 -0
  7. package/CodeCopy/index.js +3 -0
  8. package/CodeCopy/package.json +6 -0
  9. package/CodeCopy/useClipboardCopy.d.ts +4 -0
  10. package/CodeCopy/useClipboardCopy.js +21 -0
  11. package/ComponentLinkHeader/ComponentLinkHeader.d.ts +9 -0
  12. package/ComponentLinkHeader/ComponentLinkHeader.js +179 -0
  13. package/ComponentLinkHeader/index.d.ts +2 -0
  14. package/ComponentLinkHeader/index.js +2 -0
  15. package/ComponentLinkHeader/package.json +6 -0
  16. package/HighlightedCode/HighlightedCode.d.ts +14 -0
  17. package/HighlightedCode/HighlightedCode.js +68 -0
  18. package/HighlightedCode/index.d.ts +1 -0
  19. package/HighlightedCode/index.js +1 -0
  20. package/HighlightedCode/package.json +6 -0
  21. package/InfoCard/InfoCard.d.ts +20 -0
  22. package/InfoCard/InfoCard.js +87 -0
  23. package/InfoCard/index.d.ts +1 -0
  24. package/InfoCard/index.js +1 -0
  25. package/InfoCard/package.json +6 -0
  26. package/Link/Link.js +40 -38
  27. package/MarkdownElement/MarkdownElement.d.ts +6 -0
  28. package/MarkdownElement/MarkdownElement.js +825 -0
  29. package/MarkdownElement/index.d.ts +1 -0
  30. package/MarkdownElement/index.js +1 -0
  31. package/MarkdownElement/package.json +6 -0
  32. package/NProgressBar/NProgressBar.js +6 -7
  33. package/SectionTitle/SectionTitle.d.ts +7 -0
  34. package/SectionTitle/SectionTitle.js +30 -0
  35. package/SectionTitle/index.d.ts +1 -0
  36. package/SectionTitle/index.js +1 -0
  37. package/SectionTitle/package.json +6 -0
  38. package/branding/BrandingProvider.d.ts +9 -0
  39. package/branding/BrandingProvider.js +17 -0
  40. package/branding/brandingTheme.d.ts +152 -0
  41. package/branding/brandingTheme.js +1346 -0
  42. package/branding/index.d.ts +2 -0
  43. package/branding/index.js +2 -0
  44. package/branding/package.json +6 -0
  45. package/node/CodeCopy/CodeCopy.js +188 -0
  46. package/node/CodeCopy/CodeCopyButton.js +50 -0
  47. package/node/CodeCopy/index.js +40 -0
  48. package/node/CodeCopy/useClipboardCopy.js +30 -0
  49. package/node/ComponentLinkHeader/ComponentLinkHeader.js +189 -0
  50. package/node/ComponentLinkHeader/index.js +24 -0
  51. package/node/HighlightedCode/HighlightedCode.js +77 -0
  52. package/node/HighlightedCode/index.js +16 -0
  53. package/node/InfoCard/InfoCard.js +97 -0
  54. package/node/InfoCard/index.js +16 -0
  55. package/node/Link/Link.js +43 -40
  56. package/node/MarkdownElement/MarkdownElement.js +837 -0
  57. package/node/MarkdownElement/index.js +16 -0
  58. package/node/NProgressBar/NProgressBar.js +6 -7
  59. package/node/SectionTitle/SectionTitle.js +38 -0
  60. package/node/SectionTitle/index.js +16 -0
  61. package/node/branding/BrandingProvider.js +25 -0
  62. package/node/branding/brandingTheme.js +1357 -0
  63. package/node/branding/index.js +27 -0
  64. package/node/svgIcons/AdobeXDIcon.js +22 -0
  65. package/node/svgIcons/BundleSizeIcon.js +22 -0
  66. package/node/svgIcons/FigmaIcon.js +31 -0
  67. package/node/svgIcons/FileDownload.js +3 -3
  68. package/node/svgIcons/JavaScript.js +3 -3
  69. package/node/svgIcons/MaterialDesignIcon.js +27 -0
  70. package/node/svgIcons/SketchIcon.js +36 -0
  71. package/node/svgIcons/TypeScript.js +3 -3
  72. package/node/svgIcons/W3CIcon.js +24 -0
  73. package/node/translations/translations.json +216 -0
  74. package/package.json +11 -8
  75. package/svgIcons/AdobeXDIcon.d.ts +4 -0
  76. package/svgIcons/AdobeXDIcon.js +14 -0
  77. package/svgIcons/BundleSizeIcon.d.ts +4 -0
  78. package/svgIcons/BundleSizeIcon.js +14 -0
  79. package/svgIcons/FigmaIcon.d.ts +4 -0
  80. package/svgIcons/FigmaIcon.js +23 -0
  81. package/svgIcons/FileDownload.d.ts +7 -0
  82. package/svgIcons/FileDownload.js +3 -3
  83. package/svgIcons/JavaScript.d.ts +7 -0
  84. package/svgIcons/JavaScript.js +3 -3
  85. package/svgIcons/MaterialDesignIcon.d.ts +4 -0
  86. package/svgIcons/MaterialDesignIcon.js +19 -0
  87. package/svgIcons/SketchIcon.d.ts +4 -0
  88. package/svgIcons/SketchIcon.js +28 -0
  89. package/svgIcons/TypeScript.d.ts +7 -0
  90. package/svgIcons/TypeScript.js +3 -3
  91. package/svgIcons/W3CIcon.d.ts +4 -0
  92. package/svgIcons/W3CIcon.js +16 -0
  93. package/translations/translations.json +4 -2
  94. package/tsconfig.build.tsbuildinfo +1 -1
  95. package/legacy/DocsProvider/DocsProvider.js +0 -25
  96. package/legacy/DocsProvider/index.js +0 -1
  97. package/legacy/Link/Link.js +0 -101
  98. package/legacy/Link/index.js +0 -1
  99. package/legacy/NProgressBar/NProgressBar.js +0 -80
  100. package/legacy/NProgressBar/index.js +0 -1
  101. package/legacy/i18n/i18n.js +0 -105
  102. package/legacy/i18n/index.js +0 -1
  103. package/legacy/svgIcons/FileDownload.js +0 -14
  104. package/legacy/svgIcons/JavaScript.js +0 -14
  105. package/legacy/svgIcons/TypeScript.js +0 -14
  106. package/legacy/translations/index.js +0 -4
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { UserLanguageProvider } from '../i18n';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- var DocsConfigContext = /*#__PURE__*/React.createContext(null);
5
- export function DocsProvider(_ref) {
6
- var config = _ref.config,
7
- defaultUserLanguage = _ref.defaultUserLanguage,
8
- translations = _ref.translations,
9
- children = _ref.children;
10
- return /*#__PURE__*/_jsx(DocsConfigContext.Provider, {
11
- value: config,
12
- children: /*#__PURE__*/_jsx(UserLanguageProvider, {
13
- defaultUserLanguage: defaultUserLanguage,
14
- translations: translations,
15
- children: children
16
- })
17
- });
18
- }
19
- export function useDocsConfig() {
20
- var config = React.useContext(DocsConfigContext);
21
- if (!config) {
22
- throw new Error('Could not find docs config context value; please ensure the component is wrapped in a <DocsProvider>');
23
- }
24
- return config;
25
- }
@@ -1 +0,0 @@
1
- export * from './DocsProvider';
@@ -1,101 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import * as React from 'react';
4
- import clsx from 'clsx';
5
- import { useRouter } from 'next/router';
6
- import NextLink from 'next/link';
7
- import MuiLink from '@mui/material/Link';
8
- import { styled } from '@mui/material/styles';
9
- import { useUserLanguage } from '../i18n';
10
- import { useDocsConfig } from '../DocsProvider';
11
-
12
- /**
13
- * File to keep in sync with:
14
- *
15
- * - /docs/src/modules/components/Link.tsx
16
- * - /examples/material-ui-nextjs-pages-router/src/Link.js
17
- * - /examples/material-ui-nextjs-pages-router-ts/src/Link.tsx
18
- */
19
-
20
- // Add support for the sx prop for consistency with the other branches.
21
- import { jsx as _jsx } from "react/jsx-runtime";
22
- var Anchor = styled('a')({});
23
- var NextLinkComposed = /*#__PURE__*/React.forwardRef(function NextLinkComposed(props, ref) {
24
- var to = props.to,
25
- linkAs = props.linkAs,
26
- replace = props.replace,
27
- scroll = props.scroll,
28
- shallow = props.shallow,
29
- prefetch = props.prefetch,
30
- _props$legacyBehavior = props.legacyBehavior,
31
- legacyBehavior = _props$legacyBehavior === void 0 ? true : _props$legacyBehavior,
32
- locale = props.locale,
33
- other = _objectWithoutProperties(props, ["to", "linkAs", "replace", "scroll", "shallow", "prefetch", "legacyBehavior", "locale"]);
34
- return /*#__PURE__*/_jsx(NextLink, {
35
- href: to,
36
- prefetch: prefetch,
37
- as: linkAs,
38
- replace: replace,
39
- scroll: scroll,
40
- shallow: shallow,
41
- passHref: true,
42
- locale: locale,
43
- legacyBehavior: legacyBehavior,
44
- children: /*#__PURE__*/_jsx(Anchor, _extends({
45
- "data-no-markdown-link": "true",
46
- ref: ref
47
- }, other))
48
- });
49
- });
50
- // A styled version of the Next.js Pages Router Link component:
51
- // https://nextjs.org/docs/pages/api-reference/components/link
52
- export var Link = /*#__PURE__*/React.forwardRef(function Link(props, ref) {
53
- var _props$activeClassNam = props.activeClassName,
54
- activeClassName = _props$activeClassNam === void 0 ? 'active' : _props$activeClassNam,
55
- as = props.as,
56
- classNameProps = props.className,
57
- href = props.href,
58
- legacyBehavior = props.legacyBehavior,
59
- linkAsProp = props.linkAs,
60
- locale = props.locale,
61
- noLinkStyle = props.noLinkStyle,
62
- prefetch = props.prefetch,
63
- replace = props.replace,
64
- role = props.role,
65
- scroll = props.scroll,
66
- shallow = props.shallow,
67
- other = _objectWithoutProperties(props, ["activeClassName", "as", "className", "href", "legacyBehavior", "linkAs", "locale", "noLinkStyle", "prefetch", "replace", "role", "scroll", "shallow"]);
68
- var router = useRouter();
69
- var pathname = typeof href === 'string' ? href : href == null ? void 0 : href.pathname;
70
- var routerPathname = router.pathname.replace('/[docsTab]', '');
71
- var shouldBeActive = routerPathname === pathname;
72
- var className = clsx(classNameProps, shouldBeActive && activeClassName);
73
- var userLanguage = useUserLanguage();
74
- var _useDocsConfig = useDocsConfig(),
75
- LANGUAGES_IGNORE_PAGES = _useDocsConfig.LANGUAGES_IGNORE_PAGES;
76
- var linkAs = linkAsProp || as || href;
77
- if (userLanguage !== 'en' && pathname && pathname.indexOf('/') === 0 && !LANGUAGES_IGNORE_PAGES(pathname) && !pathname.startsWith("/".concat(userLanguage, "/"))) {
78
- linkAs = "/".concat(userLanguage).concat(linkAs);
79
- }
80
- var nextjsProps = {
81
- to: href,
82
- linkAs: linkAs,
83
- replace: replace,
84
- scroll: scroll,
85
- shallow: shallow,
86
- legacyBehavior: legacyBehavior,
87
- prefetch: prefetch,
88
- locale: locale
89
- };
90
- if (noLinkStyle) {
91
- return /*#__PURE__*/_jsx(NextLinkComposed, _extends({
92
- className: className,
93
- ref: ref
94
- }, nextjsProps, other));
95
- }
96
- return /*#__PURE__*/_jsx(MuiLink, _extends({
97
- component: NextLinkComposed,
98
- className: className,
99
- ref: ref
100
- }, nextjsProps, other));
101
- });
@@ -1 +0,0 @@
1
- export * from './Link';
@@ -1,80 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
3
- var _templateObject;
4
- import * as React from 'react';
5
- import PropTypes from 'prop-types';
6
- import NProgress from 'nprogress';
7
- import { NoSsr } from '@mui/base/NoSsr';
8
- import { exactProp } from '@mui/utils';
9
- import GlobalStyles from '@mui/material/GlobalStyles';
10
- import { keyframes } from '@mui/material/styles';
11
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
- NProgress.configure({
13
- barSelector: '.nprogress-bar',
14
- template: "\n <div class=\"nprogress-bar\">\n <div></div>\n <div></div>\n </div>\n "
15
- });
16
- var muiNProgressPulse = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 30% {\n opacity: 0.6;\n }\n\n 60% {\n opacity: 0;\n }\n\n to {\n opacity: 0.6;\n }\n"])));
17
-
18
- /**
19
- * Elegant and ready-to-use wrapper on top of https://github.com/rstacruz/nprogress/.
20
- * The implementation is highly inspired by the YouTube one.
21
- */
22
- function NProgressBar(props) {
23
- return /*#__PURE__*/_jsxs(NoSsr, {
24
- children: [props.children, /*#__PURE__*/_jsx(GlobalStyles, {
25
- styles: function styles(theme) {
26
- return {
27
- '#nprogress': _extends({
28
- direction: 'ltr',
29
- pointerEvents: 'none',
30
- position: 'fixed',
31
- top: 0,
32
- left: 0,
33
- right: 0,
34
- height: 2,
35
- zIndex: (theme.vars || theme).zIndex.tooltip,
36
- backgroundColor: (theme.vars || theme).palette.primary[200]
37
- }, theme.applyDarkStyles({
38
- backgroundColor: (theme.vars || theme).palette.primary[700]
39
- }), {
40
- '& .nprogress-bar': {
41
- position: 'fixed',
42
- backgroundColor: (theme.vars || theme).palette.primary.main,
43
- top: 0,
44
- left: 0,
45
- right: 0,
46
- height: 2
47
- },
48
- '& .nprogress-bar > div': {
49
- position: 'absolute',
50
- top: 0,
51
- height: 2,
52
- boxShadow: "".concat((theme.vars || theme).palette.primary.main, " 1px 0 6px 1px"),
53
- borderRadius: '100%',
54
- animation: "".concat(muiNProgressPulse, " 2s ease-out 0s infinite")
55
- },
56
- '& .nprogress-bar > div:first-of-type': {
57
- opacity: 0.6,
58
- width: 20,
59
- right: 0,
60
- clip: 'rect(-6px,22px,14px,10px)'
61
- },
62
- '& .nprogress-bar > div:last-of-type': {
63
- opacity: 0.6,
64
- width: 180,
65
- right: -80,
66
- clip: 'rect(-6px,90px,14px,-6px)'
67
- }
68
- })
69
- };
70
- }
71
- })]
72
- });
73
- }
74
- process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = {
75
- children: PropTypes.node
76
- } : void 0;
77
- if (process.env.NODE_ENV !== 'production') {
78
- process.env.NODE_ENV !== "production" ? NProgressBar.propTypes = exactProp(NProgressBar.propTypes) : void 0;
79
- }
80
- export default NProgressBar;
@@ -1 +0,0 @@
1
- export { default } from './NProgressBar';
@@ -1,105 +0,0 @@
1
- import * as React from 'react';
2
- import PropTypes from 'prop-types';
3
- import { deepmerge } from '@mui/utils';
4
- import defaultTranslations from '../translations';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- var TranslationsContext = /*#__PURE__*/React.createContext(defaultTranslations);
7
- function TranslationsProvider(_ref) {
8
- var _ref$translations = _ref.translations,
9
- translations = _ref$translations === void 0 ? {} : _ref$translations,
10
- children = _ref.children;
11
- var currentTranslations = React.useContext(TranslationsContext);
12
- var mergedTranslations = React.useMemo(function () {
13
- return deepmerge(currentTranslations, translations);
14
- }, [currentTranslations, translations]);
15
- return /*#__PURE__*/_jsx(TranslationsContext.Provider, {
16
- value: mergedTranslations,
17
- children: children
18
- });
19
- }
20
- function getPath(obj, path) {
21
- if (!path || typeof path !== 'string') {
22
- return null;
23
- }
24
- return path.split('.').reduce(function (acc, item) {
25
- return acc && acc[item] ? acc[item] : null;
26
- }, obj);
27
- }
28
- var UserLanguageContext = /*#__PURE__*/React.createContext({
29
- userLanguage: '',
30
- setUserLanguage: function setUserLanguage() {}
31
- });
32
- if (process.env.NODE_ENV !== 'production') {
33
- UserLanguageContext.displayName = 'UserLanguage';
34
- }
35
- export function UserLanguageProvider(props) {
36
- var children = props.children,
37
- translations = props.translations,
38
- defaultUserLanguage = props.defaultUserLanguage;
39
- var _React$useState = React.useState(defaultUserLanguage),
40
- userLanguage = _React$useState[0],
41
- setUserLanguage = _React$useState[1];
42
- var contextValue = React.useMemo(function () {
43
- return {
44
- userLanguage: userLanguage,
45
- setUserLanguage: setUserLanguage
46
- };
47
- }, [userLanguage]);
48
- return /*#__PURE__*/_jsx(TranslationsProvider, {
49
- translations: translations,
50
- children: /*#__PURE__*/_jsx(UserLanguageContext.Provider, {
51
- value: contextValue,
52
- children: children
53
- })
54
- });
55
- }
56
- process.env.NODE_ENV !== "production" ? UserLanguageProvider.propTypes = {
57
- children: PropTypes.node.isRequired,
58
- defaultUserLanguage: PropTypes.string
59
- } : void 0;
60
- export function useUserLanguage() {
61
- return React.useContext(UserLanguageContext).userLanguage;
62
- }
63
- export function useSetUserLanguage() {
64
- return React.useContext(UserLanguageContext).setUserLanguage;
65
- }
66
- var warnedOnce = {};
67
- export function useTranslate() {
68
- var userLanguage = useUserLanguage();
69
- var translations = React.useContext(TranslationsContext);
70
- return React.useMemo(function () {
71
- return function translate(key) {
72
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
73
- var _options$ignoreWarnin = options.ignoreWarning,
74
- ignoreWarning = _options$ignoreWarnin === void 0 ? false : _options$ignoreWarnin;
75
- var wordings = translations[userLanguage];
76
- if (!wordings) {
77
- console.error("Missing language: ".concat(userLanguage, "."));
78
- return '…';
79
- }
80
- var translation = getPath(wordings, key);
81
- if (!translation) {
82
- var fullKey = "".concat(userLanguage, ":").concat(key);
83
- // No warnings in CI env
84
- if (!ignoreWarning && !warnedOnce[fullKey] && typeof window !== 'undefined') {
85
- console.error("Missing translation for ".concat(fullKey));
86
- warnedOnce[fullKey] = true;
87
- }
88
- return getPath(translations.en, key);
89
- }
90
- return translation;
91
- };
92
- }, [userLanguage, translations]);
93
- }
94
- export function mapTranslations(req) {
95
- var result = {};
96
- req.keys().forEach(function (filename) {
97
- var match = filename.match(/-([a-z]{2}).json$/);
98
- if (match) {
99
- result[match[1]] = req(filename);
100
- } else {
101
- result.en = req(filename);
102
- }
103
- });
104
- return result;
105
- }
@@ -1 +0,0 @@
1
- export * from './i18n';
@@ -1,14 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- var _path;
3
- import * as React from 'react';
4
- import SvgIcon from '@mui/material/SvgIcon';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- function FileDownload(props) {
7
- return /*#__PURE__*/_jsx(SvgIcon, _extends({}, props, {
8
- children: _path || (_path = /*#__PURE__*/_jsx("path", {
9
- d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
10
- }))
11
- }));
12
- }
13
- FileDownload.muiName = 'SvgIcon';
14
- export default FileDownload;
@@ -1,14 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- var _path;
3
- import * as React from 'react';
4
- import SvgIcon from '@mui/material/SvgIcon';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- function JavaScript(props) {
7
- return /*#__PURE__*/_jsx(SvgIcon, _extends({}, props, {
8
- children: _path || (_path = /*#__PURE__*/_jsx("path", {
9
- d: "M3,3H21V21H3V3M7.73,18.04C8.13,18.89 8.92,19.59 10.27,19.59C11.77,19.59 12.8,18.79 12.8,17.04V11.26H11.1V17C11.1,17.86 10.75,18.08 10.2,18.08C9.62,18.08 9.38,17.68 9.11,17.21L7.73,18.04M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86Z"
10
- }))
11
- }));
12
- }
13
- JavaScript.muiName = 'SvgIcon';
14
- export default JavaScript;
@@ -1,14 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- var _path;
3
- import * as React from 'react';
4
- import SvgIcon from '@mui/material/SvgIcon';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- function TypeScript(props) {
7
- return /*#__PURE__*/_jsx(SvgIcon, _extends({}, props, {
8
- children: _path || (_path = /*#__PURE__*/_jsx("path", {
9
- d: "M3,3H21V21H3V3M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86M13,11.25H8V12.75H9.5V20H11.25V12.75H13V11.25Z"
10
- }))
11
- }));
12
- }
13
- TypeScript.muiName = 'SvgIcon';
14
- export default TypeScript;
@@ -1,4 +0,0 @@
1
- import en from './translations.json';
2
- export default {
3
- en: en
4
- };