Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(service): allow setting translations in deep objects #1382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hbsfaria
Copy link

@hbsfaria hbsfaria commented Jul 9, 2022

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 hbsfaria marked this pull request as ready for review July 9, 2022 12:05
@mgorczynski2
Copy link

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

@CodeAndWeb
Copy link
Member

Integrated in upcoming V16
CodeAndWeb@0256722

@CodeAndWeb CodeAndWeb closed this Sep 25, 2024
@ocombe ocombe reopened this Sep 26, 2024
@ocombe
Copy link
Collaborator

ocombe commented Sep 26, 2024

In your fork v16, please do not make people confused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants