=== Traxlate Localize ===
Contributors: traxlate
Tags: translation, localization, multilingual, i18n, translate
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Translate posts and pages into 200+ languages with Traxlate. Markup and shortcodes are preserved; each translation is a linked draft you review before publishing.

== Description ==

Traxlate Localize adds a "Translate with Traxlate" action to your Posts and Pages. It sends the text (not the markup) to your Traxlate account, then creates a **linked draft** in each target language for you to review and publish.

* **HTML-aware** — only text is translated; tags, classes, links and `[shortcodes]` are preserved.
* **Review before publish** — translations are created as drafts, never auto-published.
* **Idempotent** — re-running updates the existing translation draft instead of creating duplicates.
* **Bulk** — select multiple posts and translate them in one action.
* **Metered to your account** — uses the authenticated Traxlate API; usage is billed in credits against your plan.

You need a free Traxlate account and an API key: https://traxlate.com/dashboard/api-keys

== Installation ==

1. Upload the `traxlate-wordpress` folder to `/wp-content/plugins/`, or install the zip via Plugins → Add New → Upload.
2. Activate **Traxlate Localize**.
3. Go to **Settings → Traxlate** and enter:
   * **API key** — from https://traxlate.com/dashboard/api-keys
   * **Source locale** — e.g. `en`
   * **Target locales** — comma-separated, e.g. `es,fr,de`
4. On any Post or Page, hover the row and click **Translate with Traxlate** (or use the bulk action).
5. Find the new drafts under Posts/Pages, review, and publish.

== Frequently Asked Questions ==

= Does it overwrite my original post? =
No. It creates separate translated posts as drafts. Your original is untouched.

= What happens if I translate the same post twice? =
The existing translation draft for that language is updated, not duplicated.

= Are shortcodes and HTML safe? =
Yes. Only text nodes are translated; `<tags>` and `[shortcodes]` are masked before translation and restored afterwards.

= How much does it cost? =
Translation is billed in Traxlate credits against your account, based on character count. See https://traxlate.com/pricing.

== Changelog ==

= 1.0.0 =
* Authenticated public API (Bearer key) with credit metering.
* Shortcode + HTML preservation.
* Idempotent translation drafts (no duplicates on re-run).
* Bulk action and admin success/error notices.

= 0.1.0 =
* Initial reference connector (direct engine endpoint, no auth).
