Files
TREK/shared/src/i18n/ca/map.ts
T
Maurice 1727732841 feat(plugins): plugins can add POI categories to the map and answer them
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.
2026-09-25 01:24:55 +00:00

34 lines
1.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { TranslationStrings } from '../types';
const map: TranslationStrings = {
'map.connections': 'Connexions',
'map.showConnections': 'Mostra les rutes de reserves',
'map.hideConnections': 'Amaga les rutes de reserves',
'poi.searchThisArea': 'Cerca en aquesta zona',
'poi.cat.restaurants': 'Restaurants',
'poi.cat.cafes': 'Cafeteries',
'poi.cat.bars': 'Bars i oci nocturn',
'poi.cat.hotels': 'Allotjament',
'poi.cat.sights': "Llocs d'interès",
'poi.cat.museums': 'Museus i cultura',
'poi.cat.nature': 'Natura i parcs',
'poi.cat.activities': 'Activitats',
'poi.pluginCategories': 'Categories dels connectors',
'map.showAllConnections': 'Mostra totes les rutes de reserva',
'map.hideAllConnections': 'Amaga totes les rutes de reserva',
'map.baseLayer.default': 'Mapa',
'map.baseLayer.satellite': 'Satèl·lit',
'map.baseLayer.switchToSatellite': 'Canvia a vista de satèl·lit',
'map.baseLayer.switchToDefault': 'Canvia a vista de mapa',
'map.location.denied': 'L’accés a la ubicació està bloquejat. Revisa la configuració del dispositiu; una app instal·lada té el seu propi permís d’ubicació, separat del navegador.',
'map.location.unavailable': 'No s’ha pogut determinar la teva ubicació.',
'map.location.timeout': 'La localització ha trigat massa. Torna-ho a provar amb una vista més clara del cel.',
'map.overview.show': 'Mostra tot el viatge',
'map.overview.hide': 'Amaga tot el viatge',
'map.overview.total': 'Distància total',
'map.attribution': 'Crèdits del mapa',
'map.overview.unrouted': 'No s’han pogut calcular {count} tram(s), per això les distàncies són incompletes.',
'map.overview.dayUnrouted': 'No s’han pogut calcular {count} tram(s) d’aquest dia',
};
export default map;