add language swticher logic to page template