- Enhanced tests to ensure consistent messageId generation for legacy inbox rows lacking a messageId. - Updated test descriptions for better clarity regarding the new messageId handling. - Adjusted test expectations to align with the updated behavior of relaying legacy inbox rows with generated messageIds.
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
import { defineStore } from "pinia";
|
|
|
|
export const useLocaleStore = defineStore("locale", {
|
|
state: () => ({
|
|
current: "en",
|
|
userSelected: false
|
|
}),
|
|
actions: {
|
|
setLocale(locale: string, fromUser: boolean) {
|
|
this.current = locale;
|
|
if (fromUser) {
|
|
this.userSelected = true;
|
|
}
|
|
}
|
|
}
|
|
});
|