Is there a way using the JavaScript API to toggle from English to Spanish? Also,is there a way to create a Spanish and English version of a Map Service.
Do you know if you can publish two services one in English and one in Spanish.
I mean more for custom applications built off of the Esri Javascript API
@MarlaJohnson wrote:Also,is there a way to create a Spanish and English version of a Map Service.
Also,is there a way to create a Spanish and English version of a Map Service.
There are different aspects to this. For layer tites, that show up in LayerList and Legend etc widget, you can specify different layer titles. If you're using web maps, that would mean maintaining two web maps. Localizing your data is more complicated. Depending on what data you have and how you are using it. As an example, for string data, you could have one field per language. Or you could use Arcade to convert specific types etc into specific localized strings.asdasd
Hi @MarlaJohnson , yes, all the text etc in the widgets are localized. You can set an application to use a specific locale, and/or toggle between locales. See https://developers.arcgis.com/javascript/latest/localization/
require(["esri/intl"], (intl) ... intl.setLocale("es");
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.