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

[Feature]: Check Language Parity #1570

Open
Huxpro opened this issue Nov 12, 2024 · 0 comments
Open

[Feature]: Check Language Parity #1570

Huxpro opened this issue Nov 12, 2024 · 0 comments

Comments

@Huxpro
Copy link
Contributor

Huxpro commented Nov 12, 2024

What problem does this feature solve?

Could you add a feature to check for parity between multiple languages? Specifically, to ensure that each Chinese .mdx file has a corresponding English .mdx file. It would also be great to specify a path scope, allowing certain directories to have intentional inconsistencies.

What does the proposed API look like?

export default {
  // Other configuration options...

  languageParity: {
    enabled: true,
    include: [
      "content/posts",            // Only check these directories for parity - default to all
      "content/articles"
    ],
    exclude: [
      "content/excluded-directory", // Exclude these directories
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants