react-localize
react-localize copied to clipboard
xLocale
xLocale
depends on being able to visually see the elements, which is manual and seems prone to failure (you might miss it, or forget to check a hidden UI element, or it could be an attr passed down and manifest itself in an unexpected way).
I wonder if there'd be a way to, say, log these instances to the console. One idea would be a variation of DEBUG mode, which would turn on logging. It'd be rad if the component that tried to render the text and the line number could be logged, too, but I'm not sure how feasible that is.
Just an idea 💭
Hmm, wondering if the behavior of the props worked like this then:
-
xLocale
is used for the short-circuit to placeXXXXX
on the UI -
debug
is used to toggle the additional DOM property and logging
Still want to chat today?