Add the way for javascript to determine the current language