Remove Locale.isPartial
Set document's lang and dir