fix(l10n): use correct locale if specified in url for legal pages

Fixes #1337.