- Filters:
+ {t('map.filters')}
{/* Toggle All Button */}
@@ -833,8 +836,8 @@ function ProjectsMapPageContent() {
{Object.values(statusFilters).every((v) => v)
- ? "Hide All"
- : "Show All"}
+ ? t('map.hideAll')
+ : t('map.showAll')}
@@ -852,7 +855,7 @@ function ProjectsMapPageContent() {
className={`flex items-center gap-1 px-2 py-1 rounded text-xs font-medium transition-all duration-200 hover:bg-gray-100 ${
isActive ? "opacity-100 scale-100" : "opacity-40 scale-95"
}`}
- title={`Toggle ${config.label} (${projectCount} projects)`}
+ title={`Toggle ${config.label} (${projectCount} ${t('map.projects')})`}
>
- No projects with coordinates
+ {t('map.noProjectsWithCoordinates')}
- Projects need coordinates to appear on the map. Add coordinates
- when creating or editing projects.
+ {t('map.noProjectsMessage')}
-
+
-
+
diff --git a/src/lib/i18n.js b/src/lib/i18n.js
index 1daed25..156ba9a 100644
--- a/src/lib/i18n.js
+++ b/src/lib/i18n.js
@@ -69,6 +69,7 @@ const translations = {
actions: "Akcje",
view: "Wyświetl",
clearSearch: "Wyczyść wyszukiwanie",
+ filters:"Filtry",
clearAllFilters: "Wyczyść wszystkie filtry",
sortBy: "Sortuj według"
},
@@ -273,6 +274,40 @@ const translations = {
failedToDeleteFile: "Nie udało się usunąć pliku"
},
+ // Map
+ map: {
+ loadingMap: "Ładowanie mapy...",
+ preparingMap: "Przygotowywanie pełnoekranowego widoku mapy",
+ projectsMap: "Mapa projektów",
+ projectsWithCoordinates: "projektów z współrzędnymi",
+ loadingProjectsMap: "Ładowanie mapy projektów...",
+ moveTool: "Narzędzie przesuwania (przesuń mapę)",
+ selectTool: "Narzędzie wyboru",
+ measureDistance: "Zmierz odległość",
+ drawMarkup: "Rysuj/oznacz",
+ addPinMarker: "Dodaj pinezkę/znacznik",
+ measureArea: "Zmierz powierzchnię",
+ listView: "Widok listy",
+ addProject: "Dodaj projekt",
+ toggleLayerControls: "Przełącz kontrolki warstw",
+ mapLayers: "Warstwy mapy",
+ active: "aktywnych",
+ baseMaps: "Mapy bazowe",
+ overlayLayers: "Warstwy nakładkowe",
+ filters: "Filtry:",
+ toggleAllFilters: "Przełącz wszystkie filtry",
+ hideAll: "Ukryj wszystkie",
+ showAll: "Pokaż wszystkie",
+ toggleFilter: "Przełącz filtr",
+ projects: "projektów",
+ noProjectsWithCoordinates: "Brak projektów ze współrzędnymi",
+ noProjectsMessage: "Projekty potrzebują współrzędnych, aby pojawić się na mapie. Dodaj współrzędne podczas tworzenia lub edycji projektów.",
+ viewAllProjects: "Zobacz wszystkie projekty",
+ zoomIn: "Przybliż",
+ zoomOut: "Oddal",
+ viewProjectDetails: "Zobacz szczegóły projektu"
+ },
+
// Tasks
tasks: {
title: "Zadania",
@@ -552,6 +587,7 @@ const translations = {
actions: "Actions",
view: "View",
clearSearch: "Clear search",
+ filters: "Filters",
clearAllFilters: "Clear all filters",
sortBy: "Sort by"
},
@@ -672,6 +708,40 @@ const translations = {
}
},
+ // Map
+ map: {
+ loadingMap: "Loading map...",
+ preparingMap: "Preparing your full-screen map experience",
+ projectsMap: "Projects Map",
+ projectsWithCoordinates: "projects with coordinates",
+ loadingProjectsMap: "Loading projects map...",
+ moveTool: "Move Tool (Pan Map)",
+ selectTool: "Select Tool",
+ measureDistance: "Measure Distance",
+ drawMarkup: "Draw/Markup",
+ addPinMarker: "Add Pin/Marker",
+ measureArea: "Measure Area",
+ listView: "List View",
+ addProject: "Add Project",
+ toggleLayerControls: "Toggle Layer Controls",
+ mapLayers: "Map Layers",
+ active: "active",
+ baseMaps: "Base Maps",
+ overlayLayers: "Overlay Layers",
+ filters: "Filters:",
+ toggleAllFilters: "Toggle all filters",
+ hideAll: "Hide All",
+ showAll: "Show All",
+ toggleFilter: "Toggle filter",
+ projects: "projects",
+ noProjectsWithCoordinates: "No projects with coordinates",
+ noProjectsMessage: "Projects need coordinates to appear on the map. Add coordinates when creating or editing projects.",
+ viewAllProjects: "View All Projects",
+ zoomIn: "Zoom In",
+ zoomOut: "Zoom Out",
+ viewProjectDetails: "View Project Details"
+ },
+
contracts: {
title: "Contracts",
subtitle: "Manage your contracts and agreements",