{"id":24152323,"url":"https://github.com/nfreear/leaflet.translate","last_synced_at":"2026-05-12T00:38:55.296Z","repository":{"id":197683753,"uuid":"699113849","full_name":"nfreear/Leaflet.translate","owner":"nfreear","description":"A localization/ translation plugin for Leaflet \u0026 plugins.","archived":false,"fork":false,"pushed_at":"2023-10-19T19:59:56.000Z","size":80,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T10:15:40.686Z","etag":null,"topics":["i18n","internationalization","leaflet","localization","map","plugin","translate","translation"],"latest_commit_sha":null,"homepage":"https://nfreear.github.io/leaflet.plugins/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nfreear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-02T00:17:58.000Z","updated_at":"2023-10-27T07:26:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bb4030e-61cd-430f-98ec-fbcabcef39ee","html_url":"https://github.com/nfreear/Leaflet.translate","commit_stats":null,"previous_names":["nfreear/leaflet.locale","nfreear/leaflet.translate"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2FLeaflet.translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2FLeaflet.translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2FLeaflet.translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2FLeaflet.translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfreear","download_url":"https://codeload.github.com/nfreear/Leaflet.translate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411912,"owners_count":19958827,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["i18n","internationalization","leaflet","localization","map","plugin","translate","translation"],"created_at":"2025-01-12T10:15:42.911Z","updated_at":"2026-05-12T00:38:55.267Z","avatar_url":"https://github.com/nfreear.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Node.js CI][ci-img]][ci]\n[![NPM][npm-img]][npm]\n[![Leaflet 1.9.4][leaflet-img]][leaflet]\n\n# Leaflet.translate #\n\nA localization/ translation plugin for [Leaflet][] and [Leaflet plugins][].\n\nThe plugin contains both translations/ language pack files, and the code to load them.\n\nIt uses the [Leaflet.i18n][] internationalisation plugin.\n\n* Demo: [nfreear.github.io/leaflet.a11y][demo]\n* See: [Leaflet/Leaflet/issues/9092][L-9092]\n\nAlso, fix accessibility issues with [Leaflet.a11y][].\n\n## Usage\n\nInclude or `import` core Leaflet and the plugins:\n\n```html\n\u003cscript src=\"path/to/leaflet.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/Leaflet.i18n.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/Leaflet.translate.js\"\u003e\u003c/script\u003e\n```\n\nThen, call `L.translate.load()` and use the `L._` translation function:\n\n```js\n// Load language pack, based on URL parameter ('?lang=fr').\nawait L.translate.fromUrl.load();\n// Or: await L.translate.load('fr');\n\nvar map = L.map('map').setView([51.505, -0.09], 13);\n\n// ...\n\nL.marker([51.5, -0.09], {\n  alt: L._('Marker: {name}', { name: 'Sterry Street …' })\n})\n  .addTo(MAP)\n  .bindPopup(L._('Hello! I’m a translation test.'));\n```\n\n## Build and Test\n\n```\nnpm install\nnpm run build\nnpm test\nnpm start\n```\n\n[Feedback][], translations, contributions and pull requests are welcome!\n\n---\nLicense: [MIT][].\n\n[ci]: https://github.com/nfreear/Leaflet.translate/actions/workflows/node.js.yml\n[ci-img]: https://github.com/nfreear/Leaflet.translate/actions/workflows/node.js.yml/badge.svg\n[npm]: https://www.npmjs.com/package/leaflet.translate\n[npm-img]: https://img.shields.io/npm/v/leaflet.translate\n[leaflet-img]: https://img.shields.io/badge/leaflet-1.9.4-green.svg?style=flat\n[feedback]: https://github.com/nfreear/Leaflet.translate/issues\n[demo]: https://nfreear.github.io/leaflet.a11y/\n[Leaflet]: https://leafletjs.com/\n[Leaflet plugins]: https://leafletjs.com/plugins.html\n[L-9092]: https://github.com/Leaflet/Leaflet/issues/9092\n  \"Add placeholder function for translation/localization/i18n to Leaflet #9092\"\n[Leaflet.i18n]: https://github.com/umap-project/Leaflet.i18n\n[Leaflet.a11y]: https://github.com/nfreear/leaflet.a11y\n  \"An accessibility plugin for Leaflet\"\n[MIT]: https://github.com/nfreear/Leaflet.translate/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfreear%2Fleaflet.translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfreear%2Fleaflet.translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfreear%2Fleaflet.translate/lists"}