[FrameworkBundle][Translator] Validate locales.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
This is fine by me; the interface does not say that we cannot throw an exception here.