Handle x- form of locale better (spec compliance) git-svn-id: http://v8-i18n.googlecode.com/svn/trunk@191 24c52dca-d3ef-abce-e343-6dbe4d066545
diff --git a/src/locale.js b/src/locale.js index 951f497..ed61d0b 100644 --- a/src/locale.js +++ b/src/locale.js
@@ -99,6 +99,11 @@ return false; } + // Just return if it's a x- form. It's all private. + if (locale.indexOf('x-') === 0) { + return true; + } + // Check if there are any duplicate variants or singletons (extensions). // Remove private use section.