Skip to content

Can't use class constants in the messages.php file #4

@wijourdil

Description

@wijourdil

Hi !
The plugin works like a charm ! But I can't use class constants in the translations files, for example :

'status' => [
    MyClass::STATUS_WAITING => 'Lorem Ipsum',
    MyClass::STATUS_DONE => 'Dolor sit amet',
    ...,
]

I get the following error :

Module build failed: Error: Unexpected PHP key: "staticlookup

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions