I'm encountering this using bitshares-ui which uses this library to handle translations.
This library uses for...in to iterate over fallback language array, but if the fallback fail the code will continue to iterate over other objects in the array, like in the picture below. Using other for methods would avoid the problem.
You may want to avoid for...of though as it would possibly break some ES6-incompatible configurations... C-style for works.
https://github.com/martinandert/counterpart/blob/e1e4204623997f6135694b917d4d92837f7e2f94/index.js#L223-L224
I'm encountering this using bitshares-ui which uses this library to handle translations.
This library uses
for...in
to iterate over fallback language array, but if the fallback fail the code will continue to iterate over other objects in the array, like in the picture below. Using otherfor
methods would avoid the problem.You may want to avoid
for...of
though as it would possibly break some ES6-incompatible configurations... C-stylefor
works.