Skip to content

🇫🇷 Localization for Leaflet.draw, changing between languages is now effortless.

License

Notifications You must be signed in to change notification settings

SergeyMatveev88/Leaflet.draw.locales

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.draw.locales

Build Status npm version MIT licensed

Localization for Leaflet.draw, changing between languages is now effortless.

Install

$ npm install --save leaflet-draw-locales

Example

var L = require('leaflet')
var drawLocales = require('leaflet-draw-locales')

// Automatically defines Leaflet.draw to the specified language
drawLocales('fr')

// Customize locale language
var locale = drawLocales('fr')
locale.draw.toolbar.buttons.polygon = 'Awesome polygon!'
L.drawLocal = locale

Languages

Code Language
en English
fr French
es Spanish
ru Russian

Submit a language

  • Fork this repo
  • Copy-paste an existing .js language from locales/ as your template
  • Include your new language in index.js, test.js & index.d.ts
  • Submit your locales via a GitHub PR

About

🇫🇷 Localization for Leaflet.draw, changing between languages is now effortless.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%