facebook/wordpress — pull request #361 by niallkennedy (2012-12-23 19:19:43+00:00)
Title: update locales code for accuracy and expansion

Update valid Facebook locales: only include locale codes listed in [the Facebook locale XML document](https://www.facebook.com/translations/FacebookLocales.xml).

Create a new `Facebook_Loader` const: `DEFAULT_LOCALE`. Set to `en_US` by default.

Introduce separate locale sanitization and validation functions. Provides better modular access for outside code referencing Facebook values. Pass filtered locale value through validation function.

`Facebook_Loader->$locale` is always set.