Bidialectism

the use of two distinct dialects (of the same language) for different social purposes.

For example, a local dialect is used at home or among friends, and the national standard dialect is used in formal contexts such as for work or study.

See Tridialectism.

Crystal, David. Rediscover Grammar, page 19.