@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.
- package/lib/i18n/index.d.ts +1 -1
- package/lib/i18n/useComponentTranslations.d.ts +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/locale/messages-en.d.ts +34 -0
- package/lib/locale/messages-nb.d.ts +34 -0
- package/lib/locale/messages-nn.d.ts +34 -0
- package/lib/locale/messages-se.d.ts +34 -0
- package/package.json +6 -5
- package/src/Article/ArticleByline.tsx +1 -1
- package/src/i18n/index.ts +1 -0
- package/src/i18n/useComponentTranslations.ts +36 -1
- package/src/index.ts +1 -0
- package/src/locale/messages-en.ts +34 -0
- package/src/locale/messages-nb.ts +34 -0
- package/src/locale/messages-nn.ts +34 -0
- package/src/locale/messages-se.ts +34 -0
- package/es/Article/Article.js +0 -199
- package/es/Article/ArticleByline.js +0 -182
- package/es/Article/ArticleFootNotes.js +0 -60
- package/es/Article/index.js +0 -11
- package/es/AudioPlayer/AudioPlayer.js +0 -218
- package/es/AudioPlayer/Controls.js +0 -332
- package/es/AudioPlayer/SpeechControl.js +0 -56
- package/es/AudioPlayer/index.js +0 -10
- package/es/Breadcrumb/Breadcrumb.js +0 -60
- package/es/Breadcrumb/BreadcrumbItem.js +0 -62
- package/es/Breadcrumb/HomeBreadcrumb.js +0 -77
- package/es/Breadcrumb/index.js +0 -11
- package/es/CampaignBlock/CampaignBlock.js +0 -180
- package/es/CampaignBlock/index.js +0 -9
- package/es/CodeBlock/CodeBlock.js +0 -35
- package/es/CodeBlock/codeLanguageOptions.js +0 -84
- package/es/CodeBlock/index.js +0 -10
- package/es/Concept/Concept.js +0 -72
- package/es/ContactBlock/ContactBlock.js +0 -199
- package/es/ContactBlock/index.js +0 -9
- package/es/ContentTypeBadge/ContentTypeBadge.js +0 -50
- package/es/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -32
- package/es/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -32
- package/es/ContentTypeHero/ContentTypeHero.js +0 -50
- package/es/ContentTypeHero/index.js +0 -9
- package/es/CopyParagraphButton/CopyParagraphButton.js +0 -83
- package/es/CopyParagraphButton/index.js +0 -11
- package/es/Embed/AudioEmbed.js +0 -76
- package/es/Embed/BrightcoveEmbed.js +0 -133
- package/es/Embed/CodeEmbed.js +0 -79
- package/es/Embed/ConceptEmbed.js +0 -123
- package/es/Embed/ConceptInlineTriggerButton.js +0 -45
- package/es/Embed/ContentLinkEmbed.js +0 -51
- package/es/Embed/CopyrightEmbed.js +0 -33
- package/es/Embed/EmbedErrorPlaceholder.js +0 -58
- package/es/Embed/EmbedWrapper.js +0 -51
- package/es/Embed/ExternalEmbed.js +0 -74
- package/es/Embed/FootnoteEmbed.js +0 -44
- package/es/Embed/GlossEmbed.js +0 -80
- package/es/Embed/H5pEmbed.js +0 -61
- package/es/Embed/IframeEmbed.js +0 -93
- package/es/Embed/ImageEmbed.js +0 -238
- package/es/Embed/InlineTriggerButton.js +0 -37
- package/es/Embed/RelatedContentEmbed.js +0 -55
- package/es/Embed/UnknownEmbed.js +0 -31
- package/es/Embed/UuDisclaimerEmbed.js +0 -88
- package/es/Embed/index.js +0 -25
- package/es/Embed/types.js +0 -1
- package/es/ErrorMessage/ErrorMessage.js +0 -95
- package/es/ErrorMessage/index.js +0 -10
- package/es/FactBox/FactBox.js +0 -177
- package/es/FactBox/index.js +0 -10
- package/es/FileList/File.js +0 -101
- package/es/FileList/FileList.js +0 -47
- package/es/FileList/PdfFile.js +0 -50
- package/es/FileList/index.js +0 -11
- package/es/Gloss/Gloss.js +0 -175
- package/es/Gloss/GlossExample.js +0 -64
- package/es/Gloss/index.js +0 -10
- package/es/Grid/Grid.js +0 -94
- package/es/Grid/GridParallaxItem.js +0 -32
- package/es/Grid/index.js +0 -10
- package/es/KeyFigure/KeyFigure.js +0 -63
- package/es/KeyFigure/index.js +0 -9
- package/es/LicenseByline/EmbedByline.js +0 -212
- package/es/LicenseByline/LicenseLink.js +0 -56
- package/es/LicenseByline/index.js +0 -10
- package/es/LinkBlock/LinkBlock.js +0 -103
- package/es/LinkBlock/LinkBlockSection.js +0 -35
- package/es/LinkBlock/index.js +0 -10
- package/es/Pitch/Pitch.js +0 -83
- package/es/Pitch/index.js +0 -9
- package/es/RelatedArticleList/RelatedArticleList.js +0 -135
- package/es/RelatedArticleList/index.js +0 -11
- package/es/ResourceBox/ResourceBox.js +0 -99
- package/es/ResourceBox/index.js +0 -10
- package/es/TagSelector/TagSelector.js +0 -143
- package/es/ZendeskButton/ZendeskButton.js +0 -55
- package/es/i18n/formatNestedMessages.js +0 -25
- package/es/i18n/i18n.js +0 -35
- package/es/i18n/index.js +0 -11
- package/es/i18n/useComponentTranslations.js +0 -164
- package/es/index.js +0 -45
- package/es/locale/messages-en.js +0 -428
- package/es/locale/messages-nb.js +0 -428
- package/es/locale/messages-nn.js +0 -428
- package/es/locale/messages-se.js +0 -428
- package/es/model/ContentType.js +0 -68
- package/es/model/SubjectCategories.js +0 -12
- package/es/model/SubjectTypes.js +0 -11
- package/es/model/WordClass.js +0 -45
- package/es/model/index.js +0 -21
- package/es/types.js +0 -1
- package/es/utils/licenseAttributes.js +0 -18
- package/es/utils/relativeUrl.js +0 -37
- package/lib/Article/Article.js +0 -207
- package/lib/Article/ArticleByline.js +0 -189
- package/lib/Article/ArticleFootNotes.js +0 -67
- package/lib/Article/index.js +0 -68
- package/lib/AudioPlayer/AudioPlayer.js +0 -224
- package/lib/AudioPlayer/Controls.js +0 -338
- package/lib/AudioPlayer/SpeechControl.js +0 -62
- package/lib/AudioPlayer/index.js +0 -16
- package/lib/Breadcrumb/Breadcrumb.js +0 -67
- package/lib/Breadcrumb/BreadcrumbItem.js +0 -68
- package/lib/Breadcrumb/HomeBreadcrumb.js +0 -84
- package/lib/Breadcrumb/index.js +0 -23
- package/lib/CampaignBlock/CampaignBlock.js +0 -187
- package/lib/CampaignBlock/index.js +0 -13
- package/lib/CodeBlock/CodeBlock.js +0 -41
- package/lib/CodeBlock/codeLanguageOptions.js +0 -90
- package/lib/CodeBlock/index.js +0 -20
- package/lib/Concept/Concept.js +0 -78
- package/lib/ContactBlock/ContactBlock.js +0 -206
- package/lib/ContactBlock/index.js +0 -18
- package/lib/ContentTypeBadge/ContentTypeBadge.js +0 -57
- package/lib/ContentTypeBlockQuote/ContentTypeBlockQuote.js +0 -38
- package/lib/ContentTypeFramedContent/ContentTypeFramedContent.js +0 -38
- package/lib/ContentTypeHero/ContentTypeHero.js +0 -57
- package/lib/ContentTypeHero/index.js +0 -12
- package/lib/CopyParagraphButton/CopyParagraphButton.js +0 -89
- package/lib/CopyParagraphButton/index.js +0 -22
- package/lib/Embed/AudioEmbed.js +0 -84
- package/lib/Embed/BrightcoveEmbed.js +0 -142
- package/lib/Embed/CodeEmbed.js +0 -86
- package/lib/Embed/ConceptEmbed.js +0 -131
- package/lib/Embed/ConceptInlineTriggerButton.js +0 -51
- package/lib/Embed/ContentLinkEmbed.js +0 -57
- package/lib/Embed/CopyrightEmbed.js +0 -39
- package/lib/Embed/EmbedErrorPlaceholder.js +0 -64
- package/lib/Embed/EmbedWrapper.js +0 -57
- package/lib/Embed/ExternalEmbed.js +0 -81
- package/lib/Embed/FootnoteEmbed.js +0 -50
- package/lib/Embed/GlossEmbed.js +0 -88
- package/lib/Embed/H5pEmbed.js +0 -68
- package/lib/Embed/IframeEmbed.js +0 -100
- package/lib/Embed/ImageEmbed.js +0 -248
- package/lib/Embed/InlineTriggerButton.js +0 -43
- package/lib/Embed/RelatedContentEmbed.js +0 -61
- package/lib/Embed/UnknownEmbed.js +0 -37
- package/lib/Embed/UuDisclaimerEmbed.js +0 -94
- package/lib/Embed/index.js +0 -150
- package/lib/Embed/types.js +0 -5
- package/lib/ErrorMessage/ErrorMessage.js +0 -101
- package/lib/ErrorMessage/index.js +0 -16
- package/lib/FactBox/FactBox.js +0 -184
- package/lib/FactBox/index.js +0 -16
- package/lib/FileList/File.js +0 -108
- package/lib/FileList/FileList.js +0 -54
- package/lib/FileList/PdfFile.js +0 -57
- package/lib/FileList/index.js +0 -44
- package/lib/Gloss/Gloss.js +0 -181
- package/lib/Gloss/GlossExample.js +0 -70
- package/lib/Gloss/index.js +0 -20
- package/lib/Grid/Grid.js +0 -101
- package/lib/Grid/GridParallaxItem.js +0 -39
- package/lib/Grid/index.js +0 -19
- package/lib/KeyFigure/KeyFigure.js +0 -70
- package/lib/KeyFigure/index.js +0 -13
- package/lib/LicenseByline/EmbedByline.js +0 -220
- package/lib/LicenseByline/LicenseLink.js +0 -62
- package/lib/LicenseByline/index.js +0 -19
- package/lib/LinkBlock/LinkBlock.js +0 -110
- package/lib/LinkBlock/LinkBlockSection.js +0 -41
- package/lib/LinkBlock/index.js +0 -20
- package/lib/Pitch/Pitch.js +0 -91
- package/lib/Pitch/index.js +0 -12
- package/lib/RelatedArticleList/RelatedArticleList.js +0 -143
- package/lib/RelatedArticleList/index.js +0 -21
- package/lib/ResourceBox/ResourceBox.js +0 -106
- package/lib/ResourceBox/index.js +0 -13
- package/lib/TagSelector/TagSelector.js +0 -150
- package/lib/ZendeskButton/ZendeskButton.js +0 -61
- package/lib/i18n/formatNestedMessages.js +0 -32
- package/lib/i18n/i18n.js +0 -41
- package/lib/i18n/index.js +0 -62
- package/lib/i18n/useComponentTranslations.js +0 -176
- package/lib/index.js +0 -593
- package/lib/locale/messages-en.js +0 -435
- package/lib/locale/messages-nb.js +0 -435
- package/lib/locale/messages-nn.js +0 -435
- package/lib/locale/messages-se.js +0 -435
- package/lib/model/ContentType.js +0 -74
- package/lib/model/SubjectCategories.js +0 -18
- package/lib/model/SubjectTypes.js +0 -17
- package/lib/model/WordClass.js +0 -51
- package/lib/model/index.js +0 -28
- package/lib/types.js +0 -5
- package/lib/utils/licenseAttributes.js +0 -25
- package/lib/utils/relativeUrl.js +0 -44
package/es/locale/messages-se.js
DELETED
|
@@ -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;
|
package/es/model/ContentType.js
DELETED
|
@@ -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";
|
package/es/model/SubjectTypes.js
DELETED
|
@@ -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";
|
package/es/model/WordClass.js
DELETED
|
@@ -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
|
-
};
|
package/es/utils/relativeUrl.js
DELETED
|
@@ -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
|
-
};
|