[FrameworkBundle][Translator] Validate locales.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
this would require to change the interface, that also getLocale can throw the exception from setLocale