# Shared Translations

Shared translations provide common static text that is available across all sections in your project. Use them for repeated phrases like "Read More", "Add to Cart", or other text shared between multiple sections.

Shared translations live in a single file at the project root:

```
shared/
└── translation.ts
```

The format is the same as [section-level translations](/site-themes/develop-site-themes/sections/settings/translations.md) — a record keyed by language code:

```typescript
// shared/translation.ts
export default {
  en: {
    '$label.shared.title': 'Title',
    '$label.shared.description': 'Description',
    '$label.shared.read_more': 'Read More',
  },
  fr: {
    '$label.shared.title': 'Titre',
    '$label.shared.description': 'Description',
    '$label.shared.read_more': 'Lire la suite',
  },
} as const;
```

{% hint style="info" %}
**Convention**

Use the `$label.shared.*` prefix for shared translation keys to distinguish them from section-specific keys.
{% endhint %}

Shared translations are automatically injected into every section at build time. Access them in your Vue components using the `useTranslation` composable:

```vue
<template>
  <a>{{ t('$label.shared.read_more') }}</a>
</template>
```

{% hint style="info" %}
**Hot Reload**

Changes to `shared/translation.ts` trigger a full rebuild in preview mode.
{% endhint %}


---

# 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://docs.ecwid.com/site-themes/develop-site-themes/shared-translations.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.
