Skip to content

Releases: Nabute/django-lisan

v0.1.7

10 Dec 15:49
2906b9c
Compare
Choose a tag to compare

What's Changed

  • Fix: Refactor Lisan Translation Handling to Support Dynamic Fields by @Nabute in #6

Full Changelog: v0.1.6...v0.1.7

v0.1.6

07 Dec 11:17
313c8d9
Compare
Choose a tag to compare

What's Changed

  • Enhance Translation Support, Refactor Mixins, and Expand Test Coverage by @Nabute in #5

Full Changelog: v0.1.5...v0.1.6

v0.1.5

11 Nov 10:07
9e645d1
Compare
Choose a tag to compare

What's Changed

  • Feature: Add Translation Table Primary Key Flexibility and Nested Translation Serializer by @Nabute in #4

Full Changelog: v0.1.4...v0.1.5

v0.1.4

07 Oct 13:49
3ab08f5
Compare
Choose a tag to compare

What's Changed

  • Add translation validation for partial updates in Lisan model by @Nabute in #3

Full Changelog: v0.1.3...v0.1.4

Version 0.1.3

28 Sep 12:16
Compare
Choose a tag to compare

What's Changed

  • Fix: Lisan Model Migration Includes Only lisan_fields by @Nabute in #2

Full Changelog: v0.1.2...v0.1.3

Version 0.1.2

23 Sep 14:02
Compare
Choose a tag to compare

[v0.1.2] - 2024-09-23

This release focuses on refining the multilingual handling capabilities by introducing additional flexibility in language detection and ensuring compatibility with supported languages.

Added

  • Enhanced Language Detection in Middleware:
    • Improved LanguageMiddleware: The LanguageMiddleware now includes more robust language detection mechanisms:

      • It checks for the lang query parameter, user profile language preference, cookies, and the Accept-Language header in a prioritized manner.
      • Added support for configurable fallback languages via the LISAN_DEFAULT_LANGUAGE setting.
      • Introduced validation to ensure the selected language is within the list of supported languages, using the new LISAN_ALLOWED_LANGUAGES setting.
      • Refined the Accept-Language header parsing to handle complex header values and gracefully fallback when necessary.
    • Support for Configurable Allowed Languages: A new setting, LISAN_ALLOWED_LANGUAGES, has been added to specify the languages supported by the application. If a language from the request is not in this list, the middleware falls back to the default language.

Configuration Changes

  • New Settings:
    • LISAN_ALLOWED_LANGUAGES: A list of language codes that the application supports. The LanguageMiddleware ensures that only these languages are applied to the request. Defaults to [LISAN_DEFAULT_LANGUAGE].

Fixed

  • Improved robustness in the LanguageMiddleware by ensuring safe access to user profile attributes and handling of missing or malformed Accept-Language headers.
  • Prevented invalid language codes from being set on requests by validating against the new LISAN_ALLOWED_LANGUAGES setting.

Migration Notes

No database migrations are required for this release. However, to take advantage of the new language validation features, developers should define LISAN_ALLOWED_LANGUAGES in settings.py.

Full Changelog: v0.1.1...v0.1.2

Improved Translation Service and Minor Fixes

14 Sep 10:21
Compare
Choose a tag to compare

What's Changed

  • Add Pluggable Translation Service to lisan Package for Dynamic Translations by @Nabute in #1

New Contributors

  • @Nabute made their first contribution in #1

Full Changelog: https://github.com/Nabute/django-lisan/commits/v0.1.1