Skip to content

Document Collection Manifest Generator generates duplicate import names for Korean file names #375

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

Closed
Likilee opened this issue Feb 9, 2023 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Likilee
Copy link

Likilee commented Feb 9, 2023

It seems that there is a problem with the Document Collection Manifest generator. When using a file name in Korean, the generator is unable to create an appropriate import name, so it creates an import name based on the first alphabet of the extension. This causes an issue by creating a duplication of the import name.

// NOTE This file is auto-generated by Contentlayer
import test23Md from './test23.md.json' assert { type: 'json' }
import mdx from './개발자 키리 - 대한민국 최애 개발자.mdx.json' assert { type: 'json' }
import mdx from './테스트용마크다운.mdx.json' assert { type: 'json' }
import 2____mMdx from './한글2____m.mdx.json' assert { type: 'json' }

export const allPosts = [helloWorldMd, test23Md, mdx, mdx, 2____mMdx]

Screen shot

My content directory
image

Auto generated 'document collection manifest'
image

@schickling
Copy link
Collaborator

Thanks for opening this issue. This looks like a duplicate of #337. If you think it's a separate issue or have other questions, feel free to follow up in the comments.

@schickling schickling closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
@schickling schickling added the duplicate This issue or pull request already exists label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants