BabelShark Knowledge Base
  • Introduction
  • BabelShark basics
    • Getting started
    • Project modes
    • Project languages
    • Code snippets
    • Source string markup
    • Setting visitor's language
    • Project associated texts
  • Setup
    • Recommended approach
    • Coexistence with other translators
    • Scopes
    • Performance
  • FAQ
  • Site owner's manual
    • Introduction
    • Real-time language statistics
    • Working in a team
  • Developer's manual
    • Embed BabelShark script
    • API Reference
      • BabelShark config
      • Language drop-down specs
    • HTML markup
      • Variables
      • Issues
    • Integrations
      • Tilda Publishing
        • Tilda website setup
        • Elements to localize
  • Manager's manual
    • Introduction
    • Community proofreaders
  • Proofreader's manual
    • Introduction
    • How to proofread
    • Checking translations
    • Translation types
    • Request of re-checks
Powered by GitBook
On this page
  • 1. BabelShark language drop-down
  • 2. Change via JavaScript API
  1. BabelShark basics

Setting visitor's language

PreviousSource string markupNextProject associated texts

Last updated 1 year ago

By default your project appears in default (source) language to the user. There are two ways to switch to the desired language.

1. BabelShark language drop-down

Read more here about language drop-down code snippet.

2. Change via JavaScript API

Call babelShark.setLanguage(languageCode) to switch current user to the desired language. The language setting will be stored within the user's browser.

Language drop-down in BabelShark account