which package this method(CQ.I18n.getDictionary() ) belongs to | Community
Skip to main content
April 1, 2016
Solved

which package this method(CQ.I18n.getDictionary() ) belongs to

  • April 1, 2016
  • 4 replies
  • 1010 views

CQ.I18n.getDictionary() this method accepts locale as parameter and looks like it will be called at run time. Please let me know which class implements this method and which adobe package it belongs to.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

The code is not part of Java, instead its part of ExtJS framework which AEM used.

Here Documentation: https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=I18n

4 replies

edubey
edubeyAccepted solution
Level 10
April 1, 2016

The code is not part of Java, instead its part of ExtJS framework which AEM used.

Here Documentation: https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=I18n

kautuk_sahni
Community Manager
Community Manager
April 4, 2016

Hi

As stated by Praveen it is not the part of Java, its part of ExtJs framework.

You can find it in :- /etc/clientlibs/granite/utils/source/I18n.js    Line:220

 

Chrome Debugging Technique

One of the debugging technique for any web development stated below:-

Q1. How to find a function definition in chrome

//

  1. (open Chrome dev-tools),
  2. ctrl + shift + F, on OS X use cmd + optn + F instead (it opens window for searching across all scripts),
  3. check "Regular expression" checkbox,
  4. search for foo\s*=\s*function (searches for foo = function with any number of spaces between those three tokens),
  5. press on a returned result.

Result will be like this:

 

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
April 6, 2016

Thanks

April 20, 2016
Could you please clarify the use of bundle(com.adobe.granite.crxde-lite)?.In this bundle, we can see I18n.js(com.adobe.granite.crxde-lite-1.0.52.jar!\docroot\commons\js\I18n.js).

 

Same I18n.js is available in the path( /etc/clientlibs/granite/utils/source/I18n.js) as well.

What is the use of crxde-lite jar. Where is the entry for this getDictionary() method.

Please clarify.