I have a custom button created in the ribbon of tridion.
If an item either Component/Page has been selected i need to get the info whether the item is localized or not. Based on that custom button will be enabled/disabled.
For getting the tcmid of the selected component/page i am currently writing as
selection.getItem(0); in my javascript.
Similarly, how can i get the localized info of the selected item(Component/Page)