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'
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @joetannenbaum@N1ebieski@Preslav-Stoyanov

    Issue actions

      [Bug]: Translation not found warning · Issue #406 · laravel/vs-code-extension