Last week I've started my experience with SCA and ...
# suitecommerce
c
Last week I've started my experience with SCA and customizing it for the first time. There have been customizations in the past which I fetched using the extension:fetch command. It's probably a simple question but I'm searching for the location of translations that I see in the extensions. For example I see
{{translate 'Select an option'}}
in login_register_register.tpl but nowhere in the total project folder can I find a JSON file with translations, let alone the
Select an option
text. I've also checked the SuiteCommerce configuration for the domain but there aren't any translations in the Multi-Domain tab.
s
Translations that are included in the bundle are stored in the Languages folder of the application whose translations you want to change. For example: \SC_23.2_Live\Advanced\ShoppingApplication\Languages\en_US.js
And yes, if you're going to add translations, generally it's better to put them into the configuration tab or as part of an extension, but you can change them in the JavaScript file if you wish
c
Thanks, I've indeed found them in /Web Site Hosting Files/
s
You're not editing the files directly in the file cabinet are you?
c
No I'm not editing them at all but neither do I see them in my extension project files. For now I added a translation in my site configuration
s
Ah OK
c
I just wanted to check where those custom translations were added in the past by others and can confirm that I saw them in that folder
s
You can also easily pull a list from the website itself, by opening the site in your browser's developer tools and typing in
SC.Translations
c
Ah, good to know.