ResilientLang docsDeveloper documentation (draft, product name is a placeholder)

WordPress quick start

The plugin copies the published translation files to your own site (wp-content/uploads/resilientlang/) and the visitor's browser loads them from your domain first. If our servers or the CDN are unreachable, the copy on your site keeps serving.

Status. The plugin core exists in the repository (plugins/wordpress, version 0.1.0, development). It is not published to the WordPress.org directory. Language URLs and hreflang come from a companion SEO module that is built separately; the core plugin alone does not create them.

Requirements#

Steps#

  1. Upload the plugin folder to /wp-content/plugins/ (or install it from the Plugins screen once it is distributed) and activate it.
  2. Open Settings > ResilientLang.
  3. Enter your site key (rl_site_live_...), the public key and the bundle address. Tick the permission box that allows downloads from that address.
  4. Press Sync now. The plugin downloads the manifest, checks its Ed25519 signature against your public key, then downloads each language file and checks its SHA-256.
  5. Place the switcher: a widget, the block, the shortcode [resilientlang_switcher], or a menu item. It is plain HTML links and needs no JavaScript.
  6. Choose how often to sync (hourly, twice a day or daily). A failed download never removes the copy you already have.

Things that can stop it working#

What gets sent where#

Developer hooks#

resilientlang_languages, resilientlang_current_language, resilientlang_language_urls, resilientlang_manifest, resilientlang_after_sync.

Uninstalling#

Deleting the plugin keeps the downloaded translation files unless you tick "delete on uninstall". The script that applies them is no longer added, so pages show the source language until you add the script snippet.

If something does not work, see Troubleshooting.