@ndla/ui 9.0.2 → 10.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 (55) hide show
  1. package/es/MyNdla/ResourceDash/Breadcrumbs.js +22 -0
  2. package/es/MyNdla/ResourceDash/ResourceElement.js +27 -0
  3. package/es/MyNdla/ResourceDash/ResourcesView.js +43 -0
  4. package/es/MyNdla/ResourceDash/index.js +4 -0
  5. package/es/MyNdla/index.js +4 -0
  6. package/es/Notion/ConceptNotion.js +5 -19
  7. package/es/Notion/FigureNotion.js +9 -8
  8. package/es/Notion/Notion.js +7 -5
  9. package/es/index.js +2 -1
  10. package/es/locale/messages-en.js +11 -0
  11. package/es/locale/messages-nb.js +11 -0
  12. package/es/locale/messages-nn.js +11 -0
  13. package/es/locale/messages-se.js +11 -0
  14. package/es/locale/messages-sma.js +11 -0
  15. package/lib/MyNdla/ResourceDash/Breadcrumbs.d.ts +15 -0
  16. package/lib/MyNdla/ResourceDash/Breadcrumbs.js +35 -0
  17. package/lib/MyNdla/ResourceDash/ResourceElement.d.ts +18 -0
  18. package/lib/MyNdla/ResourceDash/ResourceElement.js +38 -0
  19. package/lib/MyNdla/ResourceDash/ResourcesView.d.ts +9 -0
  20. package/lib/MyNdla/ResourceDash/ResourcesView.js +57 -0
  21. package/lib/MyNdla/ResourceDash/index.d.ts +4 -0
  22. package/lib/MyNdla/ResourceDash/index.js +31 -0
  23. package/lib/MyNdla/index.d.ts +4 -0
  24. package/lib/MyNdla/index.js +25 -0
  25. package/lib/Notion/ConceptNotion.d.ts +1 -4
  26. package/lib/Notion/ConceptNotion.js +5 -18
  27. package/lib/Notion/FigureNotion.js +15 -12
  28. package/lib/Notion/Notion.js +7 -5
  29. package/lib/index.d.ts +1 -0
  30. package/lib/index.js +24 -1
  31. package/lib/locale/messages-en.d.ts +11 -0
  32. package/lib/locale/messages-en.js +11 -0
  33. package/lib/locale/messages-nb.d.ts +11 -0
  34. package/lib/locale/messages-nb.js +11 -0
  35. package/lib/locale/messages-nn.d.ts +11 -0
  36. package/lib/locale/messages-nn.js +11 -0
  37. package/lib/locale/messages-se.d.ts +11 -0
  38. package/lib/locale/messages-se.js +11 -0
  39. package/lib/locale/messages-sma.d.ts +11 -0
  40. package/lib/locale/messages-sma.js +11 -0
  41. package/package.json +5 -5
  42. package/src/MyNdla/ResourceDash/Breadcrumbs.tsx +31 -0
  43. package/src/MyNdla/ResourceDash/ResourceElement.tsx +50 -0
  44. package/src/MyNdla/ResourceDash/ResourcesView.tsx +42 -0
  45. package/src/MyNdla/ResourceDash/index.ts +5 -0
  46. package/src/MyNdla/index.ts +5 -0
  47. package/src/Notion/ConceptNotion.tsx +82 -115
  48. package/src/Notion/FigureNotion.tsx +10 -1
  49. package/src/Notion/Notion.tsx +10 -0
  50. package/src/index.ts +2 -0
  51. package/src/locale/messages-en.ts +11 -0
  52. package/src/locale/messages-nb.ts +11 -0
  53. package/src/locale/messages-nn.ts +11 -0
  54. package/src/locale/messages-se.ts +11 -0
  55. package/src/locale/messages-sma.ts +11 -0
