Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Administrator

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

Avatar

Former Community Member
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.