Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

v1.4.0

Choose a tag to compare

@evansims evansims released this 14 Jun 02:47
· 146 commits to main since this release
d5a21c5

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.