Tiqa / redux-polyglot

Polyglot.js bindings for Redux
MIT License
58 stars 13 forks source link

Add titleize translation morph #73

Closed nemosupremo closed 7 years ago

nemosupremo commented 7 years ago

This PR adds a titleize translation under the shorthand tt. titleize is a string transform inherited from underscore.string that uppercases the first letter of every word ("hello world" -> "Hello World"). The implementation used here, is the same that underscore.string uses. We use this morph a lot internally and I thought it may be common enough to be of use to others.

If this PR goes through and #72 goes through, #72 would need to be updated on it's PropType.