2.2.44 • Published 1 year ago

globalseo v2.2.44

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.22

1 year ago

2.2.23

1 year ago

2.2.20

1 year ago

2.2.21

1 year ago

2.2.39

1 year ago

2.2.37

1 year ago

2.2.38

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

2.2.44

1 year ago

2.2.42

1 year ago

2.2.43

1 year ago

2.2.40

1 year ago

2.2.41

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.15

1 year ago

2.2.16

1 year ago

2.2.13

1 year ago

2.2.14

1 year ago

2.2.11

1 year ago

2.2.12

1 year ago

2.2.3

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.1

1 year ago

2.2.2

1 year ago

2.1.98

1 year ago

2.1.99

1 year ago

2.1.100

1 year ago

2.1.89

1 year ago

2.1.87

1 year ago

2.1.88

1 year ago

2.1.85

1 year ago

2.1.86

1 year ago

2.1.83

1 year ago

2.1.84

1 year ago

2.1.81

1 year ago

2.1.82

1 year ago

2.1.80

1 year ago

2.1.58

2 years ago

2.1.59

2 years ago

2.1.56

2 years ago

2.1.57

2 years ago

2.1.54

2 years ago

2.1.55

2 years ago

2.1.96

1 year ago

2.1.97

1 year ago

2.1.53

2 years ago

2.1.94

1 year ago

2.1.95

1 year ago

2.1.92

1 year ago

2.1.93

1 year ago

2.1.90

1 year ago

2.1.91

1 year ago

2.1.69

1 year ago

2.1.67

2 years ago

2.1.68

2 years ago

2.1.65

2 years ago

2.1.66

2 years ago

2.1.63

2 years ago

2.1.64

2 years ago

2.1.61

2 years ago

2.1.62

2 years ago

2.1.60

2 years ago

2.1.78

1 year ago

2.1.79

1 year ago

2.1.76

1 year ago

2.1.77

1 year ago

2.1.74

1 year ago

2.1.75

1 year ago

2.1.72

1 year ago

2.1.73

1 year ago

2.1.70

1 year ago

2.1.71

1 year ago

2.1.52

2 years ago

2.1.51

2 years ago

2.1.50

2 years ago

2.1.49

2 years ago

2.1.48

2 years ago

2.1.47

2 years ago

2.1.46

2 years ago

2.1.45

2 years ago

2.1.44

2 years ago

2.1.43

2 years ago

2.1.42

2 years ago

2.1.41

2 years ago

2.1.40

2 years ago

2.1.39

2 years ago

2.1.38

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.35

2 years ago

2.1.34

2 years ago

2.1.33

2 years ago

2.1.32

2 years ago

2.1.31

2 years ago

2.1.30

2 years ago

2.1.29

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago