> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.lineproviderbehaviour/yarn.unity.lineproviderbehaviour.getlocalizedlineasync.md).

# GetLocalizedLineAsync(Line,CancellationToken)

Method in [LineProviderBehaviour](/api/csharp/yarn.unity/yarn.unity.lineproviderbehaviour.md)

## Summary

Prepares and returns a [LocalizedLine](/api/csharp/yarn.unity/yarn.unity.localizedline.md) from the specified [Line](/api/csharp/yarn/yarn.line.md) .

```csharp
public abstract YarnTask<LocalizedLine> GetLocalizedLineAsync(Line line, CancellationToken cancellationToken);
```

## Parameters

| Name                                            | Description                                                                                                                        |
| ----------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [Yarn.Line](/api/csharp/yarn/yarn.line.md) line | The [Line](/api/csharp/yarn/yarn.line.md) to produce the [LocalizedLine](/api/csharp/yarn.unity/yarn.unity.localizedline.md) from. |
| `CancellationToken` cancellationToken           | A cancellation token that indicates whether the process of fetching the localised version of `line` should be cancelled.           |

## Returns

A localized line, ready to be presented to the player.
