react-localize icon indicating copy to clipboard operation
react-localize copied to clipboard

xLocale

Open jamesplease opened this issue 8 years ago • 1 comments

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 💭

jamesplease avatar Jul 14 '16 18:07 jamesplease

Hmm, wondering if the behavior of the props worked like this then:

  • xLocale is used for the short-circuit to place XXXXX on the UI
  • debug is used to toggle the additional DOM property and logging

Still want to chat today?

whichsteveyp avatar Jul 15 '16 16:07 whichsteveyp