From a049b1985c84124d6d7307d73ec8dbf62407b06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Thu, 11 Nov 2021 13:32:00 +0100 Subject: [PATCH] Add Polish language "selector" (#159) * Update services.yaml * Add pl locale to ApexChart --- assets/typescript/list/index.ts | 3 ++- config/services.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/typescript/list/index.ts b/assets/typescript/list/index.ts index 1c07a3a53..da4279042 100644 --- a/assets/typescript/list/index.ts +++ b/assets/typescript/list/index.ts @@ -7,10 +7,11 @@ import fr from 'apexcharts/dist/locales/fr.json'; import it from 'apexcharts/dist/locales/it.json'; import ja from 'apexcharts/dist/locales/ja.json'; import nl from 'apexcharts/dist/locales/nl.json'; +import pl from 'apexcharts/dist/locales/pl.json'; import 'leaflet/dist/leaflet.css'; -const locales = [en, es, fr, it, ja, nl]; +const locales = [en, es, fr, it, ja, nl, pl]; const mapElement = document.getElementById('map-region'); if (mapElement !== null) { diff --git a/config/services.yaml b/config/services.yaml index 602ea3468..0a10337bf 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -7,7 +7,7 @@ parameters: osmcha.api.url: 'https://osmcha.org/api/v1/' osmcha.api.key: '%env(OSMCHA_API_KEY)%' osm.api.url: 'https://api.openstreetmap.org/api/0.6/' - app.locales: en|fr|it|nl|bg|es|ja + app.locales: en|fr|it|nl|bg|es|ja|pl app.userAgent: 'OpenStreetMap Welcome Tool' app.title: 'OpenStreetMap Welcome Tool'