mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
1727732841
A new manifest capability poiCategories (up to 4, icon from an allow-list, strict #rrggbb color) and the hook poiCategoryProvider.getPois behind the hook:poi-category-provider permission. GET /api/plugin-pois in the plugin contributions module answers them in the /api/maps/pois shape, with search_plugin_pois as the MCP twin. plugin: ids no longer count as Google place ids. SDK 1.8.0 carries the types, validation and docs. On the map, one hook merges the built-in categories with the ones active plugins declare, and the pill shows the plugin chips after a divider on desktop and phone, scrolling sideways instead of shrinking a chip below its touch target. A plugin chip searches through a repo that refuses offline and parses the answer strictly. Its pins, on Leaflet and GL, use the category's own icon and color, both checked again before they reach any markup, and the hover card lists the plugin's details as escaped text. A plugin POI can be added as a place like any other. The admin panels on desktop and phone show a chip for the new permission and the categories a plugin would add, from one shared module. Addresses discussion #1781.
34 lines
2.5 KiB
TypeScript
34 lines
2.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const map: TranslationStrings = {
|
|
'map.connections': 'Συνδέσεις',
|
|
'map.showConnections': 'Εμφάνιση διαδρομών κρατήσεων',
|
|
'map.hideConnections': 'Απόκρυψη διαδρομών κρατήσεων',
|
|
'poi.searchThisArea': 'Αναζήτηση σε αυτήν την περιοχή',
|
|
'poi.cat.restaurants': 'Εστιατόρια',
|
|
'poi.cat.cafes': 'Καφέ',
|
|
'poi.cat.bars': 'Μπαρ & νυχτερινή ζωή',
|
|
'poi.cat.hotels': 'Διαμονή',
|
|
'poi.cat.sights': 'Αξιοθέατα',
|
|
'poi.cat.museums': 'Μουσεία & πολιτισμός',
|
|
'poi.cat.nature': 'Φύση & πάρκα',
|
|
'poi.cat.activities': 'Δραστηριότητες',
|
|
'poi.pluginCategories': 'Κατηγορίες από πρόσθετα',
|
|
'map.showAllConnections': 'Εμφάνιση όλων των διαδρομών κρατήσεων',
|
|
'map.hideAllConnections': 'Απόκρυψη όλων των διαδρομών κρατήσεων',
|
|
'map.baseLayer.default': 'Χάρτης',
|
|
'map.baseLayer.satellite': 'Δορυφόρος',
|
|
'map.baseLayer.switchToSatellite': 'Εναλλαγή σε δορυφορική προβολή',
|
|
'map.baseLayer.switchToDefault': 'Εναλλαγή σε προβολή χάρτη',
|
|
'map.location.denied': 'Η πρόσβαση στην τοποθεσία είναι αποκλεισμένη. Ελέγξτε τις ρυθμίσεις της συσκευής. Μια εγκατεστημένη εφαρμογή έχει δική της άδεια τοποθεσίας, ξεχωριστή από το πρόγραμμα περιήγησης.',
|
|
'map.location.unavailable': 'Δεν ήταν δυνατός ο προσδιορισμός της τοποθεσίας σας.',
|
|
'map.location.timeout': 'Ο εντοπισμός της θέσης σας άργησε πολύ. Δοκιμάστε ξανά με καθαρή θέα στον ουρανό.',
|
|
'map.overview.show': 'Εμφάνιση όλου του ταξιδιού',
|
|
'map.overview.hide': 'Απόκρυψη όλου του ταξιδιού',
|
|
'map.overview.total': 'Συνολική απόσταση',
|
|
'map.attribution': 'Πηγές χάρτη',
|
|
'map.overview.unrouted': '{count} σκέλος/η δεν μπόρεσαν να υπολογιστούν, οι αποστάσεις είναι ελλιπείς.',
|
|
'map.overview.dayUnrouted': '{count} σκέλος/η αυτής της ημέρας δεν μπόρεσαν να υπολογιστούν',
|
|
};
|
|
export default map;
|