You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Faker uses tags by and en-PAK for these locales. But the standard ones are be (or be-BY) and en-PK, see the standard locales list. These non-standard tags are usable with Faker but Java does not recognize them:
import java.util.Locale;
public class Test {
public static void main(String[] args) {
System.out.println(getLocaleDisplayName("by")); // by
System.out.println(getLocaleDisplayName("be-BY")); // Belarusian (Belarus)
System.out.println(getLocaleDisplayName("be")); // Belarusian
System.out.println(getLocaleDisplayName("en-PAK")); // pak
System.out.println(getLocaleDisplayName("en-PK")); // English (Pakistan)
}
static String getLocaleDisplayName(String languageTag) {
return Locale.forLanguageTag(languageTag)
.getDisplayName(Locale.ENGLISH);
}
}
I think there should be added be.yml (or be-BY.yml) and en-PK.yml. The by.yml and en-PAK.yml can be left for backward compatibility.
The text was updated successfully, but these errors were encountered:
Faker uses tags
by
anden-PAK
for these locales. But the standard ones arebe
(orbe-BY
) anden-PK
, see the standard locales list. These non-standard tags are usable with Faker but Java does not recognize them:I think there should be added
be.yml
(orbe-BY.yml
) anden-PK.yml
. Theby.yml
anden-PAK.yml
can be left for backward compatibility.The text was updated successfully, but these errors were encountered: