Localizing Web Components and JavaScript Files

This topic describes how to localize Web components and JavaScript files that return strings and HTML pages.

  1. Go to Settings > Customizations > Customize the System.
  2. In the solution page, click Web Resources in the left pane.
  3. Using the Custom Filters option, search for the resx file. By default, the file ResourceStrings.resx is retrieved.
  4. Create another instance of the resx file. Specify its name in the format ResourceStrings.<language code>.resx. For example, for Spanish (Spain) the name of the file must be ResourceStrings.3082.resx as the language code for Spanish (Spain) is 3082. To do so:
    1. Click New. The Web Resource: New page is displayed.
    2. In the Type list, select String (RESX).
    3. Select the localized language in the Language list.
    4. Type appropriate values in other fields.
    5. In the Upload field, select and upload the newly created resx file.
    6. Click Save and then click Publish.
  5. Copy the ResourceStrings.resx file and rename it to ResourceStrings.<Language code>.resx.
  6. Modify strings in the ResourceStrings.<Language code>.resx file and then save your changes.
  7. Search for the Localization.js file, and click the Localization.js file.
  8. In the Web Resource: Localization.js page, click the Dependencies tab.
  9. Click Add and then add the recently saved ResourceStrings.<Language code>.resx file.
  10. Click Save and then click Publish.