Skip to content

Conversation

samdark
Copy link
Member

@samdark samdark commented Jun 1, 2023

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues Alternative of #97

@samdark samdark requested a review from vjik June 1, 2023 08:02
@what-the-diff
Copy link

what-the-diff bot commented Jun 1, 2023

PR Summary

  • Code Refactoring
    The code has been improved to be more readable and maintainable.

  • New Method: addLocaleCookieToResponseIfNeeded
    This addition checks for a cookie containing the user's language preference; if it doesn't exist, the method creates one.

  • New Method: getLocaleInfo
    This function returns an array containing information about the request's language settings, including its presence in the path, query parameters, or cookies, as well as information on the default language.

  • Handling Different Request Types
    New methods have been implemented to handle various request types based on specific criteria, such as redirecting to a URL with the correct language parameter, setting a response header with language preferences, or returning a response from a handler while properly setting up the URL generator.

Base automatically changed from fix-locale to master June 4, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants