# TextFilterTranslatedResult

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Tags: Not creatable, Not replicated
- Memory category: Instances
- HTML page: https://rapi.sleaze.dev/classes/TextFilterTranslatedResult/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/TextFilterTranslatedResult

Holds the filtered source text and its filtered translations produced by [`TextService:FilterAndTranslateStringAsync()`](https://rapi.sleaze.dev/classes/TextService.md).

## Properties

### SourceLanguage

```luau
TextFilterTranslatedResult.SourceLanguage: string
```

- Tags: Read only, Read capabilities: UI

The language of the original text that was filtered.

### SourceText

```luau
TextFilterTranslatedResult.SourceText: TextFilterResult
```

- Tags: Read only, Read capabilities: UI

The filtered form of the original, untranslated text.

## Methods

### GetTranslationForLocale

```luau
TextFilterTranslatedResult:GetTranslationForLocale(locale: string): TextFilterResult
```

- Tags: Capabilities: UI

Returns the filtered translation of the source text for the given locale.

Parameters:

- `locale`: The locale identifier of the translation to retrieve.

Returns: The filtered [`TextFilterResult`](https://rapi.sleaze.dev/classes/TextFilterResult.md) for the requested locale, or `nil` if the result contains no translation for it.

### GetTranslations

```luau
TextFilterTranslatedResult:GetTranslations(): { [string]: any }
```

- Tags: Capabilities: UI

Returns all filtered translations of the source text, keyed by language.

Returns: A dictionary mapping each translation's language string to its filtered [`TextFilterResult`](https://rapi.sleaze.dev/classes/TextFilterResult.md).

## Inherited members

- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
