@ndla/ui 56.0.18-alpha.0 → 56.0.20-alpha.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 (115) hide show
  1. package/dist/panda.buildinfo.json +10 -8
  2. package/dist/styles.css +35 -29
  3. package/es/Article/Article.js +3 -3
  4. package/es/Article/ArticleByline.js +5 -4
  5. package/es/Article/index.js +1 -2
  6. package/es/AudioPlayer/AudioPlayer.js +1 -1
  7. package/es/CampaignBlock/CampaignBlock.js +25 -13
  8. package/es/Concept/Concept.js +7 -1
  9. package/es/ContactBlock/ContactBlock.js +0 -1
  10. package/es/ContentTypeBadge/ContentTypeBadgeNew.js +0 -3
  11. package/es/ContentTypeHero/ContentTypeHero.js +2 -8
  12. package/es/Embed/AudioEmbed.js +3 -0
  13. package/es/Embed/BrightcoveEmbed.js +5 -1
  14. package/es/Embed/ConceptEmbed.js +23 -11
  15. package/es/Embed/ConceptListEmbed.js +2 -1
  16. package/es/Embed/ImageEmbed.js +3 -0
  17. package/es/Embed/index.js +1 -0
  18. package/es/FileList/FileList.js +5 -1
  19. package/es/FileList/PdfFile.js +6 -1
  20. package/es/FileList/index.js +1 -1
  21. package/es/Grid/Grid.js +0 -1
  22. package/es/LicenseByline/EmbedByline.js +4 -1
  23. package/es/TreeStructure/TreeStructure.js +0 -2
  24. package/es/i18n/index.js +1 -1
  25. package/es/i18n/useComponentTranslations.js +62 -0
  26. package/es/index.js +7 -5
  27. package/es/locale/messages-en.js +31 -5
  28. package/es/locale/messages-nb.js +31 -5
  29. package/es/locale/messages-nn.js +79 -53
  30. package/es/locale/messages-se.js +31 -5
  31. package/es/locale/messages-sma.js +31 -5
  32. package/es/styles.css +35 -29
  33. package/es/utils/licenseAttributes.js +18 -0
  34. package/lib/Article/Article.js +3 -3
  35. package/lib/Article/ArticleByline.js +5 -4
  36. package/lib/Article/index.d.ts +0 -1
  37. package/lib/Article/index.js +1 -8
  38. package/lib/AudioPlayer/AudioPlayer.js +1 -1
  39. package/lib/CampaignBlock/CampaignBlock.js +25 -13
  40. package/lib/Concept/Concept.d.ts +2 -0
  41. package/lib/Concept/Concept.js +7 -1
  42. package/lib/ContactBlock/ContactBlock.js +0 -1
  43. package/lib/ContentTypeBadge/ContentTypeBadgeNew.js +0 -3
  44. package/lib/ContentTypeHero/ContentTypeHero.js +2 -7
  45. package/lib/Embed/AudioEmbed.js +3 -0
  46. package/lib/Embed/BrightcoveEmbed.d.ts +2 -1
  47. package/lib/Embed/BrightcoveEmbed.js +5 -1
  48. package/lib/Embed/ConceptEmbed.d.ts +3 -1
  49. package/lib/Embed/ConceptEmbed.js +23 -11
  50. package/lib/Embed/ConceptListEmbed.js +2 -1
  51. package/lib/Embed/ImageEmbed.js +3 -0
  52. package/lib/Embed/index.d.ts +1 -0
  53. package/lib/Embed/index.js +7 -0
  54. package/lib/FileList/FileList.d.ts +3 -1
  55. package/lib/FileList/FileList.js +5 -1
  56. package/lib/FileList/PdfFile.js +6 -1
  57. package/lib/FileList/index.d.ts +1 -1
  58. package/lib/FileList/index.js +6 -0
  59. package/lib/Grid/Grid.js +0 -1
  60. package/lib/LicenseByline/EmbedByline.js +4 -1
  61. package/lib/TreeStructure/TreeStructure.js +0 -2
  62. package/lib/i18n/index.d.ts +1 -1
  63. package/lib/i18n/index.js +12 -0
  64. package/lib/i18n/useComponentTranslations.d.ts +31 -0
  65. package/lib/i18n/useComponentTranslations.js +65 -2
  66. package/lib/index.d.ts +6 -4
  67. package/lib/index.js +38 -6
  68. package/lib/locale/messages-en.d.ts +26 -0
  69. package/lib/locale/messages-en.js +31 -5
  70. package/lib/locale/messages-nb.d.ts +26 -0
  71. package/lib/locale/messages-nb.js +31 -5
  72. package/lib/locale/messages-nn.d.ts +26 -0
  73. package/lib/locale/messages-nn.js +79 -53
  74. package/lib/locale/messages-se.d.ts +26 -0
  75. package/lib/locale/messages-se.js +31 -5
  76. package/lib/locale/messages-sma.d.ts +26 -0
  77. package/lib/locale/messages-sma.js +31 -5
  78. package/lib/styles.css +35 -29
  79. package/lib/utils/licenseAttributes.d.ts +16 -0
  80. package/lib/utils/licenseAttributes.js +25 -0
  81. package/package.json +8 -8
  82. package/src/Article/Article.tsx +7 -6
  83. package/src/Article/ArticleByline.tsx +2 -3
  84. package/src/Article/index.ts +0 -2
  85. package/src/AudioPlayer/AudioPlayer.tsx +5 -3
  86. package/src/CampaignBlock/CampaignBlock.tsx +23 -12
  87. package/src/Concept/Concept.tsx +8 -3
  88. package/src/ContactBlock/ContactBlock.tsx +0 -1
  89. package/src/ContentTypeBadge/ContentTypeBadgeNew.tsx +0 -3
  90. package/src/ContentTypeHero/ContentTypeHero.tsx +2 -7
  91. package/src/Embed/AudioEmbed.tsx +4 -1
  92. package/src/Embed/BrightcoveEmbed.tsx +6 -3
  93. package/src/Embed/ConceptEmbed.tsx +21 -11
  94. package/src/Embed/ConceptListEmbed.tsx +1 -0
  95. package/src/Embed/ImageEmbed.tsx +4 -0
  96. package/src/Embed/index.ts +1 -0
  97. package/src/FileList/FileList.tsx +16 -10
  98. package/src/FileList/PdfFile.tsx +8 -2
  99. package/src/FileList/index.ts +1 -1
  100. package/src/Grid/Grid.tsx +0 -1
  101. package/src/LicenseByline/EmbedByline.tsx +2 -1
  102. package/src/TreeStructure/TreeStructure.tsx +0 -1
  103. package/src/i18n/index.ts +2 -0
  104. package/src/i18n/useComponentTranslations.ts +79 -0
  105. package/src/index.ts +8 -2
  106. package/src/locale/messages-en.ts +30 -3
  107. package/src/locale/messages-nb.ts +30 -3
  108. package/src/locale/messages-nn.ts +78 -51
  109. package/src/locale/messages-se.ts +30 -3
  110. package/src/locale/messages-sma.ts +30 -3
  111. package/src/utils/licenseAttributes.ts +23 -0
  112. package/es/Article/ArticleParagraph.js +0 -23
  113. package/lib/Article/ArticleParagraph.d.ts +0 -13
  114. package/lib/Article/ArticleParagraph.js +0 -30
  115. package/src/Article/ArticleParagraph.tsx +0 -27
