Skip to content

Commit

Permalink
Add ukrainian language (#897)
Browse files Browse the repository at this point in the history
* Update services.yaml

* Update indes.ts

* Add translations

Co-authored-by: Andrey Golovin <[email protected]>
Co-authored-by: Fedir Gontsa <[email protected]>
  • Loading branch information
3 people authored Jan 29, 2023
1 parent e357f8b commit f8d5ed6
Show file tree
Hide file tree
Showing 6 changed files with 1,139 additions and 2 deletions.
5 changes: 4 additions & 1 deletion assets/typescript/list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ import ko from 'apexcharts/dist/locales/ko.json';
import nl from 'apexcharts/dist/locales/nl.json';
import pl from 'apexcharts/dist/locales/pl.json';
import sq from 'apexcharts/dist/locales/sq.json';
import uk from 'apexcharts/dist/locales/ua.json';
import zh_CN from 'apexcharts/dist/locales/zh-cn.json';
import zh_TW from 'apexcharts/dist/locales/zh-tw.json';

import 'leaflet/dist/leaflet.css';

const locales = [de, en, es, fr, hu, it, ja, ko, nl, pl, sq, zh_CN, zh_TW];
uk.name = 'uk'; // Overwrite "ua" by "uk"

const locales = [de, en, es, fr, hu, it, ja, ko, nl, pl, sq, uk, zh_CN, zh_TW];

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_ES','ja','pl','de','sq','zh_TW','zh_CN','hu','ko']
app.locales: ['en','fr','it','nl','bg','es_ES','ja','pl','de','sq','zh_TW','zh_CN','hu','ko','uk']
app.userAgent: 'OpenStreetMap Welcome Tool'
app.title: 'OpenStreetMap Welcome Tool'

Expand Down
Loading

0 comments on commit f8d5ed6

Please sign in to comment.