@@ -63,17 +63,17 @@ Localized versions of the widget are available through the CDN. To use a localiz
63
63
localized JS library instead of the default library:
64
64
65
65
``` html
66
- <script src =" https://www.gstatic.com/firebasejs/ui/3.1.1 /firebase-ui-auth__{LANGUAGE_CODE}.js" ></script >
67
- <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/3.1.1 /firebase-ui-auth.css" />
66
+ <script src =" https://www.gstatic.com/firebasejs/ui/3.2.0 /firebase-ui-auth__{LANGUAGE_CODE}.js" ></script >
67
+ <link type =" text/css" rel =" stylesheet" href =" https://www.gstatic.com/firebasejs/ui/3.2.0 /firebase-ui-auth.css" />
68
68
```
69
69
70
70
where ` {LANGUAGE_CODE} ` is replaced by the code of the language you want. For example, the French
71
71
version of the library is available at
72
- ` https://www.gstatic.com/firebasejs/ui/3.1.1 /firebase-ui-auth__fr.js ` . The list of available
72
+ ` https://www.gstatic.com/firebasejs/ui/3.2.0 /firebase-ui-auth__fr.js ` . The list of available
73
73
languages and their respective language codes can be found at [ LANGUAGES.md] ( LANGUAGES.md ) .
74
74
75
75
Right-to-left languages also require the right-to-left version of the stylesheet, available at
76
- ` https://www.gstatic.com/firebasejs/ui/3.1.1 /firebase-ui-auth-rtl.css ` , instead of the default
76
+ ` https://www.gstatic.com/firebasejs/ui/3.2.0 /firebase-ui-auth-rtl.css ` , instead of the default
77
77
stylesheet. The supported right-to-left languages are Arabic (ar), Farsi (fa), and Hebrew (iw).
78
78
79
79
### Option 2: npm Module
@@ -571,6 +571,11 @@ The default country to select in the phone number input can also be set.
571
571
[ List of supported country codes] ( javascript/data/README.md ) . If unspecified,
572
572
the phone number input will default to the United States (+1).
573
573
574
+ The countries to select can also be configured with ` blacklistedCountries ` or
575
+ ` whitelistedCountries ` . It accepts either ISO (alpha-2) or E164 (prefix with '+')
576
+ formatted country code. Invalid country code will be ignored.
577
+ ` whitelistedCountries ` and ` blacklistedCountries ` cannot be specified at the same time.
578
+
574
579
The following options are currently supported. Any other
575
580
parameters will be ignored.
576
581
@@ -600,7 +605,15 @@ ui.start('#firebaseui-auth-container', {
600
605
// will always have higher priority than 'loginHint' which will be ignored
601
606
// in their favor. In this case, the default country will be 'GB' even
602
607
// though 'loginHint' specified the country code as '+1'.
603
- loginHint: ' +11234567890'
608
+ loginHint: ' +11234567890' ,
609
+ // You can provide a 'whitelistedCountries' or 'blacklistedCountries' for
610
+ // countries to select. It takes an array of either ISO (alpha-2) or
611
+ // E164 (prefix with '+') formatted country codes. If 'defaultCountry' is
612
+ // not whitelisted or is blacklisted, the default country will be set to the
613
+ // first country available (alphabetical order). Notice that
614
+ // 'whitelistedCountries' and 'blacklistedCountries' cannot be specified
615
+ // at the same time.
616
+ whitelistedCountries: [' US' , ' +44' ]
604
617
}
605
618
]
606
619
});
0 commit comments