Add ability to use value prop and fall back to children#53
Add ability to use value prop and fall back to children#53kborchers wants to merge 1 commit intoglobalizejs:masterfrom
Conversation
|
@rxaviers a review would be great. Also, I wanted to add the ability to use |
|
Excellent, reviewing it is in my TODO list now. About the empty message, technically it's an easy change, but I'm wondering why would you want to internationalize an empty string? Would it be different in other locales? |
Definitely not different in other locales but because of the way react-globalize works, there's no way to say "don't try to internationalize this component until you have a To further illustrate, perhaps my app has an "Info Bar" that displays internationalized messages based on user interaction. It would be nice on initial load for the "Info Bar" component to maybe look something like or something like that but that throws |
|
Kris, just reviewed it. The option to use either a |
|
About the empty message, I would defer this until there's a compelling use case. I believe one can simply leave it as |
|
AFAICT, you can use |
|
Thanks @necolas, I will try to look into this tonight. It's been quite a while since I've touched this project and there are likely many conflicts to resolve but I will take a stab at it. |
Fixes #34