fix(locale): Throw an exception when requesting an unsupported locale (closes #5028)