detect lang by locale

latest commit 90bf4e57bf
@papajoker authored