Diplomat
- For instructions for mapping a diplomatic office, see Tag:office=diplomatic.

Diplomat is a plugin for MapLibre GL JS that personalizes the map according to user preferences. The plugin primarily changes labels to match a given language, defaulting to the browser or system's language preference. It supports the full BCP 47 specification adopted by the localized name tagging scheme. It also parses semicolon-delimited name lists and optionally produces dual language labels in both the user's preferred language and the local language. Diplomat is compatible with internationalized vector tile schemas such as OpenMapTiles, Shortbread, and OpenHistoricalMap.
History
OpenStreetMap Americana added dual language labels and semicolon parsing in 2022.[1] In 2025, this functionality was repackaged as a reusable library called Diplomat.[2]
Deployments
References
- ↑ Sperlongano, Brian (December 19, 2022). “OpenStreetMap Americana Speaks Your Language”. Washington, D.C.: OpenStreetMap U.S. Retrieved March 25, 2026.
- ↑ Nguyễn, Minh (February 22, 2026). “OSM Americana, your local language companion”. OpenStreetMap Community Forum. Cambridge: OpenStreetMap Foundation. Retrieved March 25, 2026.
External links
- osm-americana/diplomat GitHub