whatlang library sometimes detects incorrect language with the same or similar alphabet, for example russian|belorussian|ukrainian or english|czech|slovak. So in case when we don't have data for the detected language, we can use messages from a language with the same alphabet using script field of whatlang, instead of just a random language.
whatlang
library sometimes detects incorrect language with the same or similar alphabet, for example russian|belorussian|ukrainian or english|czech|slovak. So in case when we don't have data for the detected language, we can use messages from a language with the same alphabet usingscript
field ofwhatlang
, instead of just a random language.