Can we store the current editing locale to session rather than memory? #174
Replies: 2 comments 8 replies
-
Hey @richardvanbergen — This is actually in the works right now, falling under a User Preferences feature, where we'll be saving ways that the user interacts with the Admin UI. For example, things we'll be storing include:
The API for saving a user preference is going to be open for use as well so if you ever need to do something similar in a custom component, you will be able to leverage our pattern. This is slated for release within the next month. It'll hit before our roadmap goes public. We have some things in the works right now, including a Product Hunt launch, that are taking precedence over the Roadmap launch... but many things are on their way! |
Beta Was this translation helpful? Give feedback.
-
Just an update to this thread: User Preferences have been released and Payload now persists the user's last used locale to the database. 👍 |
Beta Was this translation helpful? Give feedback.
-
In relation to #173 could we maybe store the current locale in a cookie alongside the user session?
I've noticed that refreshing the page without the query string can result in it switching to the default language as the current language selection is stored in memory.
I have also had some feedback from editors that sometimes it forgets what language it's in and I suspect this might be the reason.
Beta Was this translation helpful? Give feedback.
All reactions