SpellNumber icon indicating copy to clipboard operation
SpellNumber copied to clipboard

Locale is ignored

Open giraz82 opened this issue 1 year ago • 0 comments

Hello, I have a really strange problem. I published config and update locale to it. In local and testing environment everything is fine. Running unit test of my application in GitLab pipelines, it seems that locale switch back to en, according to output, even if dumping $data in callback_output shows that locale is set to it:

Rmunate\Utilities\Callback\DataResponse Object
(
    [method:protected] => toLetters
    [type:protected] => integer
    [lang:protected] => it
    [locale:protected] => it
    [mode:protected] => 
    [currency:protected] => 
    [fraction:protected] => 
    [value] => 118
    [words] => one hundred eighteen
)

As you can see, lang and locale are set to it, number is 118 but words are in English.

This instead is my local output:

Rmunate\Utilities\Callback\DataResponse Object
(
    [method:protected] => toLetters
    [type:protected] => integer
    [lang:protected] => it
    [locale:protected] => it
    [mode:protected] =>
    [currency:protected] =>
    [fraction:protected] =>
    [value] => 118
    [words] => centodiciotto
)

Any hint? Thank you.

giraz82 avatar Feb 29 '24 22:02 giraz82