Skip to content

Commit a1d0ddc

Browse files
Merge pull request #182 from firebase/i18n
I18n build process.
2 parents d839c18 + f6ad9fb commit a1d0ddc

File tree

5 files changed

+268
-141
lines changed

5 files changed

+268
-141
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ Right-to-left languages also require the right-to-left version of the stylesheet
7575
`https://www.gstatic.com/firebasejs/ui/2.3.0/firebase-ui-auth-rtl.css`, instead of the default
7676
stylesheet. The supported right-to-left languages are Arabic (ar), Farsi (fa), and Hebrew (iw).
7777

78-
Internationalized binaries are currently not available in the GitHub repository due to dependencies
79-
on translation infrastructure that are not compatible with open sourced tools.
80-
8178
### Option 2: npm Module
8279

8380
Install FirebaseUI and its dependencies via npm using the following command:
@@ -670,6 +667,15 @@ npm run build
670667

671668
This will create output files in the `dist/` folder.
672669

670+
To build a localized JavaScript binary, run:
671+
```bash
672+
npm run build build-js-{LANGUAGE_CODE}
673+
```
674+
where `{LANGUAGE_CODE}` is replaced by the
675+
[code of the language you want](LANGUAGES.md). For example, the French binary
676+
can be built with `npm run build build-js-fr`. This will create a binary
677+
`firebaseui__fr.js` in the `dist/` folder.
678+
673679
### Running the demo app
674680

675681
To run the demo app, you must have a Firebase project set up on the

buildtools/generate_test_files.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
cd "$(dirname $(dirname "$0"))"
2525

2626
echo "Compiling templates..."
27-
node ./buildtools/soy_files.js generated
27+
npm run build build-soy
28+
cp -r ./out/soy ./generated
29+
npm run build clean
2830

2931
echo "Generating dependency file..."
3032
CLOSURE_PATH="google-closure-templates/javascript"

buildtools/soy_files.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)