@@ -8,7 +8,38 @@
8
8
  import type { ComboboxCollectionItem } from "@ark-ui/react";
9
9
  import type { ComboboxRootProps, PaginationRootProps, TagsInputRootProps } from "@ndla/primitives";
10
10
  import { TagSelectorRootProps } from "../TagSelector/TagSelector";
11
+ type DeepPartial<T> = {
12
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
13
+ };
11
14
  export declare const useTagsInputTranslations: (translations?: Partial<TagsInputRootProps["translations"]>) => TagsInputRootProps["translations"];
12
15
  export declare const useComboboxTranslations: <T extends ComboboxCollectionItem>(translations?: Partial<ComboboxRootProps<T>["translations"]>) => ComboboxRootProps<T>["translations"];
13
16
  export declare const useTagSelectorTranslations: <T extends ComboboxCollectionItem>(translations?: Partial<TagSelectorRootProps<T>["translations"]>) => TagSelectorRootProps<T>["translations"];
14
17
  export declare const usePaginationTranslations: (translations?: Partial<PaginationRootProps["translations"]>) => PaginationRootProps["translations"];
18
+ interface AudioSearchTranslations {
19
+ searchPlaceholder: string;
20
+ searchButtonTitle: string;
21
+ useAudio: string;
22
+ noResults: string;
23
+ paginationTranslations: PaginationRootProps["translations"];
24
+ }
25
+ export interface PreviewTranslations {
26
+ creatorsLabel: string;
27
+ license: string;
28
+ caption: string;
29
+ altText: string;
30
+ modelRelease: string;
31
+ tags: string;
32
+ close: string;
33
+ checkboxLabel?: string;
34
+ missingTitleFallback?: string;
35
+ useImageTitle: string;
36
+ }
37
+ export interface ImageSearchTranslations {
38
+ searchPlaceholder: string;
39
+ searchButtonTitle: string;
40
+ imagePreview: PreviewTranslations;
41
+ paginationTranslations: PaginationRootProps["translations"];
42
+ }
43
+ export declare const useImageSearchTranslations: (translations?: DeepPartial<ImageSearchTranslations>) => ImageSearchTranslations;
44
+ export declare const useAudioSearchTranslations: (translations?: DeepPartial<AudioSearchTranslations>) => AudioSearchTranslations;
45
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useTagsInputTranslations = exports.useTagSelectorTranslations = exports.usePaginationTranslations = exports.useComboboxTranslations = void 0;
6
+ exports.useTagsInputTranslations = exports.useTagSelectorTranslations = exports.usePaginationTranslations = exports.useImageSearchTranslations = exports.useComboboxTranslations = exports.useAudioSearchTranslations = void 0;
7
7
  var _reactI18next = require("react-i18next");
