# Getting Started

## Getting started

Let's include Weglot's client code into your site and get started with translations.

1. Go to your Weglot dashboard (<https://dashboard.weglot.com/>) , start a new project. Depending on the technology you chose, you will integrate Weglot using the Javascript library.
2. Edit your HTML file, and right before the`</head>`tag, append the  code that is shown to you. It should look like:

```markup
<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
    Weglot.initialize({
        api_key: 'YOUR_API_KEY'
    });
</script>
```

Make sure you replace `YOUR_API_KEY`with the API key you got in the step one.

Your API key is then used to retrieve the settings of your project from your Weglot dashboard, like the original language, the languages you want to translated into, the things you don't want to translated etc...

* Add more settings in this object, [see the options page](https://developers.weglot.com/javascript/options).
* Interact with the `Weglot` instance, [see available methods](https://developers.weglot.com/javascript/javascript-functions).
* Design your own switcher, move it in your page: [go to the link hooks guide](https://developers.weglot.com/javascript/link-hooks).
* You can also [translate an iframe](https://developers.weglot.com/javascript/translate-iframe).


---

# 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://developers.weglot.com/javascript/javascript.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.
