#orchestra/testbench how do we load lang files?

5 messages · Page 1 of 1 (latest)

tulip prairie
#

I've got the workbench/lang/enums.php

But trying to run Lang::get('enums.some_key'); is not loading the value.

dry heath
#

Probably because it should be placed in workbench/lang/en/enums.php

tulip prairie
#

If I dd(app('translator')) then paths is set as

 #paths: array:2 [
      0 => "/.../vendor/laravel/framework/src/Illuminate/Translation/lang"
      1 => "/.../vendor/orchestra/testbench-core/laravel/lang"
    ]

So it looks like it's not even trying to load from the workbench

dry heath
#

Your tests do have the WithWorkbench trait?