8
8
  /**
9
9
  * Copyright (c) 2024-present, NDLA.
@@ -90,4 +90,67 @@ const usePaginationTranslations = translations => {
90
90
  ...translations
91
91
  };
92
92
  };
93
- exports.usePaginationTranslations = usePaginationTranslations;
93
+
94
+ // TODO: Deduplicate this and place it somewhere smart. Maybe core?
95
+ exports.usePaginationTranslations = usePaginationTranslations;
96
+ const useImageSearchTranslations = function () {
97
+ let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
98
+ const {
99
+ t
100
+ } = (0, _reactI18next.useTranslation)("translation", {
101
+ keyPrefix: "component.imageSearch"
102
+ });
103
+ const paginationTranslations = usePaginationTranslations();
104
+ const {
105
+ imagePreview,
106
+ paginationTranslations: fallbackPaginationTranslations,
107
+ ...remaining
108
+ } = translations;
109
+ return {
110
+ searchPlaceholder: t("searchPlaceholder"),
111
+ searchButtonTitle: t("searchButtonTitle"),
112
+ imagePreview: {
113
+ creatorsLabel: t("imagePreview.creatorsLabel"),
114
+ license: t("imagePreview.license"),
115
+ caption: t("imagePreview.caption"),
116
+ altText: t("imagePreview.altText"),
117
+ modelRelease: t("imagePreview.modelRelease"),
118
+ tags: t("imagePreview.tags"),
119
+ close: t("close"),
120
+ checkboxLabel: t("imagePreview.checkboxLabel"),
121
+ useImageTitle: t("imagePreview.useImageTitle"),
122
+ ...imagePreview
123
+ },
124
+ paginationTranslations: {
125
+ ...paginationTranslations,
126
+ ...fallbackPaginationTranslations
127
+ },
128
+ ...remaining
129
+ };
130
+ };
131
+ exports.useImageSearchTranslations = useImageSearchTranslations;
132
+ const useAudioSearchTranslations = function () {
133
+ let translations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
134
+ const {
135
+ t
136
+ } = (0, _reactI18next.useTranslation)("translation", {
137
+ keyPrefix: "component.audioSearch"
138
+ });
139
+ const paginationTranslations = usePaginationTranslations();
140
+ const {
141
+ paginationTranslations: fallbackPaginationTranslations,
142
+ ...remaining
143
+ } = translations;
144
+ return {
145
+ searchPlaceholder: t("searchPlaceholder"),
146
+ searchButtonTitle: t("searchButtonTitle"),
147
+ useAudio: t("useAudio"),
148
+ noResults: t("noResults"),
149
+ paginationTranslations: {
150
+ ...paginationTranslations,
151
+ ...fallbackPaginationTranslations
152
+ },
153
+ ...remaining
154
+ };
155
+ };
156
+ exports.useAudioSearchTranslations = useAudioSearchTranslations;
package/lib/index.d.ts CHANGED
@@ -5,14 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, } from "./Embed";
8
+ export { Concept } from "./Concept/Concept";
9
+ export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, InlineTriggerButton, } from "./Embed";
9
10
  export { LicenseLink, EmbedByline } from "./LicenseByline";
10
- export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleTitle, } from "./Article";
11
+ export { ArticleByline, ArticleBylineAccordionItem, ArticleFootNotes, ArticleWrapper, Article, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleTitle, } from "./Article";
11
12
  export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
12
13
  export { default as ContentLoader } from "./ContentLoader";
13
14
  export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
14
15
  export { ErrorResourceAccessDenied, default as ErrorMessage } from "./ErrorMessage";
15
- export { FileListEmbed, File, PdfFile, FileListItem, FileListElement } from "./FileList";
16
+ export { FileListEmbed, File, PdfFile, FileListItem, FileListElement, FileListWrapper } from "./FileList";
16
17
  export { default as FactBox } from "./FactBox";
17
18
  export type { ContentTypeHeroProps } from "./ContentTypeHero";
18
19
  export { ContentTypeHero } from "./ContentTypeHero";
@@ -26,7 +27,7 @@ export { default as messagesSE } from "./locale/messages-se";
26
27
  export { default as messagesSMA } from "./locale/messages-sma";
27
28
  export { default as Breadcrumb, HomeBreadcrumb } from "./Breadcrumb";
28
29
  export type { SimpleBreadcrumbItem, IndexedBreadcrumbItem } from "./Breadcrumb";
29
- export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, } from "./i18n";
30
+ export { i18nInstance, formatNestedMessages, useTagsInputTranslations, useTagSelectorTranslations, useComboboxTranslations, usePaginationTranslations, useAudioSearchTranslations, useImageSearchTranslations, } from "./i18n";
30
31
  export { default as LayoutItem, OneColumn, PageContainer } from "./Layout";
31
32
  export { default as ContentTypeBadge, SubjectMaterialBadge, TasksAndActivitiesBadge, AssessmentResourcesBadge, LearningPathBadge, SubjectBadge, SourceMaterialBadge, ConceptBadge, } from "./ContentTypeBadge";
32
33
  export type { ContentTypeBadgeProps, ContentType } from "./ContentTypeBadge/ContentTypeBadgeNew";
@@ -49,3 +50,4 @@ export type { Article as ArticleType } from "./types";
49
50
  export { CodeBlock, codeLanguageOptions } from "./CodeBlock";
50
51
  export { ZendeskButton } from "./ZendeskButton/ZendeskButton";
51
52
  export type { ZendeskButtonProps } from "./ZendeskButton/ZendeskButton";
53
+ export { licenseAttributes } from "./utils/licenseAttributes";
package/lib/index.js CHANGED
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "ArticleHeader", {
51
51
  return _Article.ArticleHeader;
52
52
  }
53
53
  });
54
- Object.defineProperty(exports, "ArticleParagraph", {
55
- enumerable: true,
56
- get: function () {
57
- return _Article.ArticleParagraph;
58
- }
59
- });
60
54
  Object.defineProperty(exports, "ArticleTitle", {
61
55
  enumerable: true,
62
56
  get: function () {
@@ -129,6 +123,12 @@ Object.defineProperty(exports, "CodeEmbed", {
129
123
  return _Embed.CodeEmbed;
130
124
  }
131
125
  });
126
+ Object.defineProperty(exports, "Concept", {
127
+ enumerable: true,
128
+ get: function () {
129
+ return _Concept.Concept;
130
+ }
131
+ });
132
132
  Object.defineProperty(exports, "ConceptBadge", {
133
133
  enumerable: true,
134
134
  get: function () {
@@ -249,6 +249,12 @@ Object.defineProperty(exports, "FileListItem", {
249
249
  return _FileList.FileListItem;
250
250
  }
251
251
  });
252
+ Object.defineProperty(exports, "FileListWrapper", {
253
+ enumerable: true,
254
+ get: function () {
255
+ return _FileList.FileListWrapper;
256
+ }
257
+ });
252
258
  Object.defineProperty(exports, "FootnoteEmbed", {
253
259
  enumerable: true,
254
260
  get: function () {
@@ -309,6 +315,12 @@ Object.defineProperty(exports, "InlineConcept", {
309
315
  return _Embed.InlineConcept;
310
316
  }
311
317
  });
318
+ Object.defineProperty(exports, "InlineTriggerButton", {
319
+ enumerable: true,
320
+ get: function () {
321
+ return _Embed.InlineTriggerButton;
322
+ }
323
+ });
312
324
  Object.defineProperty(exports, "KeyFigure", {
313
325
  enumerable: true,
314
326
  get: function () {
@@ -537,6 +549,12 @@ Object.defineProperty(exports, "i18nInstance", {
537
549
  return _i18n.i18nInstance;
538
550
  }
539
551
  });
552
+ Object.defineProperty(exports, "licenseAttributes", {
553
+ enumerable: true,
554
+ get: function () {
555
+ return _licenseAttributes.licenseAttributes;
556
+ }
557
+ });
540
558
  Object.defineProperty(exports, "messagesEN", {
541
559
  enumerable: true,
542
560
  get: function () {
@@ -567,12 +585,24 @@ Object.defineProperty(exports, "messagesSMA", {
567
585
  return _messagesSma.default;
568
586
  }
569
587
  });
588
+ Object.defineProperty(exports, "useAudioSearchTranslations", {
589
+ enumerable: true,
590
+ get: function () {
591
+ return _i18n.useAudioSearchTranslations;
592
+ }
593
+ });
570
594
  Object.defineProperty(exports, "useComboboxTranslations", {
571
595
  enumerable: true,
572
596
  get: function () {
573
597
  return _i18n.useComboboxTranslations;
574
598
  }
575
599
  });
600
+ Object.defineProperty(exports, "useImageSearchTranslations", {
601
+ enumerable: true,
602
+ get: function () {
603
+ return _i18n.useImageSearchTranslations;
604
+ }
605
+ });
576
606
  Object.defineProperty(exports, "usePaginationTranslations", {
577
607
  enumerable: true,
578
608
  get: function () {
@@ -591,6 +621,7 @@ Object.defineProperty(exports, "useTagsInputTranslations", {
591
621
  return _i18n.useTagsInputTranslations;
592
622
  }
593
623
  });
624
+ var _Concept = require("./Concept/Concept");
594
625
  var _Embed = require("./Embed");
595
626
  var _LicenseByline = require("./LicenseByline");
596
627
  var _Article = require("./Article");
@@ -626,6 +657,7 @@ var _Gloss = require("./Gloss");
626
657
  var _LinkBlock = require("./LinkBlock");
627
658
  var _CodeBlock = require("./CodeBlock");
628
659
  var _ZendeskButton = require("./ZendeskButton/ZendeskButton");
660
+ var _licenseAttributes = require("./utils/licenseAttributes");
629
661
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
630
662
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
631
663
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -985,6 +986,8 @@ declare const messages: {
985
986
  posts: string;
986
987
  posts_plural: string;
987
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
988
991
  };
989
992
  cancel: {
990
993
  title: {
@@ -1047,6 +1050,8 @@ declare const messages: {
1047
1050
  unlock: string;
1048
1051
  lockDescription: string;
1049
1052
  unlockDescription: string;
1053
+ votes: string;
1054
+ votes_plural: string;
1050
1055
  };
1051
1056
  posts: {
1052
1057
  title: string;
@@ -1423,6 +1428,27 @@ declare const messages: {
1423
1428
  lastPage: string;
1424
1429
  page: string;
1425
1430
  };
1431
+ imageSearch: {
1432
+ searchPlaceholder: string;
1433
+ searchButtonTitle: string;
1434
+ imagePreview: {
1435
+ creatorsLabel: string;
1436
+ license: string;
1437
+ caption: string;
1438
+ altText: string;
1439
+ modelRelease: string;
1440
+ tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1444
+ };
1445
+ };
1446
+ audioSearch: {
1447
+ searchPlaceholder: string;
1448
+ searchButtonTitle: string;
1449
+ useAudio: string;
1450
+ noResults: string;
1451
+ };
1426
1452
  };
1427
1453
  };
1428
1454
  export default messages;
@@ -918,6 +918,7 @@ const messages = {
918
918
  close: "Close fact box"
919
919
  },
920
920
  myNdla: {
921
+ description: "My NDLA: Organize the content your way! Use NDLA’s chat robot (AI). Save and share with colleagues and students.",
921
922
  mainMenu: "Main menu",
922
923
  myNDLA: "My NDLA",
923
924
  myNDLAMenu: "My NDLA menu",
@@ -1001,7 +1002,9 @@ const messages = {
1001
1002
  title: "Categories",
1002
1003
  posts: "post",
1003
1004
  posts_plural: "posts",
1004
- subcategory: "Subcategories"
1005
+ subcategory: "Subcategories",
1006
+ votes: "reaction",
1007
+ votes_plural: "reactions"
1005
1008
  },
1006
1009
  cancel: {
1007
1010
  title: {
@@ -1063,7 +1066,9 @@ const messages = {
1063
1066
  locked: "Lock topic",
1064
1067
  unlock: "Unlock topic",
1065
1068
  lockDescription: "Do you want do lock this topic? This will prevent this topic from getting more posts.",
1066
- unlockDescription: "Do you want do unlock this topic? This will prevent this topic from getting more posts."
1069
+ unlockDescription: "Do you want do unlock this topic? This will prevent this topic from getting more posts.",
1070
+ votes: "reaction",
1071
+ votes_plural: "reactions"
1067
1072
  },
1068
1073
  posts: {
1069
1074
  title: "Posts",
@@ -1092,12 +1097,12 @@ const messages = {
1092
1097
  maxLength: "The maximum length for the text field is reached",
1093
1098
  error: "The field is required"
1094
1099
  },
1095
- bottomText: "Are you missing a category? Let our moderator know at ",
1100
+ bottomText: "Are you missing a category? You can request new categories. Use 'Ask NDLA' or send an email to ",
1096
1101
  moderatorEmail: "moderator@ndla.no",
1097
1102
  notification: {
1098
1103
  title: "Notifications",
1099
1104
  showAll: "View all notifications",
1100
- description: "Welcome to the arena for teachers in upper secondary education. This is <em>your</em> arena: a professional meeting place for discussion, inspiration, sharing, development, and collaboration.",
1105
+ description: "Welcome to NDLAs Arena. Here, you can discuss, share and cooperate with other teachers from all over Norway.",
1101
1106
  myNotification: "My notifications",
1102
1107
  markAll: "Mark all as read",
1103
1108
  subscribe: "You will now be notified of new replies to this topic",
@@ -1344,7 +1349,7 @@ const messages = {
1344
1349
  dragHandle: "Drag the category {{name}}"
1345
1350
  },
1346
1351
  favoriteSubjects: {
1347
- title: "My favorite subjects",
1352
+ title: "My subjects",
1348
1353
  subjects: "{{count}} subject",
1349
1354
  subjects_0: "{{count}} subjects",
1350
1355
  subjects_plural: "{{count}} subjects",
@@ -1473,6 +1478,27 @@ const messages = {
1473
1478
  nextTriggerLabel: "Next page",
1474
1479
  lastPage: "Last page, page {{page}}",
1475
1480
  page: "Page {{page}}"
1481
+ },
1482
+ imageSearch: {
1483
+ searchPlaceholder: "Search images",
1484
+ searchButtonTitle: "Search",
1485
+ imagePreview: {
1486
+ creatorsLabel: "Image",
1487
+ license: "License",
1488
+ caption: "Caption",
1489
+ altText: "Alt-text",
1490
+ modelRelease: "Model released",
1491
+ tags: "Tags",
1492
+ checkboxLabel: "Set as meta image",
1493
+ close: "Close",
1494
+ useImageTitle: "Use image"
1495
+ }
1496
+ },
1497
+ audioSearch: {
1498
+ searchPlaceholder: "Search in audio files",
1499
+ searchButtonTitle: "Search",
1500
+ useAudio: "Chose audio",
1501
+ noResults: "No audio files found"
1476
1502
  }
1477
1503
  }
1478
1504
  };
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -985,6 +986,8 @@ declare const messages: {
985
986
  posts: string;
986
987
  posts_plural: string;
987
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
988
991
  };
989
992
  publish: string;
990
993
  cancel: {
@@ -1047,6 +1050,8 @@ declare const messages: {
1047
1050
  unlock: string;
1048
1051
  lockDescription: string;
1049
1052
  unlockDescription: string;
1053
+ votes: string;
1054
+ votes_plural: string;
1050
1055
  };
1051
1056
  posts: {
1052
1057
  title: string;
@@ -1423,6 +1428,27 @@ declare const messages: {
1423
1428
  lastPage: string;
1424
1429
  page: string;
1425
1430
  };
1431
+ imageSearch: {
1432
+ searchPlaceholder: string;
1433
+ searchButtonTitle: string;
1434
+ imagePreview: {
1435
+ creatorsLabel: string;
1436
+ license: string;
1437
+ caption: string;
1438
+ altText: string;
1439
+ modelRelease: string;
1440
+ tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1444
+ };
1445
+ };
1446
+ audioSearch: {
1447
+ searchPlaceholder: string;
1448
+ searchButtonTitle: string;
1449
+ useAudio: string;
1450
+ noResults: string;
1451
+ };
1426
1452
  };
1427
1453
  };
1428
1454
  export default messages;
@@ -918,6 +918,7 @@ const messages = {
918
918
  close: "Lukk faktaboks"
919
919
  },
920
920
  myNdla: {
921
+ description: "Min NDLA: Organiser fagstoffet på din måte! Bruk NDLAs praterobot (AI/KI). Lagre og del med kolleger og elever.",
921
922
  mainMenu: "Hovedmeny",
922
923
  myNDLA: "Min NDLA",
923
924
  myNDLAMenu: "Min NDLA meny",
@@ -1001,7 +1002,9 @@ const messages = {
1001
1002
  title: "Kategorier",
1002
1003
  posts: "innlegg",
1003
1004
  posts_plural: "innlegg",
1004
- subcategory: "Tema"
1005
+ subcategory: "Tema",
1006
+ votes: "reaksjon",
1007
+ votes_plural: "reaksjoner"
1005
1008
  },
1006
1009
  publish: "Publiser",
1007
1010
  cancel: {
@@ -1063,7 +1066,9 @@ const messages = {
1063
1066
  locked: "Lås innlegg",
1064
1067
  unlock: "Lås opp innlegg",
1065
1068
  lockDescription: "Vil du låse dette innlegget? Dette vil gjøre at innlegget ikke kan få flere kommentarer, og vil vises som låst.",
1066
- unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer."
1069
+ unlockDescription: "Vil du låse opp dette innlegget? Dette vil gjøre at innlegget kan få flere kommentarer.",
1070
+ votes: "reaksjon",
1071
+ votes_plural: "reaksjoner"
1067
1072
  },
1068
1073
  posts: {
1069
1074
  title: "Innlegg",
@@ -1092,12 +1097,12 @@ const messages = {
1092
1097
  maxLength: "Maksimal lengde for tekstfeltet er nådd",
1093
1098
  error: "Feltet er påkrevd"
1094
1099
  },
1095
- bottomText: "Savner du en kategori? Gi vår moderator beskjed ",
1100
+ bottomText: "Savner du en kategori? Du kan be om nye kategorier. Bruk 'Spør NDLA' eller send en epost til ",
1096
1101
  moderatorEmail: "moderator@ndla.no",
1097
1102
  notification: {
1098
1103
  title: "Varslinger",
1099
1104
  showAll: "Se alle varslinger",
1100
- description: "Velkommen inn i arenaen for lærere i videregående opplæring! Dette er <em>din</em> arena: et faglig møtested for diskusjon, inspirasjon, deling og utviklende samarbeid.",
1105
+ description: "Velkommen til NDLAs Arena. Her kan du diskutere, dele og samarbeide med andre lærere fra hele Norge.",
1101
1106
  myNotification: "Mine varsler",
1102
1107
  markAll: "Merk alle som lest",
1103
1108
  subscribe: "Du får nå varsling om nye svar på dette innlegget",
@@ -1344,7 +1349,7 @@ const messages = {
1344
1349
  dragHandle: "Sorter kategorien {{name}}"
1345
1350
  },
1346
1351
  favoriteSubjects: {
1347
- title: "Mine favorittfag",
1352
+ title: "Mine fag",
1348
1353
  subjects: "{{count}} fag",
1349
1354
  subjects_0: "{{count}} fag",
1350
1355
  subjects_plural: "{{count}} fag",
@@ -1473,6 +1478,27 @@ const messages = {
1473
1478
  nextTriggerLabel: "Neste side",
1474
1479
  lastPage: "Siste side, side {{page}}",
1475
1480
  page: "Side {{page}}"
1481
+ },
1482
+ imageSearch: {
1483
+ searchPlaceholder: "Søk i bilder",
1484
+ searchButtonTitle: "Søk",
1485
+ imagePreview: {
1486
+ creatorsLabel: "Bilde",
1487
+ license: "Lisens",
1488
+ caption: "Bildetekst",
1489
+ altText: "Alt-tekst",
1490
+ modelRelease: "Modellklarert",
1491
+ tags: "Emneknagger",
1492
+ checkboxLabel: "Sett som metabilde",
1493
+ close: "Lukk",
1494
+ useImageTitle: "Bruk bildet"
1495
+ }
1496
+ },
1497
+ audioSearch: {
1498
+ searchPlaceholder: "Søk i lydfiler",
1499
+ searchButtonTitle: "Søk",
1500
+ useAudio: "Velg lyd",
1501
+ noResults: "Ingen resultater funnet"
1476
1502
  }
1477
1503
  }
1478
1504
  };
@@ -901,6 +901,7 @@ declare const messages: {
901
901
  close: string;
902
902
  };
903
903
  myNdla: {
904
+ description: string;
904
905
  mainMenu: string;
905
906
  myNDLA: string;
906
907
  myNDLAMenu: string;
@@ -985,6 +986,8 @@ declare const messages: {
985
986
  posts: string;
986
987
  posts_plural: string;
987
988
  subcategory: string;
989
+ votes: string;
990
+ votes_plural: string;
988
991
  };
989
992
  publish: string;
990
993
  cancel: {
@@ -1039,6 +1042,8 @@ declare const messages: {
1039
1042
  unlock: string;
1040
1043
  lockDescription: string;
1041
1044
  unlockDescription: string;
1045
+ votes: string;
1046
+ votes_plural: string;
1042
1047
  };
1043
1048
  deleted: {
1044
1049
  post: string;
@@ -1423,6 +1428,27 @@ declare const messages: {
1423
1428
  lastPage: string;
1424
1429
  page: string;
1425
1430
  };
1431
+ imageSearch: {
1432
+ searchPlaceholder: string;
1433
+ searchButtonTitle: string;
1434
+ imagePreview: {
1435
+ creatorsLabel: string;
1436
+ license: string;
1437
+ caption: string;
1438
+ altText: string;
1439
+ modelRelease: string;
1440
+ tags: string;
1441
+ checkboxLabel: string;
1442
+ close: string;
1443
+ useImageTitle: string;
1444
+ };
1445
+ };
1446
+ audioSearch: {
1447
+ searchPlaceholder: string;
1448
+ searchButtonTitle: string;
1449
+ useAudio: string;
1450
+ noResults: string;
1451
+ };
1426
1452
  };
1427
1453
  };
1428
1454
  export default messages;