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

Keep file names as parent object of content in merged files #31

Closed
mindtraveller opened this issue Feb 18, 2018 · 3 comments
Closed

Keep file names as parent object of content in merged files #31

mindtraveller opened this issue Feb 18, 2018 · 3 comments

Comments

@mindtraveller
Copy link

Hi,
Do you plan to add the possibility to keep file names in result file?

The example:
There are separate i18n files:

sign_in.json

{  
    "submit": "Sign in"
}
sign_up.json

{
    "submit": "Sign up" 
}

I'd like to have following structure of the resulting file:

{ 
    "sign_in": { 
        "submit": "Sign in"
    }, 
    "sign_up": { 
        "submit": "Sign up"
    }
}
@tettusud
Copy link
Owner

Sure let me try to add it up.

@mindtraveller
Copy link
Author

Thank you!

tettusud added a commit that referenced this issue May 12, 2018
tettusud added a commit that referenced this issue May 12, 2018
@tettusud tettusud mentioned this issue May 12, 2018
tettusud added a commit that referenced this issue May 12, 2018
Option added to prefix fileName with file content before merging into result. #31
@tettusud
Copy link
Owner

I have given a new release 1.0.15 ,please check, you need to pass option prefixFileName as true, in order to prefix the file names.

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

2 participants