Closed kenjis closed 3 years ago
@kenjis I forgot that CI4 autoloader ignores the CodeIgniter
namespace from Composer. Can you check if fix solves the issue?
Still does not work.
prefix: Translations
path: vendor/composer/../codeigniter4/translations/Language/
So it looks for codeigniter4/translations/Language/Language/it/Validation.php
.
How about now?
@paulbalandan Worked fine!
144 changes the namespace.
It causes translations are not loaded from this repository, like https://github.com/codeigniter4/CodeIgniter4/issues/2120.
This is because the new namespace is:
When CI looks for
Language/it/Validation.php
,Language::requireFile()
andServices::locator()->search()
looks forcodeigniter4/translations/Language/Language/it/Validation.php
. And it can't find the lang file.