We have a project which must support both English and Spanish users. We used HTML web resources in place currently for English users for some of the field labels since the out of the box lengths for CRM labels were too short. Instead of having to re-create the HTML web resources in Spanish and show/hide based on the user's language settings, I would like to create a centralized XML or JavaScript library which stores the labels in both English and Spanish. Can anyone guide me on the following?:
1. The schema structure of the XML/JavaScript library--What should it look like?
2. How to reference the XML file using JavaScript when the form loads (I am planning to use Xrm.Page.context.getUserLcid()to check the user's language and then show the label based on that)?
I am very new to the concept of creating an XML library for this, but if someone could guide me, I'm sure I could pick it up from there. Thanks!