ljagis / leaflet-measure

Coordinate, linear, and area measure control for Leaflet maps
http://ljagis.github.io/leaflet-measure/
MIT License
368 stars 233 forks source link

how to change the language to china ,how ? #131

Open kt7456 opened 5 years ago

kt7456 commented 5 years ago

i dont know how to use,there has no example can find,please teach me!

527760681 commented 5 years ago

just import the leaflet-measure/dist/leaflet-measure.cn.js javascript file instead of leaflet-measure.js

ThuanLCSE commented 3 years ago

Hello, I'm using VueJS, and the library was imported via npm install and then in Vue component: import {} from "leaflet-measure"; Then how can I update the language dynamically ? I think the localization option is awesome, isn't it ?

Gilson401 commented 4 months ago

Hello, I'm using VueJS, and the library was imported via npm install and then in Vue component: import {} from "leaflet-measure"; Then how can I update the language dynamically ? I think the localization option is awesome, isn't it ?

Hi, have you got a solution?

Gilson401 commented 4 months ago

Hello, I'm using VueJS, and the library was imported via npm install and then in Vue component: import {} from "leaflet-measure"; Then how can I update the language dynamically ? I think the localization option is awesome, isn't it ?

Hi, have you got a solution?

I just got a solution. You need import the js lang file. In my case it was in placed in "node_modules\leaflet-measure\dist\leaflet-measure.pt_BR.js"