Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...
    setLanguage: ActionCreatorWithPayload<
        "en"
        | "sv"
        | "hu",
        "preferences/setLanguage",
    > = preferencesSlice.actions.setLanguage

    Redux action updating the stored language preference.

    Dispatching it updates the store and, through the store subscription set up by createPreferencesStore, persists the new preference record.