Skip to content

Commit e2d2163

Browse files
committed
Added Brazilian portuguese
1 parent 3dba3f4 commit e2d2163

File tree

2 files changed

+286
-285
lines changed

2 files changed

+286
-285
lines changed

README.md

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You just have to install the code. When the user clicks on accept cookies, the g
1818
## How to use
1919
Add this code to your html `<head>` or `<body>` tag.
2020
```html
21-
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/[email protected].1/src/glowCookies.min.js"></script>
21+
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/[email protected].2/src/glowCookies.min.js"></script>
2222
<script>
2323
glowCookies.start('en', {
2424
style: 1,
@@ -43,55 +43,56 @@ Now you can choose between these available languages:
4343
- French (`fr`)
4444
- Thai (`th`)
4545
- Slovak (`sk`)
46+
- Brazilian portugese (`pt_BR`)
4647

4748
Set language in the first parameter of `glowCookies.start('en', { })` method.
4849

4950
## Tracking options
5051
These are the parameters that you can modify to add your tracking codes or custom scripts.
5152

52-
| Parameter | Type | Values |
53-
| ------------- | ------------- | ------------- |
54-
| `analytics` | String | Example: `"G-FH87DE17XF"` (Analytics tracking code) |
55-
| `facebookPixel` | String | Example: `"990955817632355"` (Facebook Pixel code) |
56-
| `HotjarTrackingCode` | String | Example: `"990955817632355"` (Hotjar tracking code) |
57-
| `customScript` (Inline) | Object | Example: `[{ type: 'custom', position: 'body', content: 'console.log('custom script');' }]` |
58-
| `customScript` (src) | Object | Example: `[{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }]` |
53+
| Parameter | Type | Values |
54+
| ----------------------- | ------ | ------------------------------------------------------------------------------------------------------------------- |
55+
| `analytics` | String | Example: `"G-FH87DE17XF"` (Analytics tracking code) |
56+
| `facebookPixel` | String | Example: `"990955817632355"` (Facebook Pixel code) |
57+
| `HotjarTrackingCode` | String | Example: `"990955817632355"` (Hotjar tracking code) |
58+
| `customScript` (Inline) | Object | Example: `[{ type: 'custom', position: 'body', content: 'console.log('custom script');' }]` |
59+
| `customScript` (src) | Object | Example: `[{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }]` |
5960

6061
## Config Banner
6162
These are the parameters that you can modify to change certain banner options
6263

63-
| Parameter | Type | Values |
64-
| ------------- | ------------- | ------------- |
65-
| `policyLink` | String | Example: `"https://yourlink.com"` (Your cookies policy link) |
66-
| `hideAfterClick` | Boolean | (`true` or `false`) Default: `true` (Hide banner after Accept or Reject cookies) |
64+
| Parameter | Type | Values |
65+
| ---------------- | ------- | -------------------------------------------------------------------------------- |
66+
| `policyLink` | String | Example: `"https://yourlink.com"` (Your cookies policy link) |
67+
| `hideAfterClick` | Boolean | (`true` or `false`) Default: `true` (Hide banner after Accept or Reject cookies) |
6768

6869

6970
## Customize Banner
7071
Now there are certain parameters that you can change to customize your banner.
7172

72-
| Parameter | Type | Values |
73-
| ------------- | ------------- | ------------- |
74-
| `border` | String | (`"border"` or `"none"`) Default: `"border"` |
75-
| `position` | String | (`"left"` or `"right"`) Default: `"left"` |
76-
| `bannerDescription` | String | Example: `"We use our own and third-party cookies to personalize content and to analyze web traffic."` |
77-
| `bannerLinkText` | String | Example: `"Read more about cookies"` |
78-
| `bannerBackground` | String | Example: `"#FAFAFA"` Example: `"lightblue"` |
79-
| `bannerColor` | String | Example: `"#000"` Example: `"blue"` |
80-
| `bannerHeading` | String | Example: `"Use of cookies"` Default: None |
81-
| `acceptBtnText` | String | Example: `"Accept cookies"` |
82-
| `acceptBtnColor` | String | Example: `"#000"` Example: `"blue"` |
83-
| `acceptBtnBackground` | String | Example: `"#fff"` Example: `"white"` |
84-
| `rejectBtnText` | String | Example: `"Reject"` |
85-
| `rejectBtnBackground` | String | Example: `"#000"` Example: `"blue"` |
86-
| `rejectBtnColor` | String | Example: `"#fff"` Example: `"white"` |
87-
| `manageColor` | String | Example: `"#fff"` Example: `"white"` |
88-
| `manageBackground` | String | Example: `"#f2f2f2"` Example: `"blue"` |
89-
| `manageText` | String | Example: `"Manage cookies"` |
73+
| Parameter | Type | Values |
74+
| --------------------- | ------ | ------------------------------------------------------------------------------------------------------ |
75+
| `border` | String | (`"border"` or `"none"`) Default: `"border"` |
76+
| `position` | String | (`"left"` or `"right"`) Default: `"left"` |
77+
| `bannerDescription` | String | Example: `"We use our own and third-party cookies to personalize content and to analyze web traffic."` |
78+
| `bannerLinkText` | String | Example: `"Read more about cookies"` |
79+
| `bannerBackground` | String | Example: `"#FAFAFA"` Example: `"lightblue"` |
80+
| `bannerColor` | String | Example: `"#000"` Example: `"blue"` |
81+
| `bannerHeading` | String | Example: `"Use of cookies"` Default: None |
82+
| `acceptBtnText` | String | Example: `"Accept cookies"` |
83+
| `acceptBtnColor` | String | Example: `"#000"` Example: `"blue"` |
84+
| `acceptBtnBackground` | String | Example: `"#fff"` Example: `"white"` |
85+
| `rejectBtnText` | String | Example: `"Reject"` |
86+
| `rejectBtnBackground` | String | Example: `"#000"` Example: `"blue"` |
87+
| `rejectBtnColor` | String | Example: `"#fff"` Example: `"white"` |
88+
| `manageColor` | String | Example: `"#fff"` Example: `"white"` |
89+
| `manageBackground` | String | Example: `"#f2f2f2"` Example: `"blue"` |
90+
| `manageText` | String | Example: `"Manage cookies"` |
9091

9192

9293
## Fully customized banner
9394
```html
94-
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/[email protected].1/src/glowCookies.min.js"></script>
95+
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/[email protected].2/src/glowCookies.min.js"></script>
9596
<script>
9697
glowCookies.start('en', {
9798
style: 2,

0 commit comments

Comments
 (0)