Skip to content

Commit

Permalink
Add spanish locale
Browse files Browse the repository at this point in the history
  • Loading branch information
andregoncalvesdev committed Dec 4, 2024
1 parent 2a6de73 commit 194ead3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ const topper = new TopperWebSdk();

Where a `config` object can be passed to the constructor:

| Property | Default Value | Values |
| -------------- | ------------- | ------------------------------- |
| environment | `production` | `production`, `sandbox` |
| is_android_app | `false` | `true`, `false` |
| is_ios_app | `false` | `true`, `false` |
| locale | `en` | `en`, `en-US`, `pt`, `pt-BR` |
| theme | `dark` | `dark`, `light` |
| variant | `new-tab` | `new-tab`, `same-tab`, `iframe` |
| Property | Default Value | Values |
| -------------- | ------------- | ---------------------------------------------- |
| environment | `production` | `production`, `sandbox` |
| is_android_app | `false` | `true`, `false` |
| is_ios_app | `false` | `true`, `false` |
| locale | `en` | `en`, `en-US`, `pt`, `pt-BR`, 'es', `es-ES` |
| theme | `dark` | `dark`, `light` |
| variant | `new-tab` | `new-tab`, `same-tab`, `iframe` |

### Initiate Topper

Expand Down
4 changes: 3 additions & 1 deletion src/enums/locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ export enum Locales {
EN = 'en',
EN_US = 'en-US',
PT = 'pt',
PT_BR = 'pt-BR'
PT_BR = 'pt-BR',
ES = 'es',
ES_ES = 'es-ES'
}

0 comments on commit 194ead3

Please sign in to comment.