How esri.bundle is loaded? Object missing.

3211
4
Jump to solution
12-03-2013 10:13 AM
ZachLiu1
Occasional Contributor II
I have  an app and I want to change the drawToolbar tooltips.

So I tried to change esri.bundle.toolbars.draw, but for some reason, I got an undefined error.

I checked the browser console and there is not object bundle under esri namespace.

I found some really old posts about this issue but no answers found.

Anyone has a clue?
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
are you using AMD?


require "dojo/i18n!esri/nls/jsapi"

function(esriBundle)

esriBundle.toolbars.draw.finish = "Double-click to finish";

View solution in original post

0 Kudos
4 Replies
JeffPace
MVP Alum
are you using AMD?


require "dojo/i18n!esri/nls/jsapi"

function(esriBundle)

esriBundle.toolbars.draw.finish = "Double-click to finish";
0 Kudos
ZachLiu1
Occasional Contributor II
It is exactly what I am looking for.

It is a little wired because I can use esri.bundle.toolbars in many similar apps without problems.

Also I tried to find it in API reference but it seems it is not documented there.

Saved the day, thanks Jeff!
0 Kudos
JeffPace
MVP Alum
happy to help

here is the (admittedly obscure) documentation

https://developers.arcgis.com/en/javascript/jshelp/inside_bundle.html
BenFousek
Occasional Contributor III
It's strange that esri.bundle would be undefined. The full api and compact should load esri.bundle based on your locale automatically every time. It's a component of the api creating the esri namespace.  Without it there are no string values for anything the api does involving the display of text.

Jeff - thanks for pointing out that obscure documentation.  Need to backtrack on a couple items I thought were wrapped up.
0 Kudos