> For the complete documentation index, see [llms.txt](https://docs.elentra.org/ejs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elentra.org/ejs/1.3/guide/internationalization/escl/functions/link.md).

# LINK

## Introduction

The **LINK** [function](/ejs/1.3/guide/internationalization/escl/concepts/functions.md) allows a portion of a [string](/ejs/1.3/guide/internationalization/escl/concepts/string-resources.md) to be converted into a hyperlink.  It accepts two parameters, the first being the text to display and the second the URL to link to.

## Usage

The **LINK** function accepts a string to display as the hyperlink and a URL to determine where the link goes.  It will return the display text wrapped in `<a></a>` HTML tags.  You may pass the identifier of another resource (such as a string, term, or variable) as either parameter value.

## Example

In this example, `tos_message` calls the **LINK** function, passing the `tos_name` string identifier and the `url` variable.

{% code title="ESCL Definition" %}

```javascript
tos_name: `Terms of Service`,
tos_message: `Visit our { LINK(tos_name, :url) }`
```

{% endcode %}

Next, we translate the string, passing in the `url` variable's value at runtime.

{% code title="Translation" %}

```markup
$translate('tos_message', { url: 'foo.html' });

<div v-i18n="{ url: 'foo.html' }">tos_message</div>
```

{% endcode %}

{% code title="ESCL Output" %}

```markup
Visit our <a href="foo.html">Terms of Service</a>

<div>Visit our <a href="foo.html">Terms of Service</a></div>
```

{% endcode %}
