@ndla/ui 49.0.1 → 49.0.4

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 (37) hide show
  1. package/es/Gloss/Gloss.js +17 -25
  2. package/es/LanguageSelector/LanguageSelector.js +8 -6
  3. package/es/ResourceGroup/ResourceItem.js +11 -9
  4. package/es/Table/Table.js +10 -10
  5. package/es/all.css +1 -1
  6. package/es/locale/messages-en.js +26 -2
  7. package/es/locale/messages-nb.js +28 -4
  8. package/es/locale/messages-nn.js +30 -6
  9. package/es/locale/messages-se.js +24 -0
  10. package/es/locale/messages-sma.js +27 -3
  11. package/lib/Gloss/Gloss.js +17 -25
  12. package/lib/LanguageSelector/LanguageSelector.d.ts +2 -1
  13. package/lib/LanguageSelector/LanguageSelector.js +8 -6
  14. package/lib/ResourceGroup/ResourceItem.d.ts +2 -1
  15. package/lib/ResourceGroup/ResourceItem.js +11 -9
  16. package/lib/Table/Table.js +10 -10
  17. package/lib/all.css +1 -1
  18. package/lib/locale/messages-en.d.ts +24 -0
  19. package/lib/locale/messages-en.js +26 -2
  20. package/lib/locale/messages-nb.d.ts +24 -0
  21. package/lib/locale/messages-nb.js +28 -4
  22. package/lib/locale/messages-nn.d.ts +24 -0
  23. package/lib/locale/messages-nn.js +30 -6
  24. package/lib/locale/messages-se.d.ts +24 -0
  25. package/lib/locale/messages-se.js +24 -0
  26. package/lib/locale/messages-sma.d.ts +24 -0
  27. package/lib/locale/messages-sma.js +27 -3
  28. package/package.json +18 -18
  29. package/src/Gloss/Gloss.tsx +21 -8
  30. package/src/LanguageSelector/LanguageSelector.tsx +9 -2
  31. package/src/ResourceGroup/ResourceItem.tsx +8 -1
  32. package/src/Table/Table.tsx +1 -0
  33. package/src/locale/messages-en.ts +26 -2
  34. package/src/locale/messages-nb.ts +28 -4
  35. package/src/locale/messages-nn.ts +30 -6
  36. package/src/locale/messages-se.ts +25 -0
  37. package/src/locale/messages-sma.ts +27 -3
@@ -241,6 +241,17 @@ declare const messages: {
241
241
  option1: string;
242
242
  option2: string;
243
243
  };
244
+ modalTexts: {
245
+ title: string;
246
+ uploadSection: {
247
+ title: string;
248
+ subTitle: string;
249
+ };
250
+ fileName: string;
251
+ fileTypes: string;
252
+ savePicture: string;
253
+ deletePicture: string;
254
+ };
244
255
  };
245
256
  resource: {
246
257
  add: string;
@@ -827,6 +838,7 @@ declare const messages: {
827
838
  files: string;
828
839
  embedlink: string;
829
840
  concept: string;
841
+ gloss: string;
830
842
  podcast: string;
831
843
  other: string;
832
844
  };
@@ -901,6 +913,18 @@ declare const messages: {
901
913
  hasCopiedTitle: string;
902
914
  };
903
915
  };
