Closed bezhanSalleh closed 5 months ago
Simplification of Language Locale Middleware The process for handling language locale (identification of user's preferred language) has been simplified in the middleware portion of our application. This means our system can now more effectively understand user preferences when it comes to display language.
Improvements to Language Switch Component
userPreferredLocale
attribute: This new attribute allows us to store a user's preferred language setting, either through specific inputs or automated detection.preferredLocale
attribute: This attribute serves as a system-wide language preference, which can be set manually or via automated preferences.userPreferredLocale
and preferredLocale
can be quickly changed utilizing two new methods created for this purpose.getPreferredLocale
method: This method now prioritizes the newly set system-wide preference but falls back to prior preferences logic if none is set, providing a more flexible mechanism in understanding system or user language choice. This PR helps in improving user experience by being able to cater to their language preferences more smoothly, in turn, enhancing accessibility and personalization.
Any updates on this? will you merge it? thanks
Got here for the SVG bug. Good to see it's already fixed. Thanks @bezhanSalleh!
Any news on when the new version will be released?
Hopefully over the weekend
Replaced current
getBrowserLocale()
with laravel's backed ingetPreferredLanguage()
userPreferredLocale()
to provide a way to set the locale based on authenticated user's localepreferredLocale()
to provide a way for devs to reorder the sources of how the preferred locale is retrievedCloses #70
Fixes #77
Resolves #73