mirror of
https://github.com/CIMEngine/map.git
synced 2024-11-24 03:36:21 +03:00
add locales for styles
This commit is contained in:
parent
d098cea340
commit
b6b56ff7e9
2 changed files with 8 additions and 2 deletions
|
@ -19,6 +19,8 @@ import "bootstrap/dist/css/bootstrap.min.css";
|
||||||
|
|
||||||
import { countryPopup, markerPopup } from "./components";
|
import { countryPopup, markerPopup } from "./components";
|
||||||
|
|
||||||
|
import l from "./locales";
|
||||||
|
|
||||||
function loginfo(...str) {
|
function loginfo(...str) {
|
||||||
let info = str.shift();
|
let info = str.shift();
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -87,13 +89,13 @@ window.onload = async () => {
|
||||||
new StylesControl({
|
new StylesControl({
|
||||||
styles: [
|
styles: [
|
||||||
{
|
{
|
||||||
label: "Streets",
|
label: l("streets"),
|
||||||
styleName: "Mapbox Streets",
|
styleName: "Mapbox Streets",
|
||||||
styleUrl:
|
styleUrl:
|
||||||
"mapbox://styles/artegoser/clfm612fg002601nlcika2018?optimize=true",
|
"mapbox://styles/artegoser/clfm612fg002601nlcika2018?optimize=true",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Satellite",
|
label: l("satellite"),
|
||||||
styleName: "Satellite",
|
styleName: "Satellite",
|
||||||
styleUrl:
|
styleUrl:
|
||||||
"mapbox://styles/artegoser/cliskjlhw00ug01pgfs9lesog?optimize=true",
|
"mapbox://styles/artegoser/cliskjlhw00ug01pgfs9lesog?optimize=true",
|
||||||
|
|
|
@ -6,6 +6,8 @@ let locales = {
|
||||||
km: "km",
|
km: "km",
|
||||||
about: "About",
|
about: "About",
|
||||||
founded: "Founded",
|
founded: "Founded",
|
||||||
|
streets: "Streets",
|
||||||
|
satellite: "Satellite",
|
||||||
},
|
},
|
||||||
ru: {
|
ru: {
|
||||||
population: "Население",
|
population: "Население",
|
||||||
|
@ -14,6 +16,8 @@ let locales = {
|
||||||
km: "км",
|
km: "км",
|
||||||
about: "Больше",
|
about: "Больше",
|
||||||
founded: "Основано",
|
founded: "Основано",
|
||||||
|
streets: "Улицы",
|
||||||
|
satellite: "Спутник",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue