Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GraphQL] The isDefault field from the i18n plugin locale is missing in the I18NLocale GraphQL type #20336

Open
kitce opened this issue May 20, 2024 · 0 comments
Assignees
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: plugin:graphql Source is plugin/graphql package status: pending reproduction Waiting for free time to reproduce the issue, or more information

Comments

@kitce
Copy link

kitce commented May 20, 2024

Bug report

Required System information

  • Node.js version: 20.12.2
  • NPM version: 10.5.0
  • Strapi version: 4.23.0
  • Database: Postgres
  • Operating system: macOS Sonoma
  • Is your project Javascript or Typescript: TypeScript

Describe the bug

The isDefault field indicating whether the locale is set as default is missing in the I18NLocale type of the GraphQL schema

Steps to reproduce the behavior

  1. Install the i18n and GraphQL plugins
  2. Add some locales in the admin panel
  3. Set one of the locales as default
  4. See the GraphQL schema in /graphql playground or Postman

Expected behavior

There is a field isDefault (Boolean) in the I18NLocale type.

The isDefault field is included in the REST API GET /api/i18n/locales

image

Screenshots

image

image

Code snippets

N/A

Additional context

N/A

@derrickmehaffy derrickmehaffy added issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: plugin:graphql Source is plugin/graphql package status: pending reproduction Waiting for free time to reproduce the issue, or more information labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: plugin:graphql Source is plugin/graphql package status: pending reproduction Waiting for free time to reproduce the issue, or more information
Projects
Status: To be reviewed (Open)
Status: To review
Development

No branches or pull requests

3 participants