This term describes the ability to switch between two or more language/dialects depending on the social setting.
What is code-switching