The logic in the original code would have tried to get the configuration option called locale first, and then the configuration option called language.
But in fact, even without the locale option, locale still has a default value of 'en' (I guess), which caused the code to not even get to the part where it gets the language, so I just switched the order.
This problem doesn't just occur when the type is timeago, but others as well.
142
The logic in the original code would have tried to get the configuration option called
locale
first, and then the configuration option calledlanguage
.But in fact, even without the
locale
option, locale still has a default value of'en'
(I guess), which caused the code to not even get to the part where it gets thelanguage
, so I just switched the order.This problem doesn't just occur when the type is
timeago
, but others as well.