2.2.44 • Published 5 months ago

globalseo v2.2.44

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Globalseo.ai Integration Guide

Table of Contents

  1. About the Integration
  2. Script Tag Example
  3. Optional Configuration
  4. Server-Side Rendering Configuration
  5. Excluding Text from Translation
  6. Advanced Configuration

About the Integration

To set up Globalseo, follow these steps: 1. Sign Up: Go to Globalseo and sign up. 2. Create a Project: Select the languages you want to translate your website into. 3. Select Integration Mode: Choose how you want your website to be translated. Then click "Save" and follow the integration steps on the website.

Script Tag Example

Below is a script tag example with all possible configurations:

<script
    src="https://cdn.globalseo.ai/translate.js"
    data-use-browser-language="true"
    data-exclude-classes="chatbot,no-translate"
    data-exclude-ids="user-comment,code-snippet"
    data-exclude-paths="/admin,/blog"
    data-translation-mode="subdomain"
    data-translate-attributes="true"
    data-lang-parameter="lang"
    data-timeout="3000"
    data-replace-links="true"
    data-custom-language-code="kk=kz"
    data-exclude-contents="{{regex1}} {{regex2}}"
    data-translate-form-placeholder="true"
    data-dynamic-translation="true"
    data-translate-select-options="true">
</script>

Optional Configuration

  • data-use-browser-language: Automatically sets the language based on the user's browser language. Set to false to disable.
  • data-exclude-classes: List CSS class names to exclude from translation, separated by commas (e.g., chatbot, no-translate).
  • data-exclude-ids: List IDs to exclude from translation, separated by commas (e.g., user-comment, code-snippet).
  • data-exclude-paths: List URL paths to exclude from translation, separated by commas (e.g., /admin, /blog). Note: Each path should start with a /.

Server-Side Rendering Configuration

  • data-translation-mode: Modifies the translated pages logic. Set to subdomain (e.g., de.domain.com) or subdirectory (e.g., domain.com/de). Do not use this option unless using SSR (available in higher plans).

Excluding Text from Translation

To prevent translation of specific content, add the class globalseo-exclude to elements, such as chat pop-ups or user-generated text.

Note: Input fields and iframes are ignored by default.

Advanced Configuration

  • data-translate-attributes: Translates title & alt attributes of images and links for improved SEO and accessibility. Set to true to enable.
  • data-lang-parameter: Custom URL parameter for setting the language (default: lang).
  • data-timeout: Delay (in milliseconds) before the translation service activates, ensuring full page load.
  • data-replace-links: Replaces links with translated URLs by appending the language code. Set to false to disable.
  • data-custom-language-code: Custom language code mapping (e.g., kk=kz for "KZ" instead of "KK").
  • data-exclude-contents: Excludes specific text from translation using regular expressions ({{regex1}} {{regex2}}).
  • data-translate-form-placeholder: Translates form placeholders. Set to true to enable.
  • data-dynamic-translation: Allows automatic generation of new translations. Set to false to disable. If quota is reached, setting this to false prevents error messages from appearing on your site.
  • data-translate-select-options: Translates options inside <select> elements. Set to true to enable. The globalseo-exclude class is still respected.
2.2.19

9 months ago

2.2.28

8 months ago

2.2.29

8 months ago

2.2.26

8 months ago

2.2.27

8 months ago

2.2.24

8 months ago

2.2.25

8 months ago

2.2.22

9 months ago

2.2.23

8 months ago

2.2.20

9 months ago

2.2.21

9 months ago

2.2.39

7 months ago

2.2.37

7 months ago

2.2.38

7 months ago

2.2.35

7 months ago

2.2.36

7 months ago

2.2.33

7 months ago

2.2.34

7 months ago

2.2.31

8 months ago

2.2.32

8 months ago

2.2.30

8 months ago

2.2.44

5 months ago

2.2.42

5 months ago

2.2.43

5 months ago

2.2.40

6 months ago

2.2.41

6 months ago

2.2.18

9 months ago

2.2.17

9 months ago

2.2.15

9 months ago

2.2.16

9 months ago

2.2.13

9 months ago

2.2.14

9 months ago

2.2.11

9 months ago

2.2.12

9 months ago

2.2.3

9 months ago

2.2.5

9 months ago

2.2.4

9 months ago

2.2.7

9 months ago

2.2.6

9 months ago

2.2.10

9 months ago

2.2.9

9 months ago

2.2.8

9 months ago

2.2.1

9 months ago

2.2.2

9 months ago

2.1.98

9 months ago

2.1.99

9 months ago

2.1.100

9 months ago

2.1.89

9 months ago

2.1.87

9 months ago

2.1.88

9 months ago

2.1.85

9 months ago

2.1.86

9 months ago

2.1.83

9 months ago

2.1.84

9 months ago

2.1.81

9 months ago

2.1.82

9 months ago

2.1.80

9 months ago

2.1.58

10 months ago

2.1.59

10 months ago

2.1.56

10 months ago

2.1.57

10 months ago

2.1.54

11 months ago

2.1.55

10 months ago

2.1.96

9 months ago

2.1.97

9 months ago

2.1.53

11 months ago

2.1.94

9 months ago

2.1.95

9 months ago

2.1.92

9 months ago

2.1.93

9 months ago

2.1.90

9 months ago

2.1.91

9 months ago

2.1.69

10 months ago

2.1.67

10 months ago

2.1.68

10 months ago

2.1.65

10 months ago

2.1.66

10 months ago

2.1.63

10 months ago

2.1.64

10 months ago

2.1.61

10 months ago

2.1.62

10 months ago

2.1.60

10 months ago

2.1.78

10 months ago

2.1.79

9 months ago

2.1.76

10 months ago

2.1.77

10 months ago

2.1.74

10 months ago

2.1.75

10 months ago

2.1.72

10 months ago

2.1.73

10 months ago

2.1.70

10 months ago

2.1.71

10 months ago

2.1.52

11 months ago

2.1.51

11 months ago

2.1.50

11 months ago

2.1.49

11 months ago

2.1.48

11 months ago

2.1.47

11 months ago

2.1.46

11 months ago

2.1.45

11 months ago

2.1.44

11 months ago

2.1.43

11 months ago

2.1.42

11 months ago

2.1.41

12 months ago

2.1.40

12 months ago

2.1.39

12 months ago

2.1.38

12 months ago

2.1.37

12 months ago

2.1.36

12 months ago

2.1.35

12 months ago

2.1.34

12 months ago

2.1.33

12 months ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago