@panoramax/web-viewer 3.2.0-develop-d9b6a472 → 3.2.0-develop-51ea182b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.2.0-develop-d9b6a472",
3
+ "version": "3.2.0-develop-51ea182b",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -17,7 +17,18 @@
17
17
  "expand_info": "Aperigu la fenestraĵon en plena paĝo",
18
18
  "show_psv": "Montri la bildspektilo",
19
19
  "show_map": "Montri la mapo",
20
- "minimize": "Maski la fenestraĵo, vu povas montri ĝin denove kun la butono en malsupra maldekstra angulo"
20
+ "minimize": "Maski la fenestraĵo, vu povas montri ĝin denove kun la butono en malsupra maldekstra angulo",
21
+ "sequence_prev": "Antaŭa foto en la sekvenco",
22
+ "sequence_more": "Pli da ludopcioj",
23
+ "sequence_speed": "Rapideco de legado",
24
+ "sequence_next": "Sekva foto en la sekvenco",
25
+ "sequence_play": "Foliumi ĉi tiun sinsekvon",
26
+ "sequence_pause": "Paŭzi la sekvenco",
27
+ "copy": "Kopii",
28
+ "copied": "Kopiita",
29
+ "error": "Ni havas problemon…",
30
+ "error_click": "Alkliku por kontinui",
31
+ "error_retry": "Bonvolu reprovi poste"
21
32
  },
22
33
  "maplibre": {
23
34
  "GeolocateControl.FindMyLocation": "Trovi mian pozicion",
package/src/utils/I18n.js CHANGED
@@ -3,11 +3,14 @@ import T_en from "../translations/en.json";
3
3
  import T_es from "../translations/es.json";
4
4
  import T_fr from "../translations/fr.json";
5
5
  import T_hu from "../translations/hu.json";
6
+ import T_it from "../translations/it.json";
7
+ import T_pl from "../translations/pl.json";
6
8
  import T_zh_Hant from "../translations/zh_Hant.json";
7
9
 
8
10
  const FALLBACK_LOCALE = "en";
9
11
  const TRANSLATIONS = {
10
- "de": T_de, "en": T_en, "es": T_es, "fr": T_fr, "hu": T_hu, "zh_Hant": T_zh_Hant,
12
+ "de": T_de, "en": T_en, "es": T_es, "fr": T_fr,
13
+ "hu": T_hu, "it": T_it, "pl": T_pl, "zh_Hant": T_zh_Hant,
11
14
  };
12
15
 
13
16
  /**
@@ -73,10 +76,13 @@ export function getTranslations(lang = "") {
73
76
 
74
77
  // Merge labels to avoid missing ones
75
78
  if(preferedTr) {
76
- Object.entries(preferedTr).forEach(([k1, v1]) => {
77
- Object.assign(myTr[k1], v1);
79
+ Object.entries(preferedTr).forEach(([k1, k2]) => {
80
+ Object.entries(k2).forEach(([k2, k3]) => {
81
+ if(Array.isArray(k3)) { k3 = k3.filter(v => v != null); }
82
+ myTr[k1][k2] = k3;
83
+ });
78
84
  });
79
85
  }
80
86
 
81
87
  return myTr;
82
- }
88
+ }