Skip to content

The language code with hyphens can't generate the collection correctly #1233

@enpitsuLin

Description

@enpitsuLin

Hey, I noticed pt-BR was added recently, but I'm running into some trouble when using it with the i18n template (npx create-docus my-docs -t i18n).

It looks like this might affect anyone using languages supported by nuxt-ui that have hyphens in the language code(eg. zh-CN,en-GB), even if Docus doesn't fully support them yet.

Reproduction:
I put together a minimal reproduction here:
https://github.com/enpitsuLin/docus-i18n-code

Screenshot:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions