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

new validation rule: valid bcp 47 locale/language tag #131

Open
samuelstroschein opened this issue Aug 18, 2024 — with Linear · 1 comment
Open

new validation rule: valid bcp 47 locale/language tag #131

samuelstroschein opened this issue Aug 18, 2024 — with Linear · 1 comment

Comments

Copy link
Member

Context

Users are running into bugs because they use invalid BCP47 tags opral/inlang-fink#42 (comment).

We previously validated the locales/language tag as part of parsing the settings file. That was reversed because some users might not or want to use BCP47.

Proposal

Introduce a BCP47 language tag rule that validates the locale/language tag in the settings, and messages of an inlang.

  • prime validation rule use case. different formats can be valid, let users decide what rule they want to enforce.
@NiklasBuchfink
Copy link
Member

This has happened here before: https://discord.com/channels/897438559458430986/1260961041983082496/

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

No branches or pull requests

2 participants