JSDoc comments. Added config.locale.possible regular expression.
Check if locale is supported when getting it.