Fallback v2

Please use the term "valid" rather than legal. It's more appropriate.
And I think this method might be more accurate as 'first_valid_locale'