@ndla/ui 56.0.121-alpha.0 → 56.0.122-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 (206) hide show
  1. package/lib/i18n/index.d.ts +1 -1
  2. package/lib/i18n/useComponentTranslations.d.ts +2 -1
  3. package/lib/index.d.ts +1 -1
  4. package/lib/locale/messages-en.d.ts +34 -0
  5. package/lib/locale/messages-nb.d.ts +34 -0
  6. package/lib/locale/messages-nn.d.ts +34 -0
  7. package/lib/locale/messages-se.d.ts +34 -0
  8. package/package.json +6 -5
  9. package/src/Article/ArticleByline.tsx +1 -1
  10. package/src/i18n/index.ts +1 -0
  11. package/src/i18n/useComponentTranslations.ts +36 -1
  12. package/src/index.ts +1 -0
  13. package/src/locale/messages-en.ts +34 -0
  14. package/src/locale/messages-nb.ts +34 -0
  15. package/src/locale/messages-nn.ts +34 -0
  16. package/src/locale/messages-se.ts +34 -0
  17. package/es/Article/Article.js +0 -199
  18. package/es/Article/ArticleByline.js +0 -182
  19. package/es/Article/ArticleFootNotes.js +0 -60
  20. package/es/Article/index.js +0 -11
  21. package/es/AudioPlayer/AudioPlayer.js +0 -218
  22. package/es/AudioPlayer/Controls.js +0 -332
  23. package/es/AudioPlayer/SpeechControl.js +0 -56
  24. package/es/AudioPlayer/index.js +0 -10
  25. package/es/Breadcrumb/Breadcrumb.js +0 -60
  26. package/es/Breadcrumb/BreadcrumbItem.js +0 -62
  27. package/es/Breadcrumb/HomeBreadcrumb.js +0 -77
  28. package/es/Breadcrumb/index.js +0 -11
  29. package/es/CampaignBlock/CampaignBlock.js +0 -180
  30. package/es/CampaignBlock/index.js +0 -9
  31. package/es/CodeBlock/CodeBlock.js +0 -35
  32. package/es/CodeBlock/codeLanguageOptions.js +0 -84
  33. package/es/CodeBlock/index.js +0 -10
  34. package/es/Concept/Concept.js +0 -72
  35. package/es/ContactBlock/ContactBlock.js +0 -199
  36. package/es/ContactBlock/index.js +0 -9
  37. package/es/ContentTypeBadge/ContentTypeBadge.js +0 -50
  38. package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -32
  39. package/es/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -32
  40. package/es/ContentTypeHero/ContentTypeHero.js +0 -50
  41. package/es/ContentTypeHero/index.js +0 -9
  42. package/es/CopyParagraphButton/CopyParagraphButton.js +0 -83
  43. package/es/CopyParagraphButton/index.js +0 -11
  44. package/es/Embed/AudioEmbed.js +0 -76
  45. package/es/Embed/BrightcoveEmbed.js +0 -133
  46. package/es/Embed/CodeEmbed.js +0 -79
  47. package/es/Embed/ConceptEmbed.js +0 -123
  48. package/es/Embed/ConceptInlineTriggerButton.js +0 -45
  49. package/es/Embed/ContentLinkEmbed.js +0 -51
  50. package/es/Embed/CopyrightEmbed.js +0 -33
  51. package/es/Embed/EmbedErrorPlaceholder.js +0 -58
  52. package/es/Embed/EmbedWrapper.js +0 -51
  53. package/es/Embed/ExternalEmbed.js +0 -74
  54. package/es/Embed/FootnoteEmbed.js +0 -44
  55. package/es/Embed/GlossEmbed.js +0 -80
  56. package/es/Embed/H5pEmbed.js +0 -61
  57. package/es/Embed/IframeEmbed.js +0 -93
  58. package/es/Embed/ImageEmbed.js +0 -238
  59. package/es/Embed/InlineTriggerButton.js +0 -37
  60. package/es/Embed/RelatedContentEmbed.js +0 -55
  61. package/es/Embed/UnknownEmbed.js +0 -31
  62. package/es/Embed/UuDisclaimerEmbed.js +0 -88
  63. package/es/Embed/index.js +0 -25
  64. package/es/Embed/types.js +0 -1
  65. package/es/ErrorMessage/ErrorMessage.js +0 -95
  66. package/es/ErrorMessage/index.js +0 -10
  67. package/es/FactBox/FactBox.js +0 -177
  68. package/es/FactBox/index.js +0 -10
  69. package/es/FileList/File.js +0 -101
  70. package/es/FileList/FileList.js +0 -47
  71. package/es/FileList/PdfFile.js +0 -50
  72. package/es/FileList/index.js +0 -11
  73. package/es/Gloss/Gloss.js +0 -175
  74. package/es/Gloss/GlossExample.js +0 -64
  75. package/es/Gloss/index.js +0 -10
  76. package/es/Grid/Grid.js +0 -94
  77. package/es/Grid/GridParallaxItem.js +0 -32
  78. package/es/Grid/index.js +0 -10
  79. package/es/KeyFigure/KeyFigure.js +0 -63
  80. package/es/KeyFigure/index.js +0 -9
  81. package/es/LicenseByline/EmbedByline.js +0 -212
  82. package/es/LicenseByline/LicenseLink.js +0 -56
  83. package/es/LicenseByline/index.js +0 -10
  84. package/es/LinkBlock/LinkBlock.js +0 -103
  85. package/es/LinkBlock/LinkBlockSection.js +0 -35
  86. package/es/LinkBlock/index.js +0 -10
  87. package/es/Pitch/Pitch.js +0 -83
  88. package/es/Pitch/index.js +0 -9
  89. package/es/RelatedArticleList/RelatedArticleList.js +0 -135
  90. package/es/RelatedArticleList/index.js +0 -11
  91. package/es/ResourceBox/ResourceBox.js +0 -99
  92. package/es/ResourceBox/index.js +0 -10
  93. package/es/TagSelector/TagSelector.js +0 -143
  94. package/es/ZendeskButton/ZendeskButton.js +0 -55
  95. package/es/i18n/formatNestedMessages.js +0 -25
  96. package/es/i18n/i18n.js +0 -35
  97. package/es/i18n/index.js +0 -11
  98. package/es/i18n/useComponentTranslations.js +0 -164
  99. package/es/index.js +0 -45
  100. package/es/locale/messages-en.js +0 -428
  101. package/es/locale/messages-nb.js +0 -428
  102. package/es/locale/messages-nn.js +0 -428
  103. package/es/locale/messages-se.js +0 -428
  104. package/es/model/ContentType.js +0 -68
  105. package/es/model/SubjectCategories.js +0 -12
  106. package/es/model/SubjectTypes.js +0 -11
  107. package/es/model/WordClass.js +0 -45
  108. package/es/model/index.js +0 -21
  109. package/es/types.js +0 -1
  110. package/es/utils/licenseAttributes.js +0 -18
  111. package/es/utils/relativeUrl.js +0 -37
  112. package/lib/Article/Article.js +0 -207
  113. package/lib/Article/ArticleByline.js +0 -189
  114. package/lib/Article/ArticleFootNotes.js +0 -67
  115. package/lib/Article/index.js +0 -68
  116. package/lib/AudioPlayer/AudioPlayer.js +0 -224
  117. package/lib/AudioPlayer/Controls.js +0 -338
  118. package/lib/AudioPlayer/SpeechControl.js +0 -62
  119. package/lib/AudioPlayer/index.js +0 -16
  120. package/lib/Breadcrumb/Breadcrumb.js +0 -67
  121. package/lib/Breadcrumb/BreadcrumbItem.js +0 -68
  122. package/lib/Breadcrumb/HomeBreadcrumb.js +0 -84
  123. package/lib/Breadcrumb/index.js +0 -23
  124. package/lib/CampaignBlock/CampaignBlock.js +0 -187
  125. package/lib/CampaignBlock/index.js +0 -13
  126. package/lib/CodeBlock/CodeBlock.js +0 -41
  127. package/lib/CodeBlock/codeLanguageOptions.js +0 -90
  128. package/lib/CodeBlock/index.js +0 -20
  129. package/lib/Concept/Concept.js +0 -78
  130. package/lib/ContactBlock/ContactBlock.js +0 -206
  131. package/lib/ContactBlock/index.js +0 -18
  132. package/lib/ContentTypeBadge/ContentTypeBadge.js +0 -57
  133. package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -38
  134. package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -38
  135. package/lib/ContentTypeHero/ContentTypeHero.js +0 -57
  136. package/lib/ContentTypeHero/index.js +0 -12
  137. package/lib/CopyParagraphButton/CopyParagraphButton.js +0 -89
  138. package/lib/CopyParagraphButton/index.js +0 -22
  139. package/lib/Embed/AudioEmbed.js +0 -84
  140. package/lib/Embed/BrightcoveEmbed.js +0 -142
  141. package/lib/Embed/CodeEmbed.js +0 -86
  142. package/lib/Embed/ConceptEmbed.js +0 -131
  143. package/lib/Embed/ConceptInlineTriggerButton.js +0 -51
  144. package/lib/Embed/ContentLinkEmbed.js +0 -57
  145. package/lib/Embed/CopyrightEmbed.js +0 -39
  146. package/lib/Embed/EmbedErrorPlaceholder.js +0 -64
  147. package/lib/Embed/EmbedWrapper.js +0 -57
  148. package/lib/Embed/ExternalEmbed.js +0 -81
  149. package/lib/Embed/FootnoteEmbed.js +0 -50
  150. package/lib/Embed/GlossEmbed.js +0 -88
  151. package/lib/Embed/H5pEmbed.js +0 -68
  152. package/lib/Embed/IframeEmbed.js +0 -100
  153. package/lib/Embed/ImageEmbed.js +0 -248
  154. package/lib/Embed/InlineTriggerButton.js +0 -43
  155. package/lib/Embed/RelatedContentEmbed.js +0 -61
  156. package/lib/Embed/UnknownEmbed.js +0 -37
  157. package/lib/Embed/UuDisclaimerEmbed.js +0 -94
  158. package/lib/Embed/index.js +0 -150
  159. package/lib/Embed/types.js +0 -5
  160. package/lib/ErrorMessage/ErrorMessage.js +0 -101
  161. package/lib/ErrorMessage/index.js +0 -16
  162. package/lib/FactBox/FactBox.js +0 -184
  163. package/lib/FactBox/index.js +0 -16
  164. package/lib/FileList/File.js +0 -108
  165. package/lib/FileList/FileList.js +0 -54
  166. package/lib/FileList/PdfFile.js +0 -57
  167. package/lib/FileList/index.js +0 -44
  168. package/lib/Gloss/Gloss.js +0 -181
  169. package/lib/Gloss/GlossExample.js +0 -70
  170. package/lib/Gloss/index.js +0 -20
  171. package/lib/Grid/Grid.js +0 -101
  172. package/lib/Grid/GridParallaxItem.js +0 -39
  173. package/lib/Grid/index.js +0 -19
  174. package/lib/KeyFigure/KeyFigure.js +0 -70
  175. package/lib/KeyFigure/index.js +0 -13
  176. package/lib/LicenseByline/EmbedByline.js +0 -220
  177. package/lib/LicenseByline/LicenseLink.js +0 -62
  178. package/lib/LicenseByline/index.js +0 -19
  179. package/lib/LinkBlock/LinkBlock.js +0 -110
  180. package/lib/LinkBlock/LinkBlockSection.js +0 -41
  181. package/lib/LinkBlock/index.js +0 -20
  182. package/lib/Pitch/Pitch.js +0 -91
  183. package/lib/Pitch/index.js +0 -12
  184. package/lib/RelatedArticleList/RelatedArticleList.js +0 -143
  185. package/lib/RelatedArticleList/index.js +0 -21
  186. package/lib/ResourceBox/ResourceBox.js +0 -106
  187. package/lib/ResourceBox/index.js +0 -13
  188. package/lib/TagSelector/TagSelector.js +0 -150
  189. package/lib/ZendeskButton/ZendeskButton.js +0 -61
  190. package/lib/i18n/formatNestedMessages.js +0 -32
  191. package/lib/i18n/i18n.js +0 -41
  192. package/lib/i18n/index.js +0 -62
  193. package/lib/i18n/useComponentTranslations.js +0 -176
  194. package/lib/index.js +0 -593
  195. package/lib/locale/messages-en.js +0 -435
  196. package/lib/locale/messages-nb.js +0 -435
  197. package/lib/locale/messages-nn.js +0 -435
  198. package/lib/locale/messages-se.js +0 -435
  199. package/lib/model/ContentType.js +0 -74
  200. package/lib/model/SubjectCategories.js +0 -18
  201. package/lib/model/SubjectTypes.js +0 -17
  202. package/lib/model/WordClass.js +0 -51
  203. package/lib/model/index.js +0 -28
  204. package/lib/types.js +0 -5
  205. package/lib/utils/licenseAttributes.js +0 -25
  206. package/lib/utils/relativeUrl.js +0 -44
