# Translated

The `Translated` component is a component that allows you to translate text in your components. You can use this component to provide translations for your components.

### Props <a href="#props-4" id="props-4"></a>

#### value `string` <a href="#value-string" id="value-string"></a>

The translation key that is used to look up the translation in the translations object.

#### options `Record<string, string | number>?` <a href="#options-recordstring-string--number" id="options-recordstring-string--number"></a>

An object that contains the options that are used to format the translation. This prop is optional, and it defaults to an empty object.

### Example <a href="#example-2" id="example-2"></a>

```jsx
<FirmhouseCartProvider translations={{
  en: {
    orderSummary: {
      tax: "Tax: {amount}",
    },
  },
}} ...>
  <Translated value="orderSummary.tax" options={{amount: 100}}  />
</FirmhouseCartProvider>
```


---

# 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://developer.firmhouse.com/sdks/headless-react/components/translated.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.
