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

respectPathCase in defineTransformer() #2699

Open
IVANVOLKOVETS opened this issue Jul 10, 2024 · 1 comment
Open

respectPathCase in defineTransformer() #2699

IVANVOLKOVETS opened this issue Jul 10, 2024 · 1 comment
Labels
question Further information is requested

Comments

@IVANVOLKOVETS
Copy link

Hello! There is one thing that makes locales in paths look like in lowerCase "en-us" instead of like this for example: "en-US"
respectPathCase is "false" by default inside defineTransformer() function in @nuxt\content\dist\runtime\transformers.

It would be much more convinient if there will be some config parameter or something else that will provide a control over this.

Thank you in advance for your time on this issue.

@IVANVOLKOVETS IVANVOLKOVETS added the enhancement New feature or request label Jul 10, 2024
@farnabaz
Copy link
Member

You can set respectPathCase to true in module options in nuxt.config.ts

export default defineNuxtConfig({
  content: {
    respectPathCase: true
  }
})

Checkout https://content.nuxt.com/get-started/configuration#respectpathcase

@farnabaz farnabaz added question Further information is requested and removed enhancement New feature or request labels Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants