Make license footer display with UI lang directionality

Adds ways to access the directionality of content language
and UI language separately in the JS.

Bug: 39048
Change-Id: I8eecaf647b37f072c0ef2acba25f1d384cb8781a