CodeIgniter Forums
Multi Lingual Errors - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Feature Requests (
+--- Thread: Multi Lingual Errors (/thread-75646.html)

Multi Lingual Errors - dhefley - 02-29-2020

I'm not 100% sure if this is a feature or a bug or a lack of understanding, but I'm finding when I use custom validation rules with language the messages in the app/Language/en/validation.php file, I can't ever get them to show in other languages.  

It would be nice to be able to forcibly set the locale when getting the error string.  You can do this for the lang function as the third parameter, but I don't know how to do this for the Validation messages.  I know there is a way to use the url to change the locale, but that isn't possible in my scenario.