Template:Lang

Return language setting, auto detect by page url or manual set, used by other templates for l10n.

Usage
Manual set language:

is 2-characters language code: en/es/it ... etc.

Get language code (auto detect or previously set):

It will return 2-characters language code: en/es/it ... etc.