nemahaja commented on code in PR #17:
URL: 
https://github.com/apache/sling-org-apache-sling-i18n/pull/17#discussion_r1808330668


##########
src/main/java/org/apache/sling/i18n/impl/JcrResourceBundleProvider.java:
##########
@@ -696,17 +777,26 @@ static Locale toLocale(String localeString) {
                 }
             }
         }
-        if (!isValidCountryCode) {
-            country = Locale.getDefault().getCountry();
-        }
+        return isValidCountryCode;
+    }
 
-        // language and country
-        if (parts.length == 2) {
-            return new Locale(lang, country);
+    private static boolean isAlpha(char c) {

Review Comment:
   Yes, it would require to add a new dependency on OSGI level.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to