HTML markup can declaratively refer to string resources. It is good practice to extract localizable strings from HTML so that they can be maintained and translated separately. To do this, strings should be placed into a separate string table (resources.resjson) and referred to from the HTML, with a data-win-res attribute. The HTML elements can then be processed (typically on DOMContentLoaded) to replace the elements with their strings.

Click the button below to localize the HTML. HTML will load in one of the application's languages (en-US, de-DE, ja or fr-FR) according to the user's preference.

This is placeholder text that will get replaced when the button is clicked above

- This is placeholder text that will get replaced when the button is clicked above
- This is placeholder text that will get replaced when the button is clicked above