916
+ gloss: {
917
+ heading: string;
918
+ description: string;
919
+ rules: string;
920
+ title: string;
921
+ embedlink: {
922
+ heading: string;
923
+ description: string;
924
+ copyTitle: string;
925
+ hasCopiedTitle: string;
926
+ };
927
+ };
904
928
  files: {
905
929
  heading: string;
906
930
  description: string;
@@ -507,6 +507,7 @@ var messages = _objectSpread(_objectSpread({
507
507
  files: 'Files',
508
508
  embedlink: 'Embedded link',
509
509
  concept: 'Concepts',
510
+ gloss: 'Glosses',
510
511
  podcast: 'Podcast',
511
512
  other: 'Other content'
512
513
  },
@@ -581,6 +582,18 @@ var messages = _objectSpread(_objectSpread({
581
582
  hasCopiedTitle: 'Embed link copied'
582
583
  }
583
584
  },
585
+ gloss: {
586
+ heading: 'How to reuse gloss content',
587
+ description: 'Remember that built-in content might have a different license than the gloss text',
588
+ rules: 'Rules for use of gloss:',
589
+ title: 'Title',
590
+ embedlink: {
591
+ heading: 'How to show the gloss in other content',
592
+ description: 'This url shows the gloss without menu and footer',
593
+ copyTitle: 'Copy embed link',
594
+ hasCopiedTitle: 'Embed link copied'
595
+ }
596
+ },
584
597
  files: {
585
598
  heading: 'How to reuse files',
586
599
  description: 'Remember to copy the text to be attached to the file where you use it.',
@@ -988,8 +1001,8 @@ var messages = _objectSpread(_objectSpread({
988
1001
  heading: 'Text version',
989
1002
  close: 'Close text version'
990
1003
  },
991
- readMoreDescriptionLabel: 'show more',
992
- readLessDescriptionLabel: 'show less'
1004
+ readMoreDescriptionLabel: 'Show more',
1005
+ readLessDescriptionLabel: 'Show less'
993
1006
  },
994
1007
  h5p: {
995
1008
  reuse: 'Use H5P',
@@ -1251,6 +1264,17 @@ var messages = _objectSpread(_objectSpread({
1251
1264
  radioButtonText: {
1252
1265
  option1: 'Show my name when I share a folder',
1253
1266
  option2: 'Do not show my name when I share a folder'
1267
+ },
1268
+ modalTexts: {
1269
+ title: 'Upload a new profile picture',
1270
+ uploadSection: {
1271
+ title: 'Drag and drop',
1272
+ subTitle: 'or press to upload picture'
1273
+ },
1274
+ fileName: 'Uploaded file:',
1275
+ fileTypes: 'Accepted file types: PNG, JPG (Max 5MB)',
1276
+ savePicture: 'Save profile picture',
1277
+ deletePicture: 'Delete profile picture'
1254
1278
  }
1255
1279
  },
1256
1280
  resource: {
@@ -241,6 +241,17 @@ declare const messages: {
241
241
  option1: string;
242
242
  option2: string;
243
243
  };
244
+ modalTexts: {
245
+ title: string;
246
+ uploadSection: {
247
+ title: string;
248
+ subTitle: string;
249
+ };
250
+ fileName: string;
251
+ fileTypes: string;
252
+ savePicture: string;
253
+ deletePicture: string;
254
+ };
244
255
  };
245
256
  resource: {
246
257
  add: string;
@@ -842,6 +853,7 @@ declare const messages: {
842
853
  files: string;
843
854
  embedlink: string;
844
855
  concept: string;
856
+ gloss: string;
845
857
  podcast: string;
846
858
  other: string;
847
859
  };
@@ -916,6 +928,18 @@ declare const messages: {
916
928
  hasCopiedTitle: string;
917
929
  };
918
930
  };
931
+ gloss: {
932
+ heading: string;
933
+ description: string;
934
+ rules: string;
935
+ title: string;
936
+ embedlink: {
937
+ heading: string;
938
+ description: string;
939
+ copyTitle: string;
940
+ hasCopiedTitle: string;
941
+ };
942
+ };
919
943
  files: {
920
944
  heading: string;
921
945
  description: string;
@@ -520,6 +520,7 @@ var messages = _objectSpread(_objectSpread({
520
520
  files: 'Filer',
521
521
  embedlink: 'Innbyggingslenke',
522
522
  concept: 'Forklaringer',
523
+ gloss: 'Gloser',
523
524
  podcast: 'Podkast',
524
525
  other: 'Annet innhold'
525
526
  },
@@ -594,6 +595,18 @@ var messages = _objectSpread(_objectSpread({
594
595
  hasCopiedTitle: 'Innbyggingslenke kopiert'
595
596
  }
596
597
  },
598
+ gloss: {
599
+ heading: 'Slik gjenbruker du gloser',
600
+ description: 'Husk at innebygd innhold i en glose kan ha en annen lisens enn selve gloseteksten',
601
+ rules: 'Regler for bruk av glose:',
602
+ title: 'Tittel',
603
+ embedlink: {
604
+ heading: 'Slik viser du glosen i annet innhold',
605
+ description: 'Denne lenken viser glosen uten kontekst (meny og bunntekst)',
606
+ copyTitle: 'Kopier innbyggingslenke',
607
+ hasCopiedTitle: 'Innbyggingslenke kopiert'
608
+ }
609
+ },
597
610
  files: {
598
611
  heading: 'Slik gjenbruker du filer',
599
612
  description: 'Husk å kopier teksten som skal legges ved filen der du bruker den.',
@@ -973,11 +986,11 @@ var messages = _objectSpread(_objectSpread({
973
986
  download: 'Last ned lydfil',
974
987
  reuse: 'Bruk lydfil',
975
988
  error: {
976
- url: 'Feil ved lasting av lydfila.',
989
+ url: 'Feil ved lasting av lydfil.',
977
990
  caption: 'Beklager, en feil oppstod ved lasting av lydfil.'
978
991
  },
979
992
  controls: {
980
- forward15sec: 'Spol 15 sekunder frem',
993
+ forward15sec: 'Spol 15 sekunder fram',
981
994
  rewind15sec: 'Spol 15 sekunder tilbake',
982
995
  selectSpeed: 'Velg avspillingshastighet',
983
996
  adjustVolume: 'Endre volum'
@@ -986,8 +999,8 @@ var messages = _objectSpread(_objectSpread({
986
999
  heading: 'Tekstversjon',
987
1000
  close: 'Lukk tekstversjon'
988
1001
  },
989
- readMoreDescriptionLabel: 'vis mer',
990
- readLessDescriptionLabel: 'vis mindre'
1002
+ readMoreDescriptionLabel: 'Vis mer',
1003
+ readLessDescriptionLabel: 'Vis mindre'
991
1004
  },
992
1005
  h5p: {
993
1006
  reuse: 'Bruk H5P',
@@ -1249,6 +1262,17 @@ var messages = _objectSpread(_objectSpread({
1249
1262
  radioButtonText: {
1250
1263
  option1: 'Vis navnet mitt når jeg deler en mappe',
1251
1264
  option2: 'Ikke vis navnet mitt når jeg deler mappe'
1265
+ },
1266
+ modalTexts: {
1267
+ title: 'Last opp nytt profilbilde',
1268
+ uploadSection: {
1269
+ title: 'Dra og slipp',
1270
+ subTitle: 'eller trykk for å laste opp bilde'
1271
+ },
1272
+ fileName: 'Opplastet fil:',
1273
+ fileTypes: 'Godkjente filtyper: PNG, JPG (Maks 5MB)',
1274
+ savePicture: 'Lagre profilbilde',
1275
+ deletePicture: 'Slett profilbilde'
1252
1276
  }
1253
1277
  },
1254
1278
  resource: {
@@ -241,6 +241,17 @@ declare const messages: {
241
241
  option1: string;
242
242
  option2: string;
243
243
  };
244
+ modalTexts: {
245
+ title: string;
246
+ uploadSection: {
247
+ title: string;
248
+ subTitle: string;
249
+ };
250
+ fileName: string;
251
+ fileTypes: string;
252
+ savePicture: string;
253
+ deletePicture: string;
254
+ };
244
255
  };
245
256
  resource: {
246
257
  add: string;
@@ -842,6 +853,7 @@ declare const messages: {
842
853
  files: string;
843
854
  embedlink: string;
844
855
  concept: string;
856
+ gloss: string;
845
857
  podcast: string;
846
858
  other: string;
847
859
  };
@@ -916,6 +928,18 @@ declare const messages: {
916
928
  rules: string;
917
929
  title: string;
918
930
  };
931
+ gloss: {
932
+ embedlink: {
933
+ heading: string;
934
+ description: string;
935
+ copyTitle: string;
936
+ hasCopiedTitle: string;
937
+ };
938
+ heading: string;
939
+ description: string;
940
+ rules: string;
941
+ title: string;
942
+ };
919
943
  files: {
920
944
  heading: string;
921
945
  description: string;
@@ -520,6 +520,7 @@ var messages = _objectSpread(_objectSpread({
520
520
  files: 'Filer',
521
521
  embedlink: 'Innbyggingslenke',
522
522
  concept: 'Forklaringar',
523
+ gloss: 'Glosar',
523
524
  podcast: 'Podkast',
524
525
  other: 'Anna innhald'
525
526
  },
@@ -594,6 +595,18 @@ var messages = _objectSpread(_objectSpread({
594
595
  rules: 'Reglar for bruk av forklaring:',
595
596
  title: 'Tittel'
596
597
  },
598
+ gloss: {
599
+ embedlink: {
600
+ heading: 'Slik viser du glosen i anna innhald',
601
+ description: 'Denne lenka viser glosen utan kontekst (meny og botntekst)',
602
+ copyTitle: 'Kopier innbyggingslenke',
603
+ hasCopiedTitle: 'Innbyggingslenke kopiert'
604
+ },
605
+ heading: 'Slik gjenbruker du gloser',
606
+ description: 'Husk at innebygd innhald i ei glose kan ha ein anna lisens enn sjølve gloseteksten',
607
+ rules: 'Regler for bruk av glose:',
608
+ title: 'Tittel'
609
+ },
597
610
  files: {
598
611
  heading: 'Slik gjenbruker du filer',
599
612
  description: 'Hugs å kopiere teksten som skal leggjast ved fila der du bruker ho.',
@@ -968,17 +981,17 @@ var messages = _objectSpread(_objectSpread({
968
981
  }
969
982
  },
970
983
  audio: {
971
- play: 'Spill av',
984
+ play: 'Spel av',
972
985
  pause: 'Pause',
973
986
  download: 'Last ned lydfil',
974
987
  reuse: 'Bruk lydfil',
975
988
  error: {
976
- url: 'Feil ved lasting av lydfila.',
989
+ url: 'Feil ved lasting av lydfil.',
977
990
  caption: 'Orsak, ein feil oppstod ved lasting av lydfil.'
978
991
  },
979
992
  controls: {
980
- forward15sec: 'Spol 15 sekundar fram',
981
- rewind15sec: 'Spol 15 sekundar tilbake',
993
+ forward15sec: 'Spol 15 sekund fram',
994
+ rewind15sec: 'Spol 15 sekund tilbake',
982
995
  selectSpeed: 'Velg avspelingshastigheit',
983
996
  adjustVolume: 'Endre volum'
984
997
  },
@@ -986,8 +999,8 @@ var messages = _objectSpread(_objectSpread({
986
999
  heading: 'Tekstversjon',
987
1000
  close: 'Lukk tekstversjon'
988
1001
  },
989
- readMoreDescriptionLabel: 'vis meir',
990
- readLessDescriptionLabel: 'vis mindre'
1002
+ readMoreDescriptionLabel: 'Vis meir',
1003
+ readLessDescriptionLabel: 'Vis mindre'
991
1004
  },
992
1005
  h5p: {
993
1006
  reuse: 'Bruk H5P',
@@ -1249,6 +1262,17 @@ var messages = _objectSpread(_objectSpread({
1249
1262
  radioButtonText: {
1250
1263
  option1: 'Vis namnet mitt når eg deler ei mappe',
1251
1264
  option2: 'Ikkje vis namnet mitt når eg deler mappe'
1265
+ },
1266
+ modalTexts: {
1267
+ title: 'Last opp nytt profilbilete',
1268
+ uploadSection: {
1269
+ title: 'Dra og slepp',
1270
+ subTitle: 'eller trykk for å lasta opp bilete'
1271
+ },
1272
+ fileName: 'Opplasta fil:',
1273
+ fileTypes: 'Godkjente filtyper: PNG, JPG (Maks 5MB)',
1274
+ savePicture: 'Lagre profilbilete',
1275
+ deletePicture: 'Slett profilbilete'
1252
1276
  }
1253
1277
  },
1254
1278
  resource: {
@@ -241,6 +241,17 @@ declare const messages: {
241
241
  option1: string;
242
242
  option2: string;
243
243
  };
244
+ modalTexts: {
245
+ title: string;
246
+ uploadSection: {
247
+ title: string;
248
+ subTitle: string;
249
+ };
250
+ fileName: string;
251
+ fileTypes: string;
252
+ savePicture: string;
253
+ deletePicture: string;
254
+ };
244
255
  };
245
256
  resource: {
246
257
  add: string;
@@ -842,6 +853,7 @@ declare const messages: {
842
853
  files: string;
843
854
  embedlink: string;
844
855
  concept: string;
856
+ gloss: string;
845
857
  podcast: string;
846
858
  other: string;
847
859
  };
@@ -916,6 +928,18 @@ declare const messages: {
916
928
  hasCopiedTitle: string;
917
929
  };
918
930
  };
931
+ gloss: {
932
+ heading: string;
933
+ description: string;
934
+ rules: string;
935
+ title: string;
936
+ embedlink: {
937
+ heading: string;
938
+ description: string;
939
+ copyTitle: string;
940
+ hasCopiedTitle: string;
941
+ };
942
+ };
919
943
  files: {
920
944
  heading: string;
921
945
  description: string;
@@ -520,6 +520,7 @@ var messages = _objectSpread(_objectSpread({
520
520
  files: 'Fiillat',
521
521
  embedlink: 'Sisahuksenliŋka',
522
522
  concept: 'Čilgehusat',
523
+ gloss: 'Gloser',
523
524
  podcast: 'Podkásta',
524
525
  other: 'Eará sisdoallu'
525
526
  },
@@ -594,6 +595,18 @@ var messages = _objectSpread(_objectSpread({
594
595
  hasCopiedTitle: 'Sisahuksenliŋka máŋgejuvvon'
595
596
  }
596
597
  },
598
+ gloss: {
599
+ heading: 'Movt geavahit ođđasit dajaldagaid',
600
+ description: 'Muitte ahte sisdoalus mii lea vuojuhuvvon ovtta gihppagii sáhttá leat eará liseansa go dušše jietnadat.',
601
+ rules: 'Glossa geavaheami njuolggadusat:',
602
+ title: 'Namahus',
603
+ embedlink: {
604
+ heading: 'Čájet jietnadaga eará sisdoaluin',
605
+ description: 'Dát liŋka čájeha teavstta konteavstta haga (fállu ja juolgeteaksta)',
606
+ copyTitle: 'Máŋge sisačálihanliŋkka',
607
+ hasCopiedTitle: 'Sajáiduhttinliŋka mángejuvvon'
608
+ }
609
+ },
597
610
  files: {
598
611
  heading: 'Ná geavahat fiillaid ođđasit',
599
612
  description: 'Muitte máŋget teavsttaid mat galget čuovvut fiillaid doppe gos dat geavahuvvet.',
@@ -1249,6 +1262,17 @@ var messages = _objectSpread(_objectSpread({
1249
1262
  radioButtonText: {
1250
1263
  option1: 'Čájet mu nama máhpa juohkkedettiin',
1251
1264
  option2: 'Ale čájet mu nama máhpa juohkkedettiin'
1265
+ },
1266
+ modalTexts: {
1267
+ title: 'Viečča ođđa profiila gova',
1268
+ uploadSection: {
1269
+ title: 'Gease ja luoitte',
1270
+ subTitle: 'dahje coahkkal vai viežžat gova'
1271
+ },
1272
+ fileName: 'Sáddejuvvon fiila:',
1273
+ fileTypes: 'Dohkkehuvvon fiilašlájat: PNG, JPG (Máksá 5MB)',
1274
+ savePicture: 'Vurke profiilagova',
1275
+ deletePicture: 'Sihko profiilagova'
1252
1276
  }
1253
1277
  },
1254
1278
  resource: {
@@ -241,6 +241,17 @@ declare const messages: {
241
241
  option1: string;
242
242
  option2: string;
243
243
  };
244
+ modalTexts: {
245
+ title: string;
246
+ uploadSection: {
247
+ title: string;
248
+ subTitle: string;
249
+ };
250
+ fileName: string;
251
+ fileTypes: string;
252
+ savePicture: string;
253
+ deletePicture: string;
254
+ };
244
255
  };
245
256
  resource: {
246
257
  add: string;
@@ -842,6 +853,7 @@ declare const messages: {
842
853
  files: string;
843
854
  embedlink: string;
844
855
  concept: string;
856
+ gloss: string;
845
857
  podcast: string;
846
858
  other: string;
847
859
  };
@@ -916,6 +928,18 @@ declare const messages: {
916
928
  hasCopiedTitle: string;
917
929
  };
918
930
  };
931
+ gloss: {
932
+ heading: string;
933
+ description: string;
934
+ rules: string;
935
+ title: string;
936
+ embedlink: {
937
+ heading: string;
938
+ description: string;
939
+ copyTitle: string;
940
+ hasCopiedTitle: string;
941
+ };
942
+ };
919
943
  files: {
920
944
  heading: string;
921
945
  description: string;
@@ -520,6 +520,7 @@ var messages = _objectSpread(_objectSpread({
520
520
  files: 'Fijlh',
521
521
  embedlink: 'Sïjsebïejemesvaalhtese',
522
522
  concept: 'Buerkiestimmieh',
523
+ gloss: 'Glosa',
523
524
  podcast: 'Podkast',
524
525
  other: 'Jeatjah sisvege'
525
526
  },
@@ -594,6 +595,18 @@ var messages = _objectSpread(_objectSpread({
594
595
  hasCopiedTitle: 'Innbyggingslenke kopiert'
595
596
  }
596
597
  },
598
+ gloss: {
599
+ heading: 'Naemhtie gïelem ikth vielie nåhtadidh',
600
+ description: 'Mujhtieh sisvege aktene raajesisnie maahta jeatjah lisensem utnedh enn jïjtjehke raajesisnie',
601
+ rules: 'Njoelkedassh guktie diejvesem nåhtadidh:',
602
+ title: 'Tihtele',
603
+ embedlink: {
604
+ heading: 'Naemhtie gïelem jeatjah sisvegisnie vuesehte',
605
+ description: 'Daate lïenghke vuesehte tjoejh konteksten namhtah (meny jïh nueliekapihtele)',
606
+ copyTitle: 'Kopijerh svaalhtesem sïjse loggedh',
607
+ hasCopiedTitle: 'Bigkeme svaalhtese kopijeradamme'
608
+ }
609
+ },
597
610
  files: {
598
611
  heading: 'Slik gjenbruker du filer',
599
612
  description: 'Mujhtieh kopijem vaeltedh teeksteste mij edtja fijlen baalte bïejesovvedh desnie gusnie dam nuhtjh.',
@@ -986,8 +999,8 @@ var messages = _objectSpread(_objectSpread({
986
999
  heading: 'Teeksteversjovne',
987
1000
  close: 'Dahph teeksteversjovnem'
988
1001
  },
989
- readMoreDescriptionLabel: 'vis mer',
990
- readLessDescriptionLabel: 'vis mindre'
1002
+ readMoreDescriptionLabel: 'Vis mer',
1003
+ readLessDescriptionLabel: 'Vis mindre'
991
1004
  },
992
1005
  h5p: {
993
1006
  reuse: 'Bruk H5P',
@@ -1249,6 +1262,17 @@ var messages = _objectSpread(_objectSpread({
1249
1262
  radioButtonText: {
1250
1263
  option1: 'Vuesehth mov nommem gosse maabpam juekieh',
1251
1264
  option2: 'Aellieh mov nommem vuesehth gosse maabpam juekieh'
1265
+ },
1266
+ modalTexts: {
1267
+ title: 'Orre profijleguvviem bæjhkoehtidh',
1268
+ uploadSection: {
1269
+ title: 'Gïesh jïh luajhth',
1270
+ subTitle: 'jallh diedtieh juktie guvviem bæjjese vaeltedh'
1271
+ },
1272
+ fileName: 'Bijjiedamme tjaatsege:',
1273
+ fileTypes: 'Nænnoestamme tjaatsegh: PNG , JPG (Maakseme 5 MB)',
1274
+ savePicture: 'Vurkehth profijleguvviem',
1275
+ deletePicture: 'Prefikse guvviem sliejhtedh'
1252
1276
  }
1253
1277
  },
1254
1278
  resource: {
@@ -1325,7 +1349,7 @@ var messages = _objectSpread(_objectSpread({
1325
1349
  concept: 'Forklaring',
1326
1350
  h5p: 'H5P',
1327
1351
  external: 'Ekstern ressurs',
1328
- gloss: 'Glose'
1352
+ gloss: 'Glosa'
1329
1353
  }
1330
1354
  },
1331
1355
  gloss: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "49.0.1",
3
+ "version": "49.0.4",
4
4
  "description": "UI component library for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -31,23 +31,23 @@
31
31
  "types"
32
32
  ],
33
33
  "dependencies": {
34
- "@ndla/accordion": "^3.0.2",
35
- "@ndla/button": "^12.0.8",
36
- "@ndla/carousel": "^4.0.10",
37
- "@ndla/core": "^4.2.4",
38
- "@ndla/dropdown-menu": "^1.0.13",
39
- "@ndla/forms": "^5.0.10",
34
+ "@ndla/accordion": "^3.0.3",
35
+ "@ndla/button": "^12.0.9",
36
+ "@ndla/carousel": "^4.0.11",
37
+ "@ndla/core": "^4.2.5",
38
+ "@ndla/dropdown-menu": "^1.0.14",
39
+ "@ndla/forms": "^5.0.11",
40
40
  "@ndla/hooks": "^2.1.1",
41
- "@ndla/icons": "^4.1.5",
41
+ "@ndla/icons": "^4.1.6",
42
42
  "@ndla/licenses": "^7.2.2",
43
- "@ndla/modal": "^5.0.7",
44
- "@ndla/notion": "^6.0.10",
45
- "@ndla/safelink": "^4.1.33",
46
- "@ndla/select": "^3.1.5",
47
- "@ndla/switch": "^1.1.19",
48
- "@ndla/tabs": "^3.1.4",
49
- "@ndla/tooltip": "^6.0.1",
50
- "@ndla/typography": "^0.2.6",
43
+ "@ndla/modal": "^5.0.8",
44
+ "@ndla/notion": "^6.0.11",
45
+ "@ndla/safelink": "^4.1.34",
46
+ "@ndla/select": "^3.1.6",
47
+ "@ndla/switch": "^1.1.20",
48
+ "@ndla/tabs": "^3.1.5",
49
+ "@ndla/tooltip": "^6.0.2",
50
+ "@ndla/typography": "^0.2.7",
51
51
  "@ndla/util": "^4.0.0",
52
52
  "@radix-ui/react-popover": "^1.0.7",
53
53
  "@radix-ui/react-radio-group": "^1.1.3",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@ndla/types-backend": "^0.2.21",
73
- "@ndla/types-embed": "^4.0.5",
73
+ "@ndla/types-embed": "^4.0.6",
74
74
  "css-loader": "^6.7.3",
75
75
  "mini-css-extract-plugin": "^2.7.5",
76
76
  "sass-loader": "^13.2.2",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "613a1b7bd697142fdcee7cca42c743f4c2431a40"
83
+ "gitHead": "7b7ae968b766e37ae17f3917e2c051a22d2eb4e5"
84
84
  }
@@ -57,18 +57,21 @@ const Wrapper = styled.div`
57
57
 
58
58
  const GlossContainer = styled.div`
59
59
  display: flex;
60
+ align-items: center;
60
61
  flex-wrap: wrap;
61
62
  gap: ${spacing.nsmall};
63
+ span {
64
+ ${fonts.sizes('16px', '24px')};
65
+ }
66
+ span[data-pinyin] {
67
+ font-style: italic;
68
+ }
62
69
  `;
63
70
 
64
71
  const GlossSpan = styled.span`
65
72
  font-weight: ${fonts.weight.bold};
66
73
  `;
67
74
 
68
- const TypeSpan = styled.span`
69
- font-style: italic;
70
- `;
71
-
72
75
  const StyledAccordionHeader = styled(AccordionHeader)`
73
76
  font-family: ${fonts.sans};
74
77
  ${fonts.sizes('16px', '24px')};
@@ -92,6 +95,9 @@ const TranslatedText = styled.span`
92
95
  font-weight: ${fonts.weight.bold};
93
96
  background-color: ${colors.background.lightBlue};
94
97
  }
98
+ &[data-pinyin] {
99
+ font-style: italic;
100
+ }
95
101
  `;
96
102
 
97
103
  const Gloss = ({ title, glossData, audio }: Props) => {
@@ -116,6 +122,7 @@ const Gloss = ({ title, glossData, audio }: Props) => {
116
122
  )}
117
123
  {glossData.transcriptions.pinyin && (
118
124
  <span
125
+ data-pinyin=""
119
126
  key={t('gloss.transcriptions.pinyin')}
120
127
  aria-label={t('gloss.transcriptions.pinyin')}
121
128
  lang={glossData.originalLanguage}
@@ -124,12 +131,12 @@ const Gloss = ({ title, glossData, audio }: Props) => {
124
131
  </span>
125
132
  )}
126
133
  {glossData.wordClass && (
127
- <TypeSpan aria-label={t('gloss.wordClass')}>{t(`wordClass.${glossData.wordClass}`)}</TypeSpan>
134
+ <span aria-label={t('gloss.wordClass')}>{t(`wordClass.${glossData.wordClass}`).toLowerCase()}</span>
128
135
  )}
129
136
  </GlossContainer>
130
137
  {audio?.src && <SpeechControl src={audio.src} title={audio.title}></SpeechControl>}
131
138
  </Wrapper>
132
- <span>{title.title}</span>
139
+ <span lang={title.language}>{title.title}</span>
133
140
  </Container>
134
141
  {glossData.examples && glossData.examples.length > 0 && (
135
142
  <AccordionRoot type="single" collapsible>
@@ -140,9 +147,15 @@ const Gloss = ({ title, glossData, audio }: Props) => {
140
147
  <div key={index}>
141
148
  {example.map((translation, innerIndex) => (
142
149
  <div key={`${index}_${innerIndex}`}>
143
- <TranslatedText data-first={innerIndex === 0}>{translation.example}</TranslatedText>
150
+ <TranslatedText data-first={innerIndex === 0} lang={translation.language}>
151
+ {translation.example}
152
+ </TranslatedText>
144
153
  {translation.transcriptions.pinyin && (
145
- <TranslatedText key={t('gloss.transcriptions.pinyin')} lang={glossData.originalLanguage}>
154
+ <TranslatedText
155
+ key={t('gloss.transcriptions.pinyin')}
156
+ data-pinyin=""
157
+ lang={glossData.originalLanguage}
158
+ >
146
159
  {translation.transcriptions?.pinyin}
147
160
  </TranslatedText>
148
161
  )}