Add two template variables, expose html language code and language direction.