Skip to content

statamic returns the wrong local validation when submiting form #5507

@Oleafeon

Description

@Oleafeon

Bug description

I have a website wich has 3 main sites and those sites have sub languages.
Like this:
image

When i am on the main site "/nl" and i submit the form i get the validation back from the nl folder. But when i go to a sub site "/nl/en" which has the english version of the contact form i just get the validation back from the nl folder not from the nl-en folder

here are my lang folders
image

How to reproduce

  1. set up a multi site (make sure you have a main site "/nl" and subsites "/nl/en")
  2. set up validation rules in lang folders for those sites
  3. create a form
  4. let the form fail

Logs

No response

Versions

Statamic 3.2.37 Pro
Laravel 8.83.4
PHP 8.1.2
4rn0/statamic-v3-image-optimizer 1.0.8
aerni/font-awesome 1.2.0
aryehraber/statamic-captcha 1.8.0
doublethreedigital/duplicator 2.1.1
jacksleight/statamic-bard-mutator 1.0.3
jonassiewertsen/statamic-live-search 1.2.0
jonassiewertsen/statamic-livewire 2.7.1
pecotamic/sitemap 1.2.7
rias/statamic-link-it 2.2.3
statamic/eloquent-driver 0.2.0
statamic/seo-pro 2.3.2

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions