CodeIgniter Forums
Localization problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Localization problem (/showthread.php?tid=74299)



Localization problem - mintwint - 09-07-2019

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!