Was change to use the Locale#getLanguage. #27

Please review #27 ,and merge to master branch.

note:
Was do some refactoring at the same time.