cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SmartEdit localization

phoude
Participant
0 Likes
1,225

Hi, I want to add new localization keys to my smartedit-locales_xx.properties files and I don't know how to "compile" them. When I use a new key or change an existing one then I don't see any of my change after "ant all". Not sure what triggers the compilation of locales files.

Accepted Solutions (1)

Accepted Solutions (1)

phoude
Participant
0 Likes

It works after setting all keys to lowercase. I was using camel casing (e.g. type.myMixedCasedKey.name). I inspected the content of /smarteditwebservices/v1/i18n/translations/en_US and saw that all my keys were set to lower case even though it was not the case in the source files. Naturally all references using camel casing could not find a match.

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

Hi Pascal Houde - you add/update the localization values for SmarEdit in the same way you do for other pages (storefront, backoffice etc.). Given below is the syntax:

type.your-item-type-code.name=your-localized-value

and there is an example at https://help.sap.com/viewer/86dd1373053a4c2da8f9885cc9fbe55d/1905/en-US/6c036ecad0de4e269fb50f2a41de...

phoude
Participant
0 Likes

I have added a new key and it won't detect it. If I change an existing key that came from the auto-generated smartedit extension then it still uses the old value. I don't know why any change I make are not reflected.

arvind-kumar_avinash
Active Contributor
0 Likes

Are you sure you are adding the key into right locale file of your custom extension?