=== Transer 多言語ページ翻訳 ===
Contributors: hippogo50
Tags: translation, multilingual, seo, japanese, hreflang
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Server-side page translation with automatic multilingual SEO tags and a language-switcher UI, powered by the transer.io API.

== Description ==

Transer 多言語ページ翻訳 connects your WordPress site to the [transer.io](https://www.transer.io/) server-side translation API, so your pages can be served in multiple languages without changing your site's structure.

= Key features =

* **Server-side translation**: The full HTML of each page is sent to transer.io's translation service, which returns a natural, context-aware translation.
* **Automatic multilingual SEO tags**: `canonical` and `hreflang` tags are inserted automatically for every contracted language.
* **Automatic language-switcher UI**: No shortcode placement required. The language switcher is automatically shown on both the original and translated pages.
* **Multilingual sitemap**: Visiting `/transer-sitemap.xml` dynamically generates a sitemap with per-language `hreflang` annotations.
* **No server configuration required**: No `.htaccess` rewriting or web-server rewrite rules are needed. The plugin detects language-prefixed URLs (e.g. `/en/about`) during WordPress's `init` hook.

= A transer.io account and API key are required =

Using this plugin requires a free account and API key from [transer.io](https://www.transer.io/). The first language is free of charge.

== External services ==

This plugin connects to transer.io, a third-party server-side translation API operated by Hippotech USA Inc. (the same company that develops this plugin), in order to translate your page content into the languages you configure.

* **What is sent, and when**: When a visitor requests a page in a language other than your site's original language, the plugin captures the full HTML output of that page (via an output buffer) and sends it, together with the requesting hostname, URL path, source language code, and your configured list of contracted languages, to the transer.io translation endpoint (`{configured base_url, default https://api.transer.io}/translate-page`). No request is sent when a page is viewed in the original language.
* **Authentication**: Requests are authenticated using an API key that you obtain yourself from your transer.io account and enter on the plugin's settings screen. No API key is hard-coded in the plugin.
* **On request failure**: If the request to transer.io fails for any reason, the plugin falls back to displaying the original, untranslated page; it never blocks page rendering.
* **Data disclosure**: The HTML sent to transer.io reflects the page as rendered by WordPress; it does not include values a visitor may have entered into forms on the page.

Terms of Service: https://www.transer.io/terms.html
Privacy Policy: https://www.transer.io/privacy.html

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/transer-translate`, or install it via the "Plugins" > "Add New" screen in your WordPress admin.
2. Activate the plugin from the "Plugins" screen.
3. Go to "Settings" > "Transer 多言語ページ翻訳" and enter the API key and list of contracted languages obtained from [transer.io](https://www.transer.io/), then save.

== Frequently Asked Questions ==

= Where does the actual translation happen? =

All translation processing happens on transer.io's servers (the translate.service API). This plugin sends the HTML generated by WordPress to that service and outputs the translated HTML it receives; it does not perform translation itself.

= Do I need to configure server-side rewrite rules? =

No. The plugin detects the language prefix in the URL early during WordPress's `init` hook, so no `.htaccess` or web-server rewrite configuration is required.

= Is it free to use? =

The first language is free (with a monthly traffic limit). See [transer.io](https://www.transer.io/) for details.

== Screenshots ==

1. Settings screen (API key and contracted languages)

== Changelog ==

= 0.7.4 =
* Added support for the multilingual sitemap (`/transer-sitemap.xml`).

= 0.7.1 =
* Fixed an issue with saving contracted languages.

= 0.6.0 =
* Removed `.htaccess` writing; language detection now happens entirely within the `init` hook.

== Upgrade Notice ==

= 0.7.4 =
Adds the multilingual sitemap feature. Update recommended.
