Language not displays in views

Created on 27 September 2024, 6 months ago

Language not displays in views

Go to views, create any view with content, and add field - Content: Original language (language) or Content: Translation language. In the preview and in the rendering view you will not see any language. It only happens in site with only one language.

In view's query there is no mentions of language too.
SELECT "node_field_data"."created" AS "node_field_data_created", "node_field_data"."nid" AS "nid"
FROM
{node_field_data} "node_field_data"
WHERE ("node_field_data"."status" = '1') AND ("node_field_data"."type" IN ('blog'))
ORDER BY "node_field_data_created" DESC
LIMIT 5 OFFSET 0

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component

views.module

Created by

πŸ‡ΊπŸ‡¦Ukraine vorona olya

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vorona olya
  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    See the comment in \Drupal\views\Plugin\views\field\FieldLanguage

        // No point in displaying the language field on monolingual sites,
        // as only one language value is available.
    

    This is by design.

Production build 0.71.5 2024