Skip to content

Commit

Permalink
Add German language "selector" (#175)
Browse files Browse the repository at this point in the history
* Add locale "de"

* Add locale "de" to ApexChart
  • Loading branch information
jbelien authored Nov 20, 2021
1 parent 3ea9317 commit 26fbe25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/typescript/list/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ApexCharts from 'apexcharts';
import { GeoJSON, Map, TileLayer } from 'leaflet';

import de from 'apexcharts/dist/locales/de.json';
import en from 'apexcharts/dist/locales/en.json';
import es from 'apexcharts/dist/locales/es.json';
import fr from 'apexcharts/dist/locales/fr.json';
Expand All @@ -11,7 +12,7 @@ import pl from 'apexcharts/dist/locales/pl.json';

import 'leaflet/dist/leaflet.css';

const locales = [en, es, fr, it, ja, nl, pl];
const locales = [de, en, es, fr, it, ja, nl, pl];

const mapElement = document.getElementById('map-region');
if (mapElement !== null) {
Expand Down
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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|pl
app.locales: en|fr|it|nl|bg|es|ja|pl|de
app.userAgent: 'OpenStreetMap Welcome Tool'
app.title: 'OpenStreetMap Welcome Tool'

Expand Down

0 comments on commit 26fbe25

Please sign in to comment.