Skip to content

Commit 1539e6c

Browse files
Update README for localized files
Change-Id: I02a08e7a2b3f5ab28339c0e6bfa842e77608643d
1 parent 1c336b7 commit 1539e6c

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

LANGUAGES.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Supported Languages
2+
3+
| Code | Language |
4+
| ---- | -------- |
5+
| ar | Arabic |
6+
| bg | Bulgarian |
7+
| ca | Catalan |
8+
| zh_cn | Chinese (Simplified) |
9+
| zh_tw | Chinese (Traditional) |
10+
| hr | Croatian |
11+
| cs | Czech |
12+
| da | Danish |
13+
| nl | Dutch |
14+
| en | English |
15+
| en_gb | English (UK) |
16+
| fa | Farsi |
17+
| fil | Filipino |
18+
| fi | Finnish |
19+
| fr | French |
20+
| de | German |
21+
| el | Greek |
22+
| iw | Hebrew |
23+
| hi | Hindi |
24+
| hu | Hungarian |
25+
| id | Indonesian |
26+
| it | Italian |
27+
| ja | Japanese |
28+
| ko | Korean |
29+
| lv | Latvian |
30+
| lt | Lithuanian |
31+
| no | Norwegian (Bokmal) |
32+
| pl | Polish |
33+
| pt | Portuguese |
34+
| pt_pt | Portuguese (Portugal) |
35+
| ro | Romanian |
36+
| ru | Russian |
37+
| sr | Serbian |
38+
| sk | Slovak |
39+
| sl | Slovenian |
40+
| es | Spanish |
41+
| es_419 | Spanish (Latin America) |
42+
| sv | Swedish |
43+
| th | Thai |
44+
| tr | Turkish |
45+
| uk | Ukrainian |
46+
| vi | Vietnamese |

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,28 @@ of your page, below the initialization snippet from the Firebase Console:
5656
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/2.1.1/firebaseui.css" />
5757
```
5858

59+
#### Localized Widget
60+
61+
Localized versions of the widget are available through the CDN. To use a localized widget, load the
62+
localized JS library instead of the default library:
63+
64+
```html
65+
<script src="https://www.gstatic.com/firebasejs/ui/2.1.1/firebase-ui-auth__{LANGUAGE_CODE}.js"></script>
66+
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/2.1.1/firebase-ui-auth.css" />
67+
```
68+
69+
where `{LANGUAGE_CODE}` is replaced by the code of the language you want. For example, the French
70+
version of the library is available at
71+
`https://www.gstatic.com/firebasejs/ui/2.1.1/firebase-ui-auth__fr.js`. The list of available
72+
languages and their respective language codes can be found at [LANGUAGES.md](LANGUAGES.md).
73+
74+
Right-to-left languages also require the right-to-left version of the stylesheet, available at
75+
`https://www.gstatic.com/firebasejs/ui/2.1.1/firebase-ui-auth-rtl.css`, instead of the default
76+
stylesheet. The supported right-to-left languages are Arabic (ar), Farsi (fa), and Hebrew (iw).
77+
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+
5981
### Option 2: npm Module
6082

6183
Install FirebaseUI and its dependencies via npm using the following command:

0 commit comments

Comments
 (0)