# Source string markup

You need to explicitly markup your source strings (strings to translate) in your HTML. This is being done by using `__` CSS class.

BabelShark picks up these string from HTML and replaces them with a translation to the user's language.

### Adding \_\_ class

To mark your string as one to be translated, just add CSS class:

<figure><img src="https://1290550914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUf86Tx3GrUXukSHhL9ht%2Fuploads%2FXhBBhmDm9su21FpvuiIj%2FScreenshot%202024-02-20%20at%2000.16.54.png?alt=media&#x26;token=1e7def61-a06d-4bba-9493-2a6f58dc3d09" alt="" width="375"><figcaption></figcaption></figure>

### Dynamic HTML

The most of modern HTML frameworks (React, Vue, Angular) dynamically add, remove and replace text in HTML DOM elements.

BabelShark tracks changes in page contents and translates new strings.

###


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.babelshark.net/babelshark-basics/source-string-markup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
