-
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
b18c996
commit 5624d68
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?** | ||
|
||
Without any param passed, the widget will try to infer the user locale from the browser and if the browser locale is not supported it will default to English. | ||
|
||
You can override that behavior by adding `&locale=en` to the URL and force a specific locale from the supported ones, such as `https://app.topperpay.com/?bt=<bootstrap token>&locale=pt`. The supported values are `en` and `pt`. | ||
|
||
After the user authenticates within 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 | ||
|