Various AEM related interfaces and implementations both have always fascinated me.
Usually I come to know about these interfaces via different blogs, existing project and from my teammates also.
Recently I was working on AEM i18n implementation and it was required to write a backend logic to read locale specific key and it’s value.
Initially I wrote a logic and it worked. Then during peer code review, my collogue told me why can’t you give a try with an interface name: I18nProvider and he has already used this interface(I18nProvider) and also suggest take a look into an existing java class and it is really helpful.
Then I made necessary change and it worked like a magic.
Now I would like to share some detail about this interface with basic implementation here -
Interface : I18nProvider
Package : com.adobe.acs.commons.i18n
Maven dependency :