<a id="mdx"></a>

# MDX files

#### Versionadded
Added in version 2026.5.

#### NOTE
Bu biçimin desteği şu anda geliştirme aşamasında. Bazı özellikler henüz kullanılamıyor olabilir ve davranışları sürümler arasında değişiklik gösterebilir. Denemelerinizle ilgili geri bildirimlerinizi bekliyoruz.

MDX files are Markdown files with JSX syntax. Weblate extracts translatable
Markdown text and preserves imports, exports, JSX components, and expressions.

MDX units automatically get the `md-text`, `auto-safe-html`, `strict-same` and `safe-mdx` flags.
This keeps the unsafe HTML check active for plain text, standard HTML, and
custom elements while avoiding HTML cleanup on MDX and JSX-like syntax.
Use the explicit `safe-html` flag for strings that are known to contain HTML
and should always be sanitized, including SVG or MathML snippets.

#### NOTE
Diğer biçimlerin çoğunun aksine, çeviri dosyalarındaki değişiklikler güvenilir bir şekilde yapılamadığından Weblate üzerine aktarılmayacak. Çevirilerin doğruluğunun kaynağı çevrilmiş dosya değil Weblate olur.

#### SEE ALSO
[MDX](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/mdx.html)

Örnek dosya:

```md
---
title: Ahoj světe!
description: Learn with Weblate
---

import LessonCard from "./LessonCard"
export const metadata = { slug: "intro" }

# Ahoj světe!

<LessonCard title="Keep this code" count={5}>
  Do not translate this JSX body.
</LessonCard>

Orangutan has five bananas.

Try Weblate at [weblate.org](https://demo.weblate.org/)!

*Thank you for using Weblate.*
```

<!-- AUTOGENERATED START: format-features mdx -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Desteklenen özellikler

| Dosya uzantıları                                                                                     | `.mdx`                                                                                                             |
|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|
| Dilsellik [i](https://docs.weblate.org/tr/latest/formats.md#bimono)                                    | Tek dilli                                                                                                          |
| Çoğulları destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-plurals)                  | `No`                                                                                                               |
| Tanımlamaları destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-description)          | `No`                                                                                                               |
| Açıklamayı destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-explanation)             | `No`                                                                                                               |
| Bağlamı destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-context)                    | `No`                                                                                                               |
| Konumu destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-location)                    | `No`                                                                                                               |
| İmleri destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#format-flags)                       | `No`                                                                                                               |
| API belirteci                                                                                        | `mdx`                                                                                                              |
| Salt okunur dizgeleri destekler [ⓘ](https://docs.weblate.org/tr/latest/formats.md#read-only-strings)   | `No`                                                                                                               |
| Supports removing obsolete strings [ⓘ](https://docs.weblate.org/tr/latest/formats.md#obsolete-strings) | `No`                                                                                                               |
| Check flags added by this format [ⓘ](https://docs.weblate.org/tr/latest/admin/checks.md#custom-checks)      | `auto-safe-html`, `strict-same`, `md-text`, [Safe MDX](https://docs.weblate.org/tr/latest/user/checks.md#check-safe-mdx) |
<!-- AUTOGENERATED END: format-features mdx -->

## Weblate yapılandırması

|                             | Tipik Weblate [Bileşen yapılandırması](https://docs.weblate.org/tr/latest/admin/projects.md#component)   |
|-----------------------------|-------------------------------------------------------------------------------------------------|
| Dosya maskesi               | `path/*.mdx`                                                                                    |
| Tek dilli temel dil dosyası | `path/en.mdx`                                                                                   |
| Yeni çeviriler kalıbı       | `path/en.mdx`                                                                                   |
| Dosya biçimi                | MDX file                                                                                        |
| Dosya biçimi parametreleri  | `mdx_merge_duplicates=True`                                                                     |

<a id="mdx-duplicates"></a>

## Yinelenen dizgelerin işlenmesi

By default, Weblate treats each occurrence of a string as a separate
translation unit to provide line-based context. This can be problematic
in MDX tables or repeated component content, where reordering changes the
context and can lead to translation loss.

Özdeş dizgeleri tek bir çeviri biriminde birleştirmek için [Dosya biçimi parametreleri](https://docs.weblate.org/tr/latest/admin/projects.md#component-file-format-params) dosyasında Yinelenen dizgeler birleştirilsin\` seçeneğini açın.

#### NOTE
Bu seçeneği açmak, birleştirilmiş birimler için satır temelli bağlamı kapatarak, satırların veya bölümlerin belge içinde konumu değişse bile çevirilerin sabit kalmasını sağlar.
