Closed ryanseddon closed 10 years ago
You are right, that's not already possible.
But I am always open to pull requests.
Thanks for your pull request. After merging it I committed some "improvements":
splitKeyChar
to separator
(which is easier to grasp, I think)getSeparator
and setSeparator
function to change the default separatorwithSeparator
function for convenienceA new minor version was released to npm.
I hope this works for you. Tell me if you still have issues with it.
splitKeyChar
was a terrible name so happy for the changes. get/setSeparator is a really good idea and is perfect for our needs. Thanks for merging :+1:
I have a translation service that returns a flat object that is 1 level deep and all keys are namespaced using a dot as seperator for various reasons. Is there an option to tell counterpart to not split via dots?
Would you be open to a PR adding this if it's not already possible?