Skip to content

v0.2.0 — 9 content locales end-to-end

Choose a tag to compare

@onetogregorio onetogregorio released this 13 May 16:53
· 18 commits to main since this release
ffca30b

What's new

The plugin now supports 9 content locales end-to-end: Portuguese (Brazil), English, Spanish, French, German, Italian, Russian, Korean, and Simplified Chinese.

The "Language" setting in admin now offers all 9 options, each backed by:

  • Real Bible versions on api.midvash.com
  • Localized book detection in your posts (e.g. detects Иоанн 3:16 for Russian, 요한복음 3:16 for Korean, 约翰福音 3:16 for Chinese)
  • Localized URLs to midvash.com (e.g. midvash.com/fr/lsg/jean/3/16, midvash.com/ko/kor/요한복음/3/16)
  • Locale-appropriate default version (LSG for French, LUTH1912 for German, NRI for Italian, SYNODAL for Russian, KOR for Korean, CUV for Chinese)

Under the hood

  • New scripts/sync-books.ts regenerates the book + version data straight from the Midvash API. Adding a 10th locale on the API in the future means re-running the script and shipping a release — no manual data entry.
  • 66 books × 9 locales (594 entries) of names, slugs, and abbreviations now flow from API → PHP. The previous ~500 lines of hardcoded book data are gone.
  • Tooltip strings ("Read more", "Verse currently unavailable") translated for the 6 new locales.

Install / update

  • Auto-update: existing WordPress sites running ≥0.0.6 pick this up via the bundled update checker.
  • Manual: download from this release or from wordpress.midvash.com.

🤖 Built and published automatically by the release workflow.