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

Allow using locales when creating or editing languages in the admin panel #2026

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

tvlokven
Copy link
Contributor

Allow entering a maximum of 5 characters for a language code instead of 2, so that a locale can be used. (eg en_GB or nl-BE).

There are multiple use cases for this:

  • Words and spelling can differ between different versions of the same language.
  • Multiple domain names may be used, and different descriptions can be useful to avoid a duplicate content SEO penalty.

I believe this is the only change necessary to support using locales. The database column already allows long language codes, and I don't see other places where this could create an issue.

…of 2, so that a locale can be used. (eg en_GB or nl-BE)
Copy link

vercel bot commented Nov 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 28, 2024 8:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant