Question & Answer
Question
How do you localize custom literals in IBM Sterling Store Web?
Cause
Custom literals are not appearing in Spanish locale.
Answer
- Go to \extensions\wsc\webpages\nls and update Extension_bundle.js file as below:
Add : "<language_code>":true
thus for spanish ( es),
---------------------------------------------------------
define({ root:
{ "extn_new_test":"new test",
},
"es": true // Add this line
});
---------------------------------------------------------
- Go to \extensions\wsc\webpages\nls and create a new folder "es".
- Create Extension_bundle.js file inside the \extensions\wsc\webpages\nls\es folder and specify the localized string for the bundle key.
NOTE:
Add localized strings in file \extensions\wsc\webpages\nls\es\Extension_bundle.js for bundle key as
below :
---------------------------------------------------------
define(
{
"extn_new_test":"<corresponding text in spanish>"
});
---------------------------------------------------------
Make sure root: is not be specified in the created bundle file.
- Login to application with user assigned to Spanish locale.
[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"9.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
Modified date:
11 February 2020
UID
swg21988226