core icon indicating copy to clipboard operation
core copied to clipboard

fix(service): allow setting translations in deep objects

Open hbsfaria opened this issue 1 year ago • 1 comments

This PR fixes the issue mentioned in #216 .

When we pass a key with nested properties, for example, profilePage.header.name, it will set the key as is instead of creating the necessary nested objects.

Currently After this PR
{
 "profilePage.header.name": "Test"
}
{
 "profilePage": {
     "header": {
         "name": "Test"   
     }
  }
}

This change will check if the received key has ., creating the nested objects automatically if they do not exist in the appropriate translation object.

hbsfaria avatar Jul 09 '22 12:07 hbsfaria

What is going on with this? Can anyone check it and merge it?

mgorczynski2 avatar May 10 '23 08:05 mgorczynski2