@@ -1588,10 +1588,22 @@ where `{LANGUAGE_CODE}` is replaced by the
1588
1588
can be built with ` npm run build build-js-fr` . This will create a binary
1589
1589
` firebaseui__fr.js` in the ` dist/` folder.
1590
1590
1591
+ Build names for language codes with underscores, eg. ` zh_tw` , ` zh_cn` , ` pt_pt`
1592
+ will be mapped to ` zh-TW` , ` xh-CN` , ` pt-PT` . The underscore will be replaced by
1593
+ a hyphen symbol and the subsequent characters will be capitalized.
1594
+
1595
+ ` ` ` bash
1596
+ npm run build build-js-zh-TW
1597
+ ` ` `
1598
+
1599
+ This will create a binary ` firebaseui__zh_tw.js` in the ` dist/` folder.
1600
+
1591
1601
To build a localized npm FirebaseUI module , run:
1602
+
1592
1603
` ` ` bash
1593
1604
npm run build build-npm-{LANGUAGE_CODE}
1594
1605
` ` `
1606
+
1595
1607
Make sure all underscore symbols in the ` LANGUAGE_CODE` are replaced with
1596
1608
dashes.
1597
1609
This will generate ` dist/npm__{LANGUAGE_CODE}.js` .
@@ -1600,6 +1612,16 @@ You can then import/require it:
1600
1612
import firebaseui from './npm__{LANGUAGE_CODE}';
1601
1613
` ` `
1602
1614
1615
+ Build names for language codes with underscores, eg. ` zh_tw` , ` zh_cn` , ` pt_pt`
1616
+ will be mapped to ` zh-TW` , ` xh-CN` , ` pt-PT` . The underscore will be replaced by
1617
+ a hyphen symbol and the subsequent characters will be capitalized.
1618
+
1619
+ ` ` ` bash
1620
+ npm run build build-npm-zh-TW
1621
+ ` ` `
1622
+
1623
+ This will create a binary ` npm__zh_tw.js` in the ` dist/` folder.
1624
+
1603
1625
### Running the demo app
1604
1626
1605
1627
To run the demo app, you must have a Firebase project set up on the
0 commit comments