mirror of
https://github.com/CIMEngine/map.git
synced 2024-11-05 20:13:58 +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 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",
|
||||
|
|
|
@ -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: "Спутник",
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue