docs($translate): documents determinePreferredLanguage method
docs(*): style tuning