app/frontend/shared/composables/useLocaleUpdate.ts
Function useLocaleUpdate
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useLocaleUpdate = () => {
const isSavingLocale = ref(false)
const localeMutation = new MutationHandler(useAccountLocaleMutation({}), {
errorNotificationMessage: __('The language could not be updated.'),