[utils] Improve language auto discovery
Currently the auto discovery of the language doesn't take into account usual errors related to loading a json file. This patch adds more failure handling that should cover these.
Currently the auto discovery of the language doesn't take into account usual errors related to loading a json file. This patch adds more failure handling that should cover these.