Skip to content

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

Closed as not planned

Description

@Likilee

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

Activity

  1. schickling commented on Feb 13, 2023

    @schickling
    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.

  2. added
    duplicate
    on Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions