Localizing Web Components and JavaScript Files
This topic describes how to localize Web components and JavaScript files that return strings and HTML pages.
- Go to Settings > Customizations > Customize the System.
- In the solution page, click Web Resources in the left pane.
- Using the Custom Filters option, search for the resx file. By default, the file ResourceStrings.resx is retrieved.
- 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:
- Click New. The Web Resource: New page is displayed.
- In the Type list, select String (RESX).
- Select the localized language in the Language list.
- Type appropriate values in other fields.
- In the Upload field, select and upload the newly created resx file.
- Click Save and then click Publish.
- Copy the ResourceStrings.resx file and rename it to ResourceStrings.<Language code>.resx.
- Modify strings in the ResourceStrings.<Language code>.resx file and then save your changes.
- Search for the Localization.js file, and click the Localization.js file.
- In the Web Resource: Localization.js page, click the Dependencies tab.
- Click Add and then add the recently saved ResourceStrings.<Language code>.resx file.
- Click Save and then click Publish.