Skip to content

πŸ¦β€β¬› Mockingbird

Latest

Choose a tag to compare

@mychidarko mychidarko released this 13 Aug 17:18

v5.0 - 13 Aug 2026

Added

  • First stable release of Lingo: translations for Leaf apps from simple YAML files, including nested files and folders per locale
  • Three locale detection strategies out of the box: router (locale in the URL), session (remembered per visitor) and header (negotiated from Accept-Language), plus support for writing your own custom strategy
  • Translation parameters: welcome: "Hello, {name}" resolves with lingo('welcome', ['name' => $user->name])
  • Configure from your .env with APP_LOCALE and LOCALES_STRATEGY, read live so long-running workers stay honest
  • Locale override support, getLocaleData() and getLocaleName() for building language switchers
  • Blade users get @lingo and @tl directives through Leaf Blade
  • Plays well with Leaf Sitemap: localized routes are handled without polluting your sitemap
  • Full test suite, run through Alchemy

Worth knowing if you used Lingo pre-release

  • The session strategy remembers the chosen locale across requests
  • The header strategy properly parses Accept-Language instead of comparing the raw header to filenames
  • The router strategy validates the first URL segment against your configured locales, so /about is never mistaken for a locale

Changed

  • Lingo requires PHP 8.2+ and Leaf 5