substituteMapping

substituteMapping function is use to overwrite the lang name if it is a lang from mapping, and substitute that to the value in which its pointing to.

e.g.   mappings: { 'en': 'en-CA' } now 'en' will become 'en-CA'