Add i18n for IT and PL

This commit is contained in:
Marcus Kida 2026-02-14 16:12:53 +01:00
parent 0f7e3dee1e
commit b62d4226a3
3 changed files with 87 additions and 1 deletions

View file

@ -1,4 +1,4 @@
var SUPPORTED_LANGS = ["en", "de", "es", "fr"]; var SUPPORTED_LANGS = ["en", "de", "es", "fr", "it", "pl"];
function translateDOM() { function translateDOM() {
document.querySelectorAll("[data-i18n]").forEach(function (el) { document.querySelectorAll("[data-i18n]").forEach(function (el) {

42
static/locales/it.json Normal file
View file

@ -0,0 +1,42 @@
{
"search_placeholder": "Cerca nominativo, città, ID...",
"filters": "Filtri",
"show_hotspots": "Mostra hotspot personali",
"show_inactive": "Mostra ripetitori inattivi",
"experimental": "Sperimentale",
"show_heatmap": "Visualizza mappa termica Last Heard",
"from_address": "Indirizzo di partenza",
"to_address": "Indirizzo di arrivo",
"route_btn": "Percorso",
"clear_btn": "Cancella",
"corridor": "Corridoio",
"radius": "Raggio",
"clear_pin": "Rimuovi segnaposto",
"repeater_count_one": "{{count}} ripetitore",
"repeater_count_other": "{{count}} ripetitori",
"loading": "Caricamento...",
"searching": "Ricerca...",
"geocoding": "Geocodifica...",
"routing": "Calcolo del percorso...",
"error": "Errore",
"showing_results": "{{count}} di {{total}} risultati",
"popup_tx": "TX",
"popup_rx": "RX",
"popup_offset": "Offset",
"popup_cc": "CC",
"popup_location": "Posizione",
"popup_network": "Rete",
"popup_trustee": "Responsabile",
"popup_timeslots": "Timeslot",
"popup_status": "Stato",
"popup_bm_status": "Stato BM",
"popup_last_seen": "Ultimo utilizzo",
"popup_hardware": "Hardware",
"popup_power": "Potenza",
"popup_antenna": "Antenna",
"popup_inactive": "Inattivo",
"back_to_map": "Torna alla mappa",
"impressum": "Note legali",
"datenschutz": "Informativa sulla privacy",
"source": "Codice sorgente"
}

44
static/locales/pl.json Normal file
View file

@ -0,0 +1,44 @@
{
"search_placeholder": "Szukaj znaku, miasta, ID...",
"filters": "Filtry",
"show_hotspots": "Pokaż hotspoty osobiste",
"show_inactive": "Pokaż nieaktywne przemienniki",
"experimental": "Eksperymentalne",
"show_heatmap": "Wizualizuj mapę cieplną Last Heard",
"from_address": "Adres początkowy",
"to_address": "Adres docelowy",
"route_btn": "Trasa",
"clear_btn": "Wyczyść",
"corridor": "Korytarz",
"radius": "Promień",
"clear_pin": "Usuń znacznik",
"repeater_count_one": "{{count}} przemiennik",
"repeater_count_few": "{{count}} przemienniki",
"repeater_count_many": "{{count}} przemienników",
"repeater_count_other": "{{count}} przemienników",
"loading": "Ładowanie...",
"searching": "Wyszukiwanie...",
"geocoding": "Geokodowanie...",
"routing": "Obliczanie trasy...",
"error": "Błąd",
"showing_results": "Wyświetlanie {{count}} z {{total}} wyników",
"popup_tx": "TX",
"popup_rx": "RX",
"popup_offset": "Offset",
"popup_cc": "CC",
"popup_location": "Lokalizacja",
"popup_network": "Sieć",
"popup_trustee": "Opiekun",
"popup_timeslots": "Szczeliny czasowe",
"popup_status": "Status",
"popup_bm_status": "Status BM",
"popup_last_seen": "Ostatnio widziany",
"popup_hardware": "Sprzęt",
"popup_power": "Moc",
"popup_antenna": "Antena",
"popup_inactive": "Nieaktywny",
"back_to_map": "Powrót do mapy",
"impressum": "Nota prawna",
"datenschutz": "Polityka prywatności",
"source": "Kod źródłowy"
}