@@ -876,6 +876,17 @@ var messages = _objectSpread(_objectSpread({
876
876
  factbox: {
877
877
  open: 'Åpne faktaboks',
878
878
  close: 'Lukk faktaboks'
879
+ },
880
+ myNdla: {
881
+ resources: 'Ressursar',
882
+ folders: 'Mapper',
883
+ folder: 'Mappe',
884
+ myFolders: 'Mine mapper',
885
+ myTags: 'Mine tags',
886
+ newFolder: 'Ny mappe',
887
+ myAccount: 'Min konto',
888
+ favourites: 'Favorittar',
889
+ help: 'Hjelp'
879
890
  }
880
891
  });
881
892
 
@@ -43,6 +43,17 @@ declare const messages: {
43
43
  open: string;
44
44
  close: string;
45
45
  };
46
+ myNdla: {
47
+ resources: string;
48
+ folders: string;
49
+ folder: string;
50
+ myFolders: string;
51
+ myTags: string;
52
+ newFolder: string;
53
+ myAccount: string;
54
+ favourites: string;
55
+ help: string;
56
+ };
46
57
  htmlTitles: {
47
58
  titleTemplate: string;
48
59
  welcomePage: string;
@@ -876,6 +876,17 @@ var messages = _objectSpread(_objectSpread({
876
876
  factbox: {
877
877
  open: 'Åpne faktaboks',
878
878
  close: 'Lukk faktaboks'
879
+ },
880
+ myNdla: {
881
+ resources: 'Ressurser',
882
+ folders: 'Mapper',
883
+ folder: 'Mappe',
884
+ myFolders: 'Mine mapper',
885
+ myTags: 'Mine tags',
886
+ newFolder: 'Ny mappe',
887
+ myAccount: 'Min konto',
888
+ favourites: 'Favoritter',
889
+ help: 'Hjelp'
879
890
  }
880
891
  });
881
892
 
@@ -43,6 +43,17 @@ declare const messages: {
43
43
  open: string;
44
44
  close: string;
45
45
  };
46
+ myNdla: {
47
+ resources: string;
48
+ folders: string;
49
+ folder: string;
50
+ myFolders: string;
51
+ myTags: string;
52
+ newFolder: string;
53
+ myAccount: string;
54
+ favourites: string;
55
+ help: string;
56
+ };
46
57
  htmlTitles: {
47
58
  titleTemplate: string;
48
59
  welcomePage: string;
@@ -876,6 +876,17 @@ var messages = _objectSpread(_objectSpread({
876
876
  factbox: {
877
877
  open: 'Åpne faktaboks',
878
878
  close: 'Lukk faktaboks'
879
+ },
880
+ myNdla: {
881
+ resources: 'Ressurser',
882
+ folders: 'Mapper',
883
+ folder: 'Mappe',
884
+ myFolders: 'Mine mapper',
885
+ myTags: 'Mine tags',
886
+ newFolder: 'Ny mappe',
887
+ myAccount: 'Min konto',
888
+ favourites: 'Favoritter',
889
+ help: 'Hjelp'
879
890
  }
880
891
  });
881
892
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "9.0.2",
3
+ "version": "10.0.0",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -34,16 +34,16 @@
34
34
  "@ndla/button": "^2.2.0",
35
35
  "@ndla/carousel": "^1.2.6",
36
36
  "@ndla/core": "^2.1.1",
37
- "@ndla/hooks": "^1.1.3",
37
+ "@ndla/hooks": "^1.1.4",
38
38
  "@ndla/icons": "^1.7.0",
39
39
  "@ndla/licenses": "^4.1.0",
40
40
  "@ndla/modal": "^1.2.6",
41
41
  "@ndla/notion": "^3.0.1",
42
42
  "@ndla/safelink": "^1.1.7",
43
43
  "@ndla/switch": "^0.1.5",
44
- "@ndla/tabs": "^1.1.4",
44
+ "@ndla/tabs": "^1.1.5",
45
45
  "@ndla/tooltip": "^0.3.5",
46
- "@ndla/util": "^2.0.5",
46
+ "@ndla/util": "^3.0.0",
47
47
  "@reach/menu-button": "^0.16.2",
48
48
  "@reach/slider": "^0.16.0",
49
49
  "focus-trap-react": "^8.9.2",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "3ef8cdf3533b3b6efd62f40295d84af55d654fa1"
84
+ "gitHead": "7280064bc32ec3c1658f903c37493d526a147a89"
85
85
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2022-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import styled from '@emotion/styled';
10
+ import React from 'react';
11
+
12
+ const BreadcrumbsWrapper = styled.div``;
13
+
14
+ type BreadcrumbsProps = {
15
+ items: {
16
+ title: string;
17
+ url: string;
18
+ }[];
19
+ };
20
+
21
+ export const Breadcrumbs = ({ items }: BreadcrumbsProps) => {
22
+ <BreadcrumbsWrapper>
23
+ {items.map(({ title, url }) => (
24
+ <a key={url} href={url}>
25
+ {title}
26
+ </a>
27
+ ))}
28
+ </BreadcrumbsWrapper>;
29
+ };
30
+
31
+ export default Breadcrumbs;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Copyright (c) 2022-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import styled from '@emotion/styled';
10
+ import React, { ReactElement } from 'react';
11
+ // import { useTranslation } from 'react-i18next';
12
+
13
+ type ResourceElementWrapperProp = {
14
+ type: 'folder' | 'resource';
15
+ };
16
+
17
+ const ResourceElementWrapper = styled.div<ResourceElementWrapperProp>`
18
+ display: flex;
19
+ align-items: center;
20
+ padding: 0.5rem;
21
+ border: 1px solid rgba(209, 214, 219, 1);
22
+ border-radius: 2px;
23
+ background: ${({ type }) => (type === 'folder' ? '#fafaf9' : '#fff')};
24
+ `;
25
+
26
+ type ResourceElementProps = {
27
+ type: 'folder' | 'resource';
28
+ title: string;
29
+ rightSide?: ReactElement;
30
+ leftSide?: ReactElement;
31
+ description?: string;
32
+ children?: ReactElement;
33
+ };
34
+
35
+ const ResourceElement = ({ type, title, description, leftSide, rightSide, children }: ResourceElementProps) => {
36
+ // const { t } = useTranslation();
37
+ return (
38
+ <ResourceElementWrapper type={type}>
39
+ <div>{leftSide}</div>
40
+ <div>
41
+ <h1>{title}</h1>
42
+ <p>{description}</p>
43
+ {children}
44
+ </div>
45
+ <div>{rightSide}</div>
46
+ </ResourceElementWrapper>
47
+ );
48
+ };
49
+
50
+ export default ResourceElement;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Copyright (c) 2022-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import styled from '@emotion/styled';
10
+ import React from 'react';
11
+ import ResourceElement from './ResourceElement';
12
+
13
+ const ResourcesWrapper = styled.div`
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 1rem; 0;
17
+ `;
18
+
19
+ export const ResourcesView = () => {
20
+ return (
21
+ <ResourcesWrapper>
22
+ <ResourceElement
23
+ type="folder"
24
+ title="Example folder"
25
+ leftSide={<img src="http://placekitten.com/200/200" alt="Mjaoo" />}
26
+ rightSide={<span>#tag</span>}
27
+ description="some description">
28
+ <p>Im a child.. insert content</p>
29
+ </ResourceElement>
30
+ <ResourceElement
31
+ type="resource"
32
+ title="Example Resource"
33
+ leftSide={<img src="http://placekitten.com/200/200" alt="Brrr" />}
34
+ rightSide={<span>#tag</span>}
35
+ description="some description">
36
+ <p>Im a child.. insert content</p>
37
+ </ResourceElement>
38
+ </ResourcesWrapper>
39
+ );
40
+ };
41
+
42
+ export default ResourcesView;
@@ -0,0 +1,5 @@
1
+ import Breadcrumbs from './Breadcrumbs';
2
+ import ResourceElement from './ResourceElement';
3
+ import ResourcesView from './ResourcesView';
4
+
5
+ export { ResourcesView, ResourceElement, Breadcrumbs };
@@ -0,0 +1,5 @@
1
+ import { ResourceElement } from './ResourceDash';
2
+ import { ResourcesView } from './ResourceDash';
3
+ import { Breadcrumbs } from './ResourceDash';
4
+
5
+ export { ResourceElement, ResourcesView, Breadcrumbs };
@@ -18,20 +18,6 @@ import NotionVisualElement, { NotionVisualElementType } from './NotionVisualElem
18
18
  import FigureNotion from './FigureNotion';
19
19
  import { Copyright } from '../types';
20
20
 
21
- const ContentWrapper = styled.div<{ adjustSizeToFitWiderPage?: boolean }>`
22
- position: relative;
23
- right: auto;
24
- left: ${(props) => (props.adjustSizeToFitWiderPage ? '0%' : '-16.6666666667%')};
25
- width: ${(props) => (props.adjustSizeToFitWiderPage ? '100%' : '133.3333333333%')};
26
- padding-left: 24px;
27
- padding-right: 24px;
28
-
29
- ${mq.range({ until: breakpoints.tabletWide })} {
30
- width: 100%;
31
- left: 0;
32
- }
33
- `;
34
-
35
21
  const ImageWrapper = styled.div`
36
22
  float: right;
37
23
  padding-left: ${spacing.normal};
@@ -48,9 +34,7 @@ export interface ConceptNotionType {
48
34
  copyright?: Partial<Copyright>;
49
35
  title: string;
50
36
  text: string;
51
- subjectNames?: string[];
52
37
  visualElement?: NotionVisualElementType;
53
- authors: string[];
54
38
  source?: string;
55
39
  image?: {
56
40
  src: string;
@@ -62,10 +46,9 @@ interface Props {
62
46
  concept: ConceptNotionType;
63
47
  disableScripts?: boolean;
64
48
  hideIconsAndAuthors?: boolean;
65
- adjustSizeToFitWiderPage?: boolean;
66
49
  }
67
50
 
68
- const ConceptNotion = ({ concept, disableScripts, type, hideIconsAndAuthors, adjustSizeToFitWiderPage }: Props) => {
51
+ const ConceptNotion = ({ concept, disableScripts, type, hideIconsAndAuthors }: Props) => {
69
52
  const notionId = `notion-${concept.id}`;
70
53
  const figureId = `notion-figure-${concept.id}`;
71
54
  const visualElementId = `visual-element-${concept.id}`;
@@ -78,104 +61,88 @@ const ConceptNotion = ({ concept, disableScripts, type, hideIconsAndAuthors, adj
78
61
  }, [disableScripts]);
79
62
 
80
63
  return (
81
- <ContentWrapper adjustSizeToFitWiderPage={adjustSizeToFitWiderPage}>
82
- <FigureNotion
83
- resizeIframe
84
- id={figureId}
85
- figureId={visualElementId}
86
- copyright={concept.copyright}
87
- licenseString={concept.copyright?.license?.license ?? ''}
88
- type="concept"
89
- hideIconsAndAuthors={hideIconsAndAuthors}>
90
- <UINotion
91
- id={notionId}
92
- title={concept.title}
93
- text={concept.text}
94
- imageElement={
95
- concept.visualElement?.resource === 'image' && concept.visualElement.image ? (
96
- <ImageWrapper>
97
- <Notion
98
- id={notionId}
99
- ariaLabel={t('factbox.open')}
100
- title={concept.title}
101
- subTitle={t('searchPage.resultType.notionsHeading')}
102
- hideBaselineIcon
103
- content={
104
- <>
105
- <NotionDialogContent>
106
- {concept.visualElement?.resource === 'image' && concept.visualElement.image ? (
107
- <NotionVisualElement
108
- visualElement={concept.visualElement}
109
- id={notionId}
110
- figureId={figureId}
111
- />
112
- ) : undefined}
113
- <NotionDialogText>{concept.text}</NotionDialogText>
114
- </NotionDialogContent>
115
- <NotionDialogLicenses
116
- license={concept.copyright?.license?.license ?? ''}
117
- source={concept.source}
118
- />
119
- </>
120
- }>
121
- {concept.visualElement.image && (
122
- <NotionImage
123
- type={type}
124
- id={visualElementId}
125
- src={concept.visualElement.image.src}
126
- alt={concept.visualElement.image.alt ?? ''}
127
- imageCopyright={concept.visualElement.copyright}
128
- />
129
- )}
130
- </Notion>
131
- </ImageWrapper>
132
- ) : undefined
133
- }
134
- visualElement={
135
- concept.visualElement && concept.visualElement.resource !== 'image' && concept.visualElement.url ? (
136
- <ImageWrapper>
137
- <Notion
138
- id={notionId}
139
- ariaLabel={t('factbox.open')}
140
- title={concept.title}
141
- hideBaselineIcon
142
- subTitle={t('searchPage.resultType.notionsHeading')}
143
- content={
144
- <>
145
- <NotionDialogContent>
146
- {concept.visualElement &&
147
- concept.visualElement?.resource !== 'image' &&
148
- concept.visualElement.url ? (
149
- <NotionVisualElement
150
- visualElement={concept.visualElement}
151
- id={notionId}
152
- figureId={figureId}
153
- />
154
- ) : undefined}
64
+ <FigureNotion
65
+ resizeIframe
66
+ id={figureId}
67
+ figureId={visualElementId}
68
+ copyright={concept.copyright}
69
+ licenseString={concept.copyright?.license?.license ?? ''}
70
+ type="concept"
71
+ hideIconsAndAuthors={hideIconsAndAuthors}>
72
+ <UINotion
73
+ id={notionId}
74
+ title={concept.title}
75
+ text={concept.text}
76
+ imageElement={
77
+ concept.visualElement?.resource === 'image' && concept.visualElement.image ? (
78
+ <ImageWrapper>
79
+ <Notion
80
+ id={notionId}
81
+ ariaLabel={t('factbox.open')}
82
+ title={concept.title}
83
+ subTitle={t('searchPage.resultType.notionsHeading')}
84
+ hideBaselineIcon
85
+ content={
86
+ <>
87
+ <NotionDialogContent>
88
+ {concept.visualElement?.resource === 'image' && concept.visualElement.image ? (
89
+ <NotionVisualElement visualElement={concept.visualElement} id={notionId} figureId={figureId} />
90
+ ) : undefined}
91
+ <NotionDialogText>{concept.text}</NotionDialogText>
92
+ </NotionDialogContent>
93
+ <NotionDialogLicenses license={concept.copyright?.license?.license ?? ''} source={concept.source} />
94
+ </>
95
+ }>
96
+ {concept.visualElement.image && (
97
+ <NotionImage
98
+ type={type}
99
+ id={visualElementId}
100
+ src={concept.visualElement.image.src}
101
+ alt={concept.visualElement.image.alt ?? ''}
102
+ imageCopyright={concept.visualElement.copyright}
103
+ />
104
+ )}
105
+ </Notion>
106
+ </ImageWrapper>
107
+ ) : undefined
108
+ }
109
+ visualElement={
110
+ concept.visualElement && concept.visualElement.resource !== 'image' && concept.visualElement.url ? (
111
+ <ImageWrapper>
112
+ <Notion
113
+ id={notionId}
114
+ ariaLabel={t('factbox.open')}
115
+ title={concept.title}
116
+ hideBaselineIcon
117
+ subTitle={t('searchPage.resultType.notionsHeading')}
118
+ content={
119
+ <>
120
+ <NotionDialogContent>
121
+ {concept.visualElement &&
122
+ concept.visualElement?.resource !== 'image' &&
123
+ concept.visualElement.url ? (
124
+ <NotionVisualElement visualElement={concept.visualElement} id={notionId} figureId={figureId} />
125
+ ) : undefined}
155
126
 
156
- <NotionDialogText>{concept.text}</NotionDialogText>
157
- </NotionDialogContent>
158
- <NotionDialogLicenses
159
- license={concept.copyright?.license?.license ?? ''}
160
- source={concept.source}
161
- />
162
- </>
163
- }>
164
- {concept.image && (
165
- <NotionImage
166
- type={type}
167
- id={visualElementId}
168
- src={concept.image?.src}
169
- alt={concept.image?.alt ?? ''}
170
- imageCopyright={concept.visualElement.copyright}
171
- />
172
- )}
173
- </Notion>
174
- </ImageWrapper>
175
- ) : undefined
176
- }></UINotion>
177
- </FigureNotion>
178
- </ContentWrapper>
127
+ <NotionDialogText>{concept.text}</NotionDialogText>
128
+ </NotionDialogContent>
129
+ <NotionDialogLicenses license={concept.copyright?.license?.license ?? ''} source={concept.source} />
130
+ </>
131
+ }>
132
+ {concept.image && (
133
+ <NotionImage
134
+ type={type}
135
+ id={visualElementId}
136
+ src={concept.image?.src}
137
+ alt={concept.image?.alt ?? ''}
138
+ imageCopyright={concept.visualElement.copyright}
139
+ />
140
+ )}
141
+ </Notion>
142
+ </ImageWrapper>
143
+ ) : undefined
144
+ }></UINotion>
145
+ </FigureNotion>
179
146
  );
180
147
  };
181
148
 
@@ -5,12 +5,19 @@
5
5
  * LICENSE file in the root directory of this source tree. *
6
6
  */
7
7
 
8
+ import styled from '@emotion/styled';
9
+ import { colors, spacing } from '@ndla/core';
8
10
  import { getGroupedContributorDescriptionList, getLicenseByAbbreviation } from '@ndla/licenses';
9
11
  import React, { ReactNode } from 'react';
10
12
  import { useTranslation } from 'react-i18next';
11
13
  import { Figure, FigureCaption, FigureLicenseDialog } from '../Figure';
12
14
  import { Copyright } from '../types';
13
15
 
16
+ const BottomBorder = styled.div`
17
+ margin-top: ${spacing.normal};
18
+ border-bottom: 1px solid ${colors.brand.greyLight};
19
+ `;
20
+
14
21
  interface Props {
15
22
  resizeIframe?: boolean;
16
23
  figureId: string;
@@ -53,7 +60,7 @@ const FigureNotion = ({
53
60
  {({ typeClass }) => (
54
61
  <>
55
62
  {typeof children === 'function' ? children({ typeClass }) : children}
56
- {copyright?.license?.license && (
63
+ {copyright?.license?.license ? (
57
64
  <FigureCaption
58
65
  hideFigcaption={hideFigCaption}
59
66
  figureId={figureId}
@@ -77,6 +84,8 @@ const FigureNotion = ({
77
84
  title: t('title'),
78
85
  }}></FigureLicenseDialog>
79
86
  </FigureCaption>
87
+ ) : (
88
+ <BottomBorder />
80
89
  )}
81
90
  </>
82
91
  )}
@@ -43,6 +43,16 @@ const TextWrapper = styled.div<{ hasVisualElement: boolean }>`
43
43
  ${ContentWrapper} .c-figure.expanded + & {
44
44
  width: 100%;
45
45
  }
46
+ ${mq.range({ from: breakpoints.desktop })} {
47
+ ul,
48
+ ol {
49
+ margin: 12px 0;
50
+ padding: 0 1rem 0 2rem;
51
+ }
52
+ ol > li {
53
+ margin-left: 24px;
54
+ }
55
+ }
46
56
  `;
47
57
 
48
58
  const ClearWrapper = styled.div`
package/src/index.ts CHANGED
@@ -220,3 +220,5 @@ export { default as ContentPlaceholder } from './ContentPlaceholder';
220
220
  export { Notion, ConceptNotion } from './Notion';
221
221
 
222
222
  export { BannerCard } from './BannerCard';
223
+
224
+ export { ResourcesView, ResourceElement, Breadcrumbs } from './MyNdla';
@@ -915,6 +915,17 @@ const messages = {
915
915
  open: 'Open fact box',
916
916
  close: 'Close fact box',
917
917
  },
918
+ myNdla: {
919
+ resources: 'resources',
920
+ folders: 'folders',
921
+ folder: 'folder',
922
+ myFolders: 'My folders',
923
+ myTags: 'My tags',
924
+ newFolder: 'New folder',
925
+ myAccount: 'My account',
926
+ favourites: 'Favourites',
927
+ help: 'Help',
928
+ },
918
929
  };
919
930
 
920
931
  export default messages;
@@ -913,6 +913,17 @@ const messages = {
913
913
  open: 'Åpne faktaboks',
914
914
  close: 'Lukk faktaboks',
915
915
  },
916
+ myNdla: {
917
+ resources: 'Ressurser',
918
+ folders: 'Mapper',
919
+ folder: 'Mappe',
920
+ myFolders: 'Mine mapper',
921
+ myTags: 'Mine tags',
922
+ newFolder: 'Ny mappe',
923
+ myAccount: 'Min konto',
924
+ favourites: 'Favoritter',
925
+ help: 'Hjelp',
926
+ },
916
927
  };
917
928
 
918
929
  export default messages;
@@ -914,6 +914,17 @@ const messages = {
914
914
  open: 'Åpne faktaboks',
915
915
  close: 'Lukk faktaboks',
916
916
  },
917
+ myNdla: {
918
+ resources: 'Ressursar',
919
+ folders: 'Mapper',
920
+ folder: 'Mappe',
921
+ myFolders: 'Mine mapper',
922
+ myTags: 'Mine tags',
923
+ newFolder: 'Ny mappe',
924
+ myAccount: 'Min konto',
925
+ favourites: 'Favorittar',
926
+ help: 'Hjelp',
927
+ },
917
928
  };
918
929
 
919
930
  export default messages;
@@ -913,6 +913,17 @@ const messages = {
913
913
  open: 'Åpne faktaboks',
914
914
  close: 'Lukk faktaboks',
915
915
  },
916
+ myNdla: {
917
+ resources: 'Ressurser',
918
+ folders: 'Mapper',
919
+ folder: 'Mappe',
920
+ myFolders: 'Mine mapper',
921
+ myTags: 'Mine tags',
922
+ newFolder: 'Ny mappe',
923
+ myAccount: 'Min konto',
924
+ favourites: 'Favoritter',
925
+ help: 'Hjelp',
926
+ },
916
927
  };
917
928
 
918
929
  export default messages;
@@ -913,6 +913,17 @@ const messages = {
913
913
  open: 'Åpne faktaboks',
914
914
  close: 'Lukk faktaboks',
915
915
  },
916
+ myNdla: {
917
+ resources: 'Ressurser',
918
+ folders: 'Mapper',
919
+ folder: 'Mappe',
920
+ myFolders: 'Mine mapper',
921
+ myTags: 'Mine tags',
922
+ newFolder: 'Ny mappe',
923
+ myAccount: 'Min konto',
924
+ favourites: 'Favoritter',
925
+ help: 'Hjelp',
926
+ },
916
927
  };
917
928
 
918
929
  export default messages;