jenseng / react-i18nliner

translate="yes" all the things
MIT License
45 stars 15 forks source link

ComponentInterpolator should accept null/undefined/etc placeholder props #11

Closed jenseng closed 9 years ago

jenseng commented 9 years ago

if a placeholder value is missing, you get <ComponentInterpolator> expected '${token}' placeholder value, none found ... right now it just does a falsy check, which is way too broad. instead we should see if it's present in props. if it is present, we should not raise an error, even if the value is undefined/null/false/0/""