Skip to content

Request support for naming files in other languages #337

@StringKe

Description

@StringKe

https://github.com/contentlayerdev/contentlayer/blob/main/packages/%40contentlayer/core/src/generation/generate-dotpkg.ts#L389

你好.mdx
&&.mdx

Perhaps it would be useful to use something like the functionality in the transliteration package to support files named in other languages?

I might know why other languages are not supported here, could a config item (fileNmaeTransfrom:(name:string)=>string|Promise<string>) be provided in contentlayer.config.ts to allow the user to handle this?

https://www.npmjs.com/package/transliteration

https://discord.com/channels/872106850928164874/872106850928164878/1045543968110301195

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions