@panoramax/web-viewer 3.2.0-develop-f730da66 → 3.2.0-develop-c9175757
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/CHANGELOG.md +4 -0
- package/build/index.js +5 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/eo.json +24 -1
- package/src/utils/I18n.js +10 -4
package/package.json
CHANGED
package/src/translations/eo.json
CHANGED
|
@@ -28,7 +28,30 @@
|
|
|
28
28
|
"copied": "Kopiita",
|
|
29
29
|
"error": "Ni havas problemon…",
|
|
30
30
|
"error_click": "Alkliku por kontinui",
|
|
31
|
-
"error_retry": "Bonvolu reprovi poste"
|
|
31
|
+
"error_retry": "Bonvolu reprovi poste",
|
|
32
|
+
"search_address": "Serĉi adreson, urbon…",
|
|
33
|
+
"filters": "Filtroj",
|
|
34
|
+
"layers": "Tavoloj",
|
|
35
|
+
"search": "Serĉi",
|
|
36
|
+
"share_embed_docs": "Pli pri enigito sur via retpaĝaro",
|
|
37
|
+
"search_empty": "Neniu rezulto trovita",
|
|
38
|
+
"search_user": "Serĉi uzantnomon…",
|
|
39
|
+
"share": "Kunhavigi",
|
|
40
|
+
"share_links": "Ligiloj",
|
|
41
|
+
"share_page": "Ligilo de la retpaĝo",
|
|
42
|
+
"share_image": "HD bildo",
|
|
43
|
+
"share_rss": "RSS abonfluo",
|
|
44
|
+
"share_rss_title": "RSS abonfluo de la novaj sekvecoj en la nuntempe videbla mapzono",
|
|
45
|
+
"share_embed": "Enigita en via retpaĝaro",
|
|
46
|
+
"share_print": "Presi",
|
|
47
|
+
"edit_osm": "Modifi OSM",
|
|
48
|
+
"legend_license": "Rajtigilo : {l}",
|
|
49
|
+
"josm_live": "Ebligas aŭtomatan JOSM-sinkronigon dum ŝarĝo de bildo",
|
|
50
|
+
"loading_labels_serious": [
|
|
51
|
+
"🗺️ Ŝargo de la bazmapon",
|
|
52
|
+
"🖥️ API demandado"
|
|
53
|
+
],
|
|
54
|
+
"legend_title": "Montri la detaloj de la bildo"
|
|
32
55
|
},
|
|
33
56
|
"maplibre": {
|
|
34
57
|
"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,
|
|
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,
|
|
77
|
-
Object.
|
|
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
|
+
}
|