Store Locator is a Jahia V8.2+ JS module that brings a full store-location experience to authors: the content model covers addresses, geolocation, and opening hours via reusable, translated fieldsets. The module now ships a lightweight, native-UI OpeningHoursSelector that registers as a selectorType for the openingHours field; editors get friendly day/opens/closes dropdowns styled to fill the editor width while values stay stored as JSON for compatibility. Translation is handled in‑module via a tiny provider that reads the settings/locales JSON and reuses Jahia’s current locale instead of reinitializing i18next, so the platform-wide i18n stack stays untouched. The Vite build shares React/i18n singletons with the Jahia shell, exposes @smonier/js-store-locator/init for both the shell and jContent, and records activation in the console—so you can verify the selector type loads. Source, README, and docs remain on the GitHub repo.
- Leaflet map with zooming markers, tooltips, and a sidebar details panel
- Search filters by store name, city, or region
- Reset button clears the selection and re-centers the map on all stores
- Welcome block displays the per-site title/message
- Custom translation context drives all UI—including the selector—so no module-specific `i18next` initialization conflicts with Jahia
To deploy the module on a Jahia instance, make sure the .env file contains valid host and credential values, then run:
yarn install && yarn build && yarn deploy
Alternatively, you can install the module directly from the Jahia Public Store and activate it on the target site.
Usage:
Create stores within a jContent folder; these will then be used by the storelocatorApp.
This project is licensed under the MIT License.
You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of this software, including for commercial purposes, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.
The software is provided “as is”, without warranty of any kind, express or implied.