File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1660,6 +1660,30 @@ npm run build build-npm-zh-TW
1660
1660
1661
1661
This will create a binary ` npm__zh_tw.js ` in the ` dist/ ` folder.
1662
1662
1663
+ To build a localized ES module of FirebaseUI, run:
1664
+
1665
+ ``` bash
1666
+ npm run build build-esm-{LANGUAGE_CODE}
1667
+ ```
1668
+
1669
+ Make sure all underscore symbols in the ` LANGUAGE_CODE ` are replaced with
1670
+ dashes.
1671
+ This will generate ` dist/esm__{LANGUAGE_CODE}.js ` .
1672
+ You can then import/require it:
1673
+ ``` javascript
1674
+ import firebaseui from ' ./esm__{LANGUAGE_CODE}' ;
1675
+ ```
1676
+
1677
+ Build names for language codes with underscores, eg. ` zh_tw ` , ` zh_cn ` , ` pt_pt `
1678
+ will be mapped to ` zh-TW ` , ` xh-CN ` , ` pt-PT ` . The underscore will be replaced by
1679
+ a hyphen symbol and the subsequent characters will be capitalized.
1680
+
1681
+ ``` bash
1682
+ npm run build build-esm-zh-TW
1683
+ ```
1684
+
1685
+ This will create a binary ` esm__zh_tw.js ` in the ` dist/ ` folder.
1686
+
1663
1687
### Running the demo app
1664
1688
1665
1689
To run the demo app, you must have a Firebase project set up on the
You can’t perform that action at this time.
0 commit comments