Welcome Guest, Not a member yet? Register   Sign In
Localization problem
#1
Bug 

Hello!

I download "ru" translite folder in GitHub - https://github.com/codeigniter4/translations
Translate files has been transfer to folder app/Language/

This works well, but there are problems with validation. I do not get the name of the field:

PHP Code:
if (! $this->validate([
                'email'     => ['label' => 'Email''rules' => 'required|valid_email|max_length[100]'],
                'password'  => ['label' => 'Password''rules' => 'required|max_length[100]|alpha_numeric']
            ])) {
                $data = array(
                    'event'   => false,
                    'message' => $this->validator->listErrors('api_list')
                );
            

RU response:


Code:
Поле {поле} обязательно для заполнения. 
Поле {поле} обязательно для заполнения.

EN response:


Code:
The Email field is required. 
The Password field is required.

How can i fix this?

Thank you!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB