-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a947b85
commit 6327303
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
sidebar_position: 9 | ||
--- | ||
|
||
# Locale | ||
|
||
**What are the languages supported by Topper?** | ||
|
||
Topper supports English and Brazilian Portuguese. | ||
|
||
**How to set a specific locale?** | ||
|
||
By default, Topper will use the locale set on the user's browser. If that locale is not supported it will default to English. | ||
|
||
To set a specific locale, you can set it as query parameter such as: `https://app.topperpay.com/?bt=<bootstrap token>&locale=en`. The supported values are `en` and `pt`. | ||
|
||
When the user user authenticates in Topper, the locale will be set accordingly with the user preferences. | ||
|
||
**Using the [Web SDK](./web-sdk.md):** | ||
|
||
```js | ||
const topper = new TopperWebSdk({ locale: TOPPER_LOCALES.PT }); | ||
|
||
topper.initialize({ bootstrapToken: <bootstrap token> }); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 9 | ||
sidebar_position: 10 | ||
--- | ||
|
||
# Theming | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 10 | ||
sidebar_position: 11 | ||
--- | ||
|
||
# Web SDK | ||
|