If you replace any of the default UI classes as described above, you can still use a JSON UI configuration file to specify custom strings for localization. Here are the steps:
Prepare and store the JSON UI configuration file and the HTML for your replacement UI. Ensure that the HTML for your replacement UI contains the data-tag attribute whose value tells which key in the UI configuration file's strings object corresponds to the localized word. For details on this step, see Localizing Your Replacement UI with the Web App SDK.
From your JavaScript app, call NNLUiConfig.addUiConfig() or NNLUiConfig.downloadUiConfig() to specify the JSON UI configuration file you are using.
Apply your JSON UI configuration to a specific view by calling ViewWrapper.onShow():
var my_view = document.getElementById("my_view");
new ViewWrapper(my_view).onShow();