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

Is it possible when registering several json files to overwrite the previous key contents with latest file? #240

Open
halafi opened this issue Nov 30, 2023 · 0 comments

Comments

@halafi
Copy link

halafi commented Nov 30, 2023

Is your feature request related to a problem? Please describe.
Imagine I have:
en.json
en-overrides.json

I load en.json first and then en-overrides.json

en.json:

{
"foo": ["bar"]
}

en-overrides.json

{
"foo": ["baz"]
}

what happens is key foo will contain ["bar", "baz"] is there a possibility to change the behavior?
Describe the solution you'd like
Maybe when calling register define the desired behavior "merge", "latest", "first" etc.

How important is this feature to you?
Maybe this is already possible but will appreciate early response.

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

No branches or pull requests

1 participant