Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : KA Maps Engine8 * File : sdk/web/src/i18n.ts9 * Module : sdk10 * Repository : https://git.spboucher.ai/ka-maps-engine11 * Created : 2026-12-0112 * Last Modified : 2026-12-0113 *14 * Author : Simon-Pierre Boucher15 * Position : Professor of Finance16 * Institution : Université du Québec en Outaouais (UQO)17 * Organization : SP Boucher18 * Website : https://spboucher.ai19 * Git : https://git.spboucher.ai20 *21 * Preferred Contact: support@spboucher.ai22 * Development : dev@spboucher.ai23 * Support : support@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142import type { KaMapStrings } from './types.js';4344/** Textes par défaut (français). Remplaçables par `options.strings`. */45export const STRINGS_FR: KaMapStrings = {46 mapLabel: 'Carte',47 mapRole: 'carte interactive',48 keyboardHelp:49 'Carte interactive. Flèches : déplacer. Plus et moins : zoomer. Majuscule et flèches gauche ou droite : pivoter. Majuscule et flèches haut ou bas : incliner. Zéro : remettre le nord en haut. Échap : annuler le dessin en cours.',50 attributionLabel: 'Sources des données cartographiques',51 zoomIn: 'Zoomer',52 zoomOut: 'Dézoomer',53 resetNorth: 'Remettre le nord en haut',54 mode3d: 'Passer en 3D',55 mode2d: 'Passer en 2D',56 cooperativeWheel: 'Maintenez Ctrl (ou ⌘) et utilisez la molette pour zoomer la carte',57 cooperativeTouch: 'Utilisez deux doigts pour déplacer la carte',58 unsupported: 'La carte ne peut pas s’afficher dans ce navigateur (WebGPU et WebGL 2 indisponibles).',59 announceZoom: 'Zoom {zoom}',60 markerProxyHint: 'Entrée pour ouvrir',61};6263export const STRINGS_EN: KaMapStrings = {64 mapLabel: 'Map',65 mapRole: 'interactive map',66 keyboardHelp:67 'Interactive map. Arrow keys: pan. Plus and minus: zoom. Shift with left or right arrow: rotate. Shift with up or down arrow: tilt. Zero: reset north. Escape: cancel the current drawing.',68 attributionLabel: 'Map data sources',69 zoomIn: 'Zoom in',70 zoomOut: 'Zoom out',71 resetNorth: 'Reset north',72 mode3d: 'Switch to 3D',73 mode2d: 'Switch to 2D',74 cooperativeWheel: 'Hold Ctrl (or ⌘) and scroll to zoom the map',75 cooperativeTouch: 'Use two fingers to move the map',76 unsupported: 'The map cannot be displayed in this browser (WebGPU and WebGL 2 unavailable).',77 announceZoom: 'Zoom {zoom}',78 markerProxyHint: 'Enter to open',79};8081export function resolveStrings(over?: Partial<KaMapStrings>): KaMapStrings {82 return over ? { ...STRINGS_FR, ...over } : STRINGS_FR;83}84