@@ -1,428 +0,0 @@
1
- /**
2
- * Copyright (c) 2018-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 { contributorTypes } from "@ndla/licenses";
10
- import constants from "../model";
11
- const {
12
- subjectCategories,
13
- subjectTypes,
14
- wordClass
15
- } = constants;
16
- const messages = {
17
- ...contributorTypes.se,
18
- askNDLA: "Jeara NDLA:s",
19
- subjectCategories: {
20
- [subjectCategories.ACTIVE_SUBJECTS]: "Doaimmas",
21
- [subjectCategories.ARCHIVE_SUBJECTS]: "Ii doaimmas šat",
22
- [subjectCategories.BETA_SUBJECTS]: "Boahttevaš",
23
- [subjectCategories.OTHER]: "Eará resurssat",
24
- [subjectTypes.RESOURCE_COLLECTION]: "Resursačoakkáldat"
25
- },
26
- subjectTypes: {
27
- [subjectTypes.BETA_SUBJECT]: "Betafága",
28
- [subjectTypes.RESOURCE_COLLECTION]: "Resursačoakkáldat",
29
- [subjectTypes.SUBJECT]: "Fága"
30
- },
31
- meta: {
32
- description: "Kvalitehta sihkarasttojuvvon ja nuvttá olamuttos neahttavuđot oahpponeavvut joatkkaskuvlla oahpahussii",
33
- keywords: "oahpponeavvu, fága, skuvla, joatkka, fidnohárjehalli, pensuma, fágaávnnas"
34
- },
35
- logo: {
36
- altText: "Našunála digitála oahppanarena"
37
- },
38
- article: {
39
- lastUpdated: "Maŋemusat ođastuvvon",
40
- useContent: "Čujuhit vai ođđasit atnit?",
41
- authorsLabel: "Dán lea/leat čállán {{names}}",
42
- authorsLabelLearningpath: "Laget av {{names}}",
43
- copyPageLinkCopied: "Liŋka máŋgejuvvon",
44
- copyHeaderLink: "Máŋge liŋka bajilčállagii",
45
- conjunction: "ja",
46
- authorsLabelExternal: "Denne lenken er lagt til av {{names}}",
47
- supplierLabel: "Vuoigatvuođaguoddi: {{name}}",
48
- multipleSuppliersLabel: "Vuoigatvuođaguoddit: {{names}}",
49
- printPage: "Čálit teavstta",
50
- access: {
51
- onlyTeacher: "Dát resursa lea dušše olamuttus oahpaheddjiide geat leat Feide bokte sisaloggejuvvon."
52
- },
53
- footnotes: "Fotnotar"
54
- },
55
- license: {
56
- copyTitle: "Máŋge gáldooainnu",
57
- hasCopiedTitle: "Máŋgejuvvon!",
58
- embed: "Hukse sisa",
59
- embedCopied: "Máŋgejuvvon sisahuksenkoda!",
60
- copyText: {
61
- now: "dál",
62
- podcast: "podkásta",
63
- by: "geas",
64
- internet: "[Interneahtta]. ",
65
- noTitle: "Tihttela haga",
66
- downloadedFrom: "Gos vižžojuvvon: ",
67
- readDate: "Lohkan: "
68
- },
69
- download: "Viečča",
70
- openLink: "Raba ođđa gilkoris",
71
- tabs: {
72
- text: "Teaksta",
73
- images: "Govat",
74
- audio: "Jietna",
75
- video: "Video",
76
- h5p: "H5P",
77
- files: "Fiillat",
78
- embedlink: "Sisahuksenliŋka",
79
- concept: "Čilgehusat",
80
- gloss: "Gloser",
81
- podcast: "Podkásta",
82
- other: "Eará sisdoallu"
83
- },
84
- embedlink: {
85
- heading: "Ná čájehat artihkkala eará sisdoalus",
86
- description: "Dát liŋka čájeha artihkkala konteavstta haga (fállu ja vuolleteaksta)",
87
- copyTitle: "Máŋge liŋkka",
88
- hasCopiedTitle: "Liŋka máŋgejuvvon"
89
- },
90
- image: {
91
- rules: "Njuolggadusat gova geavaheapmái:"
92
- },
93
- images: {
94
- heading: "Ná geavahat govaid ođđasit",
95
- description: "Muitte máŋget teavstta mii galgá mielddusin govvii go geavahat dan.",
96
- rules: "Njuolggadusat gova geavaheapmái",
97
- itemImage: {
98
- ariaLabel: "Raba gova ođđa siiddus",
99
- zoomImageButtonLabel: "Stuorit gova",
100
- zoomOutImageButtonLabel: "Unnit gova",
101
- expandByline: "Čájet byline",
102
- minimizeByline: "Čiega byline"
103
- },
104
- licenseText: "Dán govas lea liseansa",
105
- restrictedUseText: "Dán govas lea"
106
- },
107
- text: {
108
- heading: "Ná geavahat teavstta ođđasit",
109
- description: "Muitte čujuhit gáldui go nuppi teavstta anát.",
110
- rules: "Njuolggadusat teavstta geavaheapmái",
111
- published: "Almmuhanbeaivi",
112
- licenseText: "Dán teavsttas lea liseansa",
113
- restrictedUseText: "Dán teavsttas lea"
114
- },
115
- audio: {
116
- heading: "Ná geavahat jietnafiilla ođđasit",
117
- description: "Muitte máŋget teavstta mii galgá čuovvut jietnafiilla doppe gos geavahuvvo.",
118
- rules: "Njuolggadusat jietnafiilla geavaheapmái",
119
- licenseText: "Dán jietnafiillas lea liseansa",
120
- restrictedUseText: "Dán jietnafiillas lea"
121
- },
122
- podcast: {
123
- heading: "Ná geavahat podkásta ođđasit",
124
- description: "Muitte máŋget teavstta mii galgá čuovvut podkásta doppe gos geavahuvvo.",
125
- rules: "Njuolggadusat podkásta geavaheapmái",
126
- licenseText: "Dán podkasttas lea liseansa",
127
- restrictedUseText: "Dán podkasttas lea"
128
- },
129
- video: {
130
- heading: "Ná geavahat video ođđasit",
131
- description: "Muitte máŋget teavstta mii galgá čuovvut video doppe gos dat geavahuvvo.",
132
- rules: "Njuolggadusat video geavaheapmái",
133
- itemImage: {
134
- ariaLabel: "Raba video ođđa siiddus"
135
- },
136
- licenseText: "Dán videoi lea liseansa",
137
- restrictedUseText: "Dán videoi lea"
138
- },
139
- other: {
140
- heading: "Ná geavahat eará sisdoalu ođđasit",
141
- description: "Njuolggadusaid sisdoalu geavaheapmái gávnnat sisdoalloelemeanttas",
142
- itemImage: {
143
- ariaLabel: "Raba ođđa siiddus"
144
- }
145
- },
146
- h5p: {
147
- heading: "Ná geavahat H5P-sisdoalu ođđasit",
148
- description: "Njuolggadusaid sisdoalu geavaheapmái gávnnat H5P-elemeanttas",
149
- rules: "Njuolggadusat H5P geavaheapmái",
150
- licenseText: "Dát interaktiiva bargu (H5P) lea ožžon liseanssa",
151
- restrictedUseText: "Dát interaktiiva bargu (H5P) lea ožžon"
152
- },
153
- concept: {
154
- heading: "Ná geavahat čilgehusaid ođđasit",
155
- description: "Husk at innebygd innhald i ei forklaring kan ha ein anna lisens enn sjølve forklaringsteksten",
156
- rules: "Njuolggadusat čilgehusa geavaheapmái",
157
- embedlink: {
158
- heading: "Ná čájehat čilgehusa eará sisdoalus",
159
- description: "Dát liŋka čájeha čilgehusa konteavstta haga (fállu ja vuolleteaksta)",
160
- copyTitle: "Máŋge sisahuksenliŋkka",
161
- hasCopiedTitle: "Sisahuksenliŋka máŋgejuvvon"
162
- },
163
- licenseText: "Dán čilgehusas lea liseansa",
164
- restrictedUseText: "Dán čilgehusas lea"
165
- },
166
- gloss: {
167
- heading: "Movt geavahit ođđasit dajaldagaid",
168
- description: "Muitte ahte sisdoalus mii lea vuojuhuvvon ovtta gihppagii sáhttá leat eará liseansa go dušše jietnadat.",
169
- rules: "Glossa geavaheami njuolggadusat",
170
- showOrHideExamples: "Čájet dahje čiega ovdamearkkaid",
171
- embedlink: {
172
- heading: "Čájet jietnadaga eará sisdoaluin",
173
- description: "Dát liŋka čájeha teavstta konteavstta haga (fállu ja juolgeteaksta)",
174
- copyTitle: "Máŋge sisačálihanliŋkka",
175
- hasCopiedTitle: "Sajáiduhttinliŋka mángejuvvon"
176
- },
177
- licenseText: "Dán jietnadagas lea liseansa",
178
- restrictedUseText: "Dán jietnadagas lea"
179
- },
180
- files: {
181
- heading: "Ná geavahat fiillaid ođđasit",
182
- description: "Muitte máŋget teavsttaid mat galget čuovvut fiillaid doppe gos dat geavahuvvet.",
183
- rules: "Njuolggadusat fiilla geavaheapmái",
184
- itemImage: {
185
- ariaLabel: "Raba ođđa siiddus"
186
- }
187
- },
188
- processed: "Sisdoallu lea rievdaduvvon."
189
- },
190
- errorMessage: {
191
- title: "Ops, juoga manai boastut",
192
- description: "Šállošit, boasttuvuohta čuožžilii.",
193
- back: "Mana ruovttoluotta",
194
- goToFrontPage: "Mana ovdasiidui"
195
- },
196
- figure: {
197
- button: {
198
- alternative: "Lonut siidui mas dulkojuvvo oaidninváttuid ektui",
199
- original: "Lonut orginála videoi"
200
- }
201
- },
202
- contentTypes: {
203
- all: "Buot",
204
- article: "Artikkel",
205
- subject: "Fága",
206
- "topic-article": "Fáddá",
207
- learningpath: "Oahppanbálggis",
208
- "learning-path": "Oahppanbálggis",
209
- "subject-material": "Fágaávdnasat",
210
- "tasks-and-activities": "Bihtát ja doaimmat",
211
- "source-material": "Gáldomateriála",
212
- "assessment-resources": "Árvoštallanresursa",
213
- topic: "Fáddá",
214
- multidisciplinary: "Fágaidrasttideaddji fáddá",
215
- image: "Govva",
216
- concept: "Čilgehus",
217
- audio: "Jietna",
218
- podcast: "Podkásta",
219
- h5p: "H5P",
220
- video: "Video",
221
- missing: "Ukjent",
222
- external: "Ekstern",
223
- gloss: "Glose",
224
- programme: "Programfag",
225
- "podcast-series": "Podkast-serie",
226
- "frontpage-article": "Om NDLA-artikkel"
227
- },
228
- languages: {
229
- nb: "Girjedárogiella",
230
- nn: "Ođđadárogiella",
231
- en: "Eŋgelasgiella",
232
- fr: "Fránskkagiella",
233
- de: "Duiskkagiella",
234
- se: "Davvisámegiella",
235
- sma: "Máttasámegiella",
236
- es: "Espánnjagiella",
237
- zh: "Kiinnágiella",
238
- ukr: "Ukrainsk",
239
- unknown: "Amas",
240
- prefixChangeLanguage: "Vállje giela"
241
- },
242
- breadcrumb: {
243
- toFrontpage: "NDLA ovdasiidu",
244
- breadcrumb: "Láibemoallobálggis"
245
- },
246
- codeBlock: {
247
- copiedCode: "Koda lea máŋgejuvvon vuorkátávvalii",
248
- copyCode: "Máŋge koda vuorkátávvalii"
249
- },
250
- close: "Govčča",
251
- loading: "Viežžá",
252
- title: "Tihttel",
253
- cancel: "Botkke",
254
- save: "Vurke",
255
- email: "E-boasta",
256
- finished: "Ferdig",
257
- audio: {
258
- play: "Čuojat",
259
- pause: "Boatkke",
260
- progressBar: "Fremdriftsindikator",
261
- valueText: "{{start}} av {{end}}",
262
- controls: {
263
- forward15sec: "Sirdde 15 sekundda ovddas",
264
- rewind15sec: "Sirdde 15 sekundda maŋos",
265
- selectSpeed: "Vállje čuojahanleahtu",
266
- adjustVolume: "Rievdat voluma"
267
- },
268
- textVersion: {
269
- heading: "Teakstavearšuvdna",
270
- close: "Govčča teakstavearšuvnna"
271
- },
272
- readMoreDescriptionLabel: "Čájet eanet",
273
- readLessDescriptionLabel: "Čájet unnit"
274
- },
275
- source: "Gáldu",
276
- related: {
277
- title: "Guoskevaš sisdoallu",
278
- linkInfo: "Neahttasiidu čuovvuvaččas",
279
- showMore: "Čájet eanet guoskevaš sisdoalu",
280
- showLess: "Čájet unnit"
281
- },
282
- download: "Viečča fiilla: ",
283
- factbox: {
284
- open: "Raba fáktádoasa",
285
- close: "Govčča fáktádoasa"
286
- },
287
- embed: {
288
- linkError: "Ii sáhttán čájehit liŋkka.",
289
- unsupported: `Embed {{type}} ii dorjojuvvo.`,
290
- embedError: `Šattai meattáhus {{type}} vieččadettiin. Geahččal viežžat siiddu ođđasit.`,
291
- type: {
292
- image: "Govva",
293
- video: "Video",
294
- audio: "Jietna",
295
- podcast: "Podkast",
296
- concept: "Čilgehus",
297
- h5p: "H5P",
298
- external: "Olgguldas resursa",
299
- gloss: "Glose",
300
- copyright: "Tekst",
301
- code: "Kodeblokk",
302
- disclaimer: "UU-advarsel"
303
- }
304
- },
305
- uuDisclaimer: {
306
- title: "Tilgjengelighet"
307
- },
308
- gloss: {
309
- examples: "Ovdamearkkat",
310
- showExamples: "Vis eksempler",
311
- wordClass: "Sátneluohkká",
312
- play: "Čuojat glose",
313
- transcriptions: {
314
- traditional: "Árbevirolaš čállinvuohki",
315
- pinyin: "Pinyin"
316
- }
317
- },
318
- wordClass: {
319
- [wordClass.wordClass.adjective]: "Adjektiivvat",
320
- [wordClass.wordClass.adverb]: "Advearba",
321
- [wordClass.wordClass.properNoun]: "Iežas namma",
322
- [wordClass.wordClass.auxiliary]: "Veahkkesánit",
323
- [wordClass.wordClass.complement]: "Dievasmahttin",
324
- [wordClass.wordClass.conjunction]: "Konjunksjon",
325
- [wordClass.wordClass.coverb]: "Koverb",
326
- [wordClass.wordClass.determiner]: "Mearrádussánit",
327
- [wordClass.wordClass.interjection]: "Ovttastuvvon",
328
- [wordClass.wordClass.quantifier]: "Kvantor",
329
- [wordClass.wordClass.marker]: "Sieván",
330
- [wordClass.wordClass.modalVerb]: "Modálavearba",
331
- [wordClass.wordClass.measureWord]: "Olahussátni",
332
- [wordClass.wordClass.noun]: "Substantiivvat",
333
- [wordClass.wordClass["noun-zh"]]: "Nome",
334
- [wordClass.wordClass.nounPhrase]: "Nomengihppu",
335
- [wordClass.wordClass.onomatopoeia]: "Onomatopoetikon",
336
- [wordClass.wordClass.particle]: "Partihkkalat",
337
- [wordClass.wordClass.demonstrative]: "Čujuhusat",
338
- [wordClass.wordClass.personalPronoun]: "Persovnnalaš pronomen",
339
- [wordClass.wordClass.preposition]: "Preposišuvdna",
340
- [wordClass.wordClass.pronoun]: "Pronomen",
341
- [wordClass.wordClass.questionWord]: "Jearaldatsánit",
342
- [wordClass.wordClass.locationWord]: "Báikesánit",
343
- [wordClass.wordClass.suffix]: "Suffivssat",
344
- [wordClass.wordClass.numeral]: "Lohkosánit",
345
- [wordClass.wordClass.timeWord]: "Áigebágo",
346
- [wordClass.wordClass.timeExpression]: "Áigemearka",
347
- [wordClass.wordClass.stativeVerb]: "Dili-vearbba",
348
- [wordClass.wordClass.subordinatingConjunction]: "Subjunkšuvdna",
349
- [wordClass.wordClass.exclamationWord]: "Ii-rohkossátni",
350
- [wordClass.wordClass.expression]: "Ovdanbuktin",
351
- [wordClass.wordClass.verb]: "Vearbbat",
352
- [wordClass.wordClass.verbComplement]: "Vearbasuorggideapmi",
353
- [wordClass.wordClass.verbObject]: "Vearbaobjeakta"
354
- },
355
- login: "Čálit sisa",
356
- component: {
357
- tagsInput: {
358
- clearTriggerLabel: "Fjern alle emneknagger",
359
- deleteTagTriggerLabel: "Fjern emneknagg {{tag}}",
360
- tagAdded: "Emneknagg {{tag}} lagt til",
361
- tagsPasted: "Limte inn {{length}} emneknagger",
362
- tagEdited: "Redigerer emneknagg {{tag}}. Trykk enter for å lagre, eller esc for å avbryte.",
363
- tagUpdated: "Emneknagg oppdatert til {{tag}}",
364
- tagDeleted: "Emneknagg {{tag}} slettet",
365
- tagSelected: "Emneknagg {{tag}} valgt. Trykk enter for å redigere. Trykk backspace eller delete for å slette"
366
- },
367
- combobox: {
368
- triggerLabel: "Vis resultater",
369
- clearTriggerLabel: "Fjern valg"
370
- },
371
- pagination: {
372
- rootLabel: "Sidenavigering",
373
- prevTriggerLabel: "Forrige side",
374
- nextTriggerLabel: "Neste side",
375
- lastPage: "Siste side, side {{page}}",
376
- page: "Side {{page}}"
377
- },
378
- imageSearch: {
379
- searchPlaceholder: "Søk i bilder",
380
- searchButtonTitle: "Søk",
381
- imagePreview: {
382
- creatorsLabel: "Bilde",
383
- license: "Lisens",
384
- caption: "Bildetekst",
385
- altText: "Alt-tekst",
386
- modelRelease: "Modellklarert",
387
- tags: "Emneknagger",
388
- checkboxLabel: "Sett som metabilde",
389
- close: "Lukk",
390
- useImageTitle: "Bruk bildet"
391
- }
392
- },
393
- audioSearch: {
394
- searchPlaceholder: "Søk i lydfiler",
395
- searchButtonTitle: "Søk",
396
- useAudio: "Velg lyd",
397
- noResults: "Ingen resultater funnet"
398
- },
399
- videoSearch: {
400
- searchPlaceholder: "Søk i videoar",
401
- searchButtonTitle: "Søk",
402
- loadMoreVideos: "Last fleire videoar",
403
- noResults: "Ingen videoar funnet",
404
- addVideo: "Bruk video",
405
- previewVideo: "Forhåndsvis",
406
- is360Video: "VR-video",
407
- close: "Lukk"
408
- }
409
- },
410
- richTextEditor: {
411
- tooltip: {
412
- bold: "Fet ({{shortcut}})",
413
- code: "Kode ({{shortcut}})",
414
- sub: "Senket skrift ({{shortcut}})",
415
- sup: "Hevet skrift ({{shortcut}})",
416
- underlined: "Understreket ({{shortcut}})",
417
- italic: "Kursiv ({{shortcut}})",
418
- "numbered-list": "Nummerert liste ({{shortcut}})",
419
- "letter-list": "Bokstavliste ({{shortcut}})",
420
- "bulleted-list": "Punktliste ({{shortcut}})",
421
- heading: "Overskrift {{level}} ({{shortcut}})",
422
- paragraph: "Paragraf ({{shortcut}})",
423
- section: "Seksjon ({{shortcut}})",
424
- link: "Lenke ({{shortcut}})"
425
- }
426
- }
427
- };
428
- export default messages;
@@ -1,68 +0,0 @@
1
- /**
2
- * Copyright (c) 2017-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
- export const SUBJECT_MATERIAL = "subject-material";
10
- export const TASKS_AND_ACTIVITIES = "tasks-and-activities";
11
- export const ASSESSMENT_RESOURCES = "assessment-resources";
12
- export const SUBJECT = "subject";
13
- export const SOURCE_MATERIAL = "source-material";
14
- export const LEARNING_PATH = "learning-path";
15
- export const TOPIC = "topic";
16
- export const MULTIDISCIPLINARY = "multidisciplinary";
17
- export const CONCEPT = "concept";
18
- export const EXTERNAL = "external";
19
- export const MISSING = "missing";
20
- export const IMAGE = "image";
21
- export const VIDEO = "video";
22
- export const AUDIO = "audio";
23
- export const PODCAST = "podcast";
24
- export const GLOSS = "gloss";
25
- export const PROGRAMME = "programme";
26
- export const PODCAST_SERIES = "podcast-series";
27
- export const FRONTPAGE_ARTICLE = "frontpage-article";
28
- export const contentTypes = {
29
- SUBJECT_MATERIAL,
30
- TASKS_AND_ACTIVITIES,
31
- ASSESSMENT_RESOURCES,
32
- SUBJECT,
33
- SOURCE_MATERIAL,
34
- LEARNING_PATH,
35
- TOPIC,
36
- MULTIDISCIPLINARY,
37
- CONCEPT,
38
- EXTERNAL,
39
- MISSING,
40
- PROGRAMME,
41
- PODCAST_SERIES
42
- };
43
- export const RESOURCE_TYPE_LEARNING_PATH = "urn:resourcetype:learningPath";
44
- export const RESOURCE_TYPE_SUBJECT_MATERIAL = "urn:resourcetype:subjectMaterial";
45
- export const RESOURCE_TYPE_TASKS_AND_ACTIVITIES = "urn:resourcetype:tasksAndActivities";
46
- export const RESOURCE_TYPE_ASSESSMENT_RESOURCES = "urn:resourcetype:reviewResource";
47
- export const RESOURCE_TYPE_SOURCE_MATERIAL = "urn:resourcetype:SourceMaterial";
48
- export const RESOURCE_TYPE_CONCEPT = "urn:resourcetype:concept";
49
- export const contentTypeMapping = {
50
- [RESOURCE_TYPE_LEARNING_PATH]: LEARNING_PATH,
51
- [RESOURCE_TYPE_SUBJECT_MATERIAL]: SUBJECT_MATERIAL,
52
- [RESOURCE_TYPE_TASKS_AND_ACTIVITIES]: TASKS_AND_ACTIVITIES,
53
- [RESOURCE_TYPE_ASSESSMENT_RESOURCES]: ASSESSMENT_RESOURCES,
54
- [RESOURCE_TYPE_SOURCE_MATERIAL]: SOURCE_MATERIAL,
55
- [RESOURCE_TYPE_CONCEPT]: CONCEPT,
56
- [MULTIDISCIPLINARY]: MULTIDISCIPLINARY,
57
- [TOPIC]: TOPIC,
58
- [FRONTPAGE_ARTICLE]: FRONTPAGE_ARTICLE,
59
- default: SUBJECT_MATERIAL
60
- };
61
- export const resourceEmbedTypeMapping = {
62
- image: "image",
63
- video: "video",
64
- concept: "concept",
65
- audio: "audio",
66
- podcast: "podcast",
67
- gloss: "gloss"
68
- };
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright (c) 2021-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
- export const ACTIVE_SUBJECTS = "active";
10
- export const ARCHIVE_SUBJECTS = "archive";
11
- export const BETA_SUBJECTS = "beta";
12
- export const OTHER = "otherResources";
@@ -1,11 +0,0 @@
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
- export const BETA_SUBJECT = "betaSubject";
10
- export const SUBJECT = "subject";
11
- export const RESOURCE_COLLECTION = "resourceCollection";
@@ -1,45 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-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
- export const wordClass = {
10
- adjective: "adjective",
11
- adverb: "adverb",
12
- properNoun: "proper-noun",
13
- auxiliary: "auxiliary",
14
- complement: "complement",
15
- conjunction: "conjunction",
16
- coverb: "coverb",
17
- determiner: "determiner",
18
- interjection: "interjection",
19
- quantifier: "quantifier",
20
- marker: "marker",
21
- modalVerb: "modal-verb",
22
- measureWord: "measure-word",
23
- noun: "noun",
24
- "noun-zh": "noun-zh",
25
- nounPhrase: "noun-phrase",
26
- onomatopoeia: "onomatopoeia",
27
- particle: "particle",
28
- demonstrative: "demonstrative",
29
- personalPronoun: "personal-pronoun",
30
- preposition: "preposition",
31
- pronoun: "pronoun",
32
- questionWord: "question-word",
33
- locationWord: "location-word",
34
- suffix: "suffix",
35
- numeral: "numeral",
36
- timeWord: "time word",
37
- timeExpression: "time-expression",
38
- stativeVerb: "stative-verb",
39
- subordinatingConjunction: "subordinating-conjunction",
40
- exclamationWord: "exclamation-word",
41
- expression: "expression",
42
- verb: "verb",
43
- verbComplement: "verb-complement",
44
- verbObject: "verb-object"
45
- };
package/es/model/index.js DELETED
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) 2017-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 { contentTypes, contentTypeMapping, resourceEmbedTypeMapping } from "./ContentType";
10
- import * as subjectCategories from "./SubjectCategories";
11
- import * as subjectTypes from "./SubjectTypes";
12
- import * as wordClass from "./WordClass";
13
- const model = {
14
- contentTypes,
15
- subjectCategories,
16
- subjectTypes,
17
- contentTypeMapping,
18
- resourceEmbedTypeMapping,
19
- wordClass
20
- };
21
- export default model;
package/es/types.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2024-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 { getLicenseByAbbreviation, isCreativeCommonsLicense } from "@ndla/licenses";
10
- export const licenseAttributes = (license, lang, url) => {
11
- const licenseAbbr = getLicenseByAbbreviation(license ? license : "", lang);
12
- const licenseProps = isCreativeCommonsLicense(licenseAbbr.rights) ? {
13
- "xmlns:cc": "https://creativecommons.org/ns#",
14
- "xmlns:dct": "http://purl.org/dc/terms/",
15
- about: url ?? undefined
16
- } : {};
17
- return licenseProps;
18
- };
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) 2023-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 { supportedTranslationLanguages } from "../i18n/i18n";
10
- const ENV_REGEX = /(staging|test)\.?/;
11
- const LANGUAGE_REGEX = new RegExp(`^\\/((?:${supportedTranslationLanguages.join("|")})(?:$|\\/))`, "");
12
- const NDLA_URL = /(.*\.)?ndla.no.*/;
13
- const REPLACE_WWW = /^www\./;
14
- export const getPossiblyRelativeUrl = (url, path) => {
15
- if (!path) return url;
16
- // If url is a mailto link, return url as is.
17
- if (url.startsWith("mailto:")) return url;
18
- // If not on NDLA, or if url is not a NDLA url, return url as is
19
- if (!NDLA_URL.test(url) || !NDLA_URL.test(path)) return url;
20
- //Remove environment info
21
- const urlObj = new URL(url.replace(ENV_REGEX, ""));
22
- const pathObj = new URL(path.replace(ENV_REGEX, ""));
23
- // If the host is the same, return the relative path
24
- if (urlObj.hostname.replace(REPLACE_WWW, "") === pathObj.hostname.replace(REPLACE_WWW, "")) {
25
- // Replace the language part of the url with the language part of the path
26
- // Keep the search params if they exist
27
- const search = urlObj.search;
28
- // If the path language part does not exist, remove it.
29
- const urlMatch = urlObj.pathname.match(LANGUAGE_REGEX);
30
- const pathMatch = pathObj.pathname.match(LANGUAGE_REGEX);
31
- if (urlMatch?.[1] && urlMatch?.[1] !== pathMatch?.[1]) {
32
- return `${urlObj.pathname.replace(urlMatch[1], pathMatch?.[1] || "")}${search}`;
33
- }
34
- return `${urlObj.pathname}${search}`;
35
- }
36
- return url;
37
- };