Skip to content

[Bug]: Translation not found warning #428

@Preslav-Stoyanov

Description

@Preslav-Stoyanov

Extension Version

1.0.11

PHP Binary

Local PHP

Operating System

Linux

What happened?

I tried to get translation array and it says it doesn't find it.
I still get the array with translations, but the extension shows an error and underlines the trans keys.

Mimimal Code Sample

//fields.php
return [
    'email' => 'Email',
    'name' => 'Name',
    'password' => 'Password',
];

// This works
trans('fields.email');
trans('fields.name');
trans('fields.password');

// This says Translation['fields'] not found.
trans('fields')

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions