rename yalt.accept() to yalt.parseAcceptLanguage(); rename yalt.select() to yalt.selectLanguage(); the return value of yalt.parseAcceptLanguage() complies with browser-side navigator.languages