Skip to content

[Bug]: Translation not found warning #406

Open
@Preslav-Stoyanov

Description

@Preslav-Stoyanov

Extension Version

1.0.11

PHP Binary

Local PHP

Operating System

Linux

What happened?

If php translations are written without keys it shows warnings for each translation without explicitly defined key such as:

Translation [login.translations.0] not found.
Translation [login.translations.1] not found.
Translation [login.translations.2] not found.
Translation [login.translations.3] not found.
Translation [login.translations.4] not found.
Translation [login.translations.5] not found.

Mimimal Code Sample

// This gives warnings
'translations' => [
  'Text 1',
  'Text 2',
  'Text 3'
]

// No warnings
'translations' => [
  '0' => 'Text 1',
  '1' => 'Text 2',
  '2' => 'Text 3'
]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions