=== Bablic ===
Contributors: ishaibablic
Tags: translation, localization, multilingual, i18n
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 3.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to Bablic. After you save a project key, the public site loads the Bablic snippet.

== Description ==

Bablic is a Software as a Service (SaaS) connector. This plugin is the WordPress interface to that service: it stores one project key and, after you save that key, loads the Bablic snippet on the public site. It does not translate posts inside WordPress, and it does not sell plans from the dashboard.

A Bablic account and project key are required for translations to appear. If you already have a project, paste the key under Settings → Bablic and save. If you need an account, create one at [https://dashboard.bablic.com/create-account/](https://dashboard.bablic.com/create-account/). An empty key means the site is not connected. That is not a trial and does not lock paid features inside this plugin.

After you save a project key, the plugin enqueues `https://edge.bablic.com/moxie.min.js` in the public document head (not in wp-admin). That file is Bablic's hosted runtime, not plugin source. The script tag includes your project key as a `data-oljs` attribute. If the key is empty, no frontend script is loaded.

Translations run on Bablic, not as a second WordPress language. Visitor requests for translated pages are handled by the Bablic service after the snippet loads. Bablic's primary machine-translation engine is Google Translate.

This plugin's PHP does not call a Bablic HTTP API, does not load remote CSS or fonts, and does not add a language switcher in PHP. Language UI, if any, comes from the Bablic snippet after it loads. The snippet may store a language preference in the visitor's browser.

= Third-party servers =

Saving a project key is consent to use the Bablic service on the public site. Hosts this plugin or the Bablic runtime may contact:

* `https://dashboard.bablic.com/` — account and project (opened only when you choose Create a Bablic account)
* `https://edge.bablic.com/moxie.min.js` — snippet this plugin enqueues after you save a key
* `https://nva.bablic.com/` — Bablic 2.0 API the hosted runtime may call
* `https://notify.onelinkjs.com/` — Bablic 2.0 notify endpoint the hosted runtime may call
* `https://www.bablic.com/` — product, privacy, and terms

How Bablic collects and uses data: [https://www.bablic.com/privacy/](https://www.bablic.com/privacy/)
Terms of service: [https://www.bablic.com/terms/](https://www.bablic.com/terms/)

= What this plugin stores =

The plugin stores one WordPress option: `bablic_project_key`. Uninstalling the plugin deletes that option.

== Installation ==

1. For WordPress.org / SVN, the plugin folder must be named `bablic` (same as the directory slug). Upload that folder to `/wp-content/plugins/` or install the zip from Plugins → Add New → Upload Plugin.
2. Activate Bablic on the Plugins screen.
3. Open Settings → Bablic.
4. If you already have a project key, paste it and save. If you need an account, create one at [https://dashboard.bablic.com/create-account/](https://dashboard.bablic.com/create-account/).
5. After you save a key, the public site loads the Bablic snippet in the document head.

== Frequently Asked Questions ==

= Do I need a Bablic account? =

Yes, if you want translations on the public site. This plugin is a connector, not a standalone translator. Create an account at [https://dashboard.bablic.com/create-account/](https://dashboard.bablic.com/create-account/) or paste a key you already have.

= What third-party service does this plugin use? =

Bablic. After you save a project key, the public site loads `https://edge.bablic.com/moxie.min.js` in the document head. That script is Bablic's hosted runtime (minified on Bablic's servers, not bundled in this plugin). The snippet identifies your project with a `data-oljs` attribute. After it loads it may also contact `https://nva.bablic.com/` and `https://notify.onelinkjs.com/`. No script is loaded until a key is saved. No script is loaded in wp-admin.

= Why is the JavaScript not included in the plugin zip? =

Guideline 8 allows a documented service to load its own runtime. `moxie.min.js` is that runtime. This plugin does not load remote CSS, fonts, admin iframes, or updates from anywhere except WordPress.org.

= Where are translations stored? =

Translations run on Bablic, not as a second WordPress language. This plugin does not create WordPress language files or duplicate posts per language.

= Does the plugin send data before I save a key? =

No. An empty project key means the plugin does not enqueue the Bablic script. That is "not connected," not a trial period.

= Where are the terms of use and privacy policy? =

Privacy policy: [https://www.bablic.com/privacy/](https://www.bablic.com/privacy/)
Terms of service: [https://www.bablic.com/terms/](https://www.bablic.com/terms/)

= What happens when I uninstall the plugin? =

WordPress runs `uninstall.php`, which deletes the `bablic_project_key` option.

== Changelog ==

= 3.0.0 =

* Bablic 2.0 rewrite, snippet connector.

== Upgrade Notice ==

= 3.0.0 =

Bablic 2.0 rewrite. This version is a snippet connector: save a project key under Settings → Bablic to load the public Bablic script.
