Closed noone-silent closed 9 months ago
In Phalcon 5 the locale is not a string anymore, it's an array of strings
locale
https://docs.phalcon.io/5.0/en/translate#gettext
In the documentation this is wrong. If you pass locale as string you have an Exception with this message:
TypeError: Phalcon\Translate\Adapter\Gettext::setLocale(): Argument #2 ($localeArray) must be of type array, string given
This has been addressed. Thank you @noone-silent
In Phalcon 5 the
locale
is not a string anymore, it's an array of stringshttps://docs.phalcon.io/5.0/en/translate#gettext
In the documentation this is wrong. If you pass locale as string you have an Exception with this message: