diff --git a/src/index.js b/src/index.js index ffab0e3..08c406e 100644 --- a/src/index.js +++ b/src/index.js @@ -19,6 +19,8 @@ import "bootstrap/dist/css/bootstrap.min.css"; import { countryPopup, markerPopup } from "./components"; +import l from "./locales"; + function loginfo(...str) { let info = str.shift(); console.log( @@ -87,13 +89,13 @@ window.onload = async () => { new StylesControl({ styles: [ { - label: "Streets", + label: l("streets"), styleName: "Mapbox Streets", styleUrl: "mapbox://styles/artegoser/clfm612fg002601nlcika2018?optimize=true", }, { - label: "Satellite", + label: l("satellite"), styleName: "Satellite", styleUrl: "mapbox://styles/artegoser/cliskjlhw00ug01pgfs9lesog?optimize=true", diff --git a/src/locales.js b/src/locales.js index 02d5b2c..cfe3898 100644 --- a/src/locales.js +++ b/src/locales.js @@ -6,6 +6,8 @@ let locales = { km: "km", about: "About", founded: "Founded", + streets: "Streets", + satellite: "Satellite", }, ru: { population: "Население", @@ -14,6 +16,8 @@ let locales = { km: "км", about: "Больше", founded: "Основано", + streets: "Улицы", + satellite: "Спутник", }, };