v1.4.0
New languages spread love, twelve brand new,
From Chinese to Swedish, German too!
Pride month brings colors, code brings inclusion,
Language enum ends all confusion.
Fixed loops and docs with care so bright,
OpenFGA shines in rainbow light! 🏳️🌈✨
Added
-
Expanded Internationalization
This release adds i18n support for Chinese (Simplified), Dutch, French, German, Italian, Japanese,
Korean, Portuguese (Brazilian), Russian, Swedish, Turkish, and Ukrainian, alongside our existing
Spanish and English support. We'd eagerly welcome contributions to improve the accuracy of these
translations.We've also introduced a new Language enum to simplify working with i18n:
use OpenFGA\{Client, Language}; $client = new Client( url: 'http://127.0.0.1:8080', language: Language::English, );
You can use the new
lang()helper to quickly return a Language enum based on a language code string:use OpenFGA\Client; use function OpenFGA\lang; $client = new Client( url: 'http://127.0.0.1:8080', language: lang('en'), );
Fixed
- Resolved an issue with operator precedence in the DSL transformer.
- Resolved a potential infinite loop issue in fiber concurrency.
Documentation
- Various improvements to our written guides, particularly around Observability.
- Improvements to source code comment blocks to improve generated API documentation and IDE hinting.