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

Separate similar error messages' translations for different rules #526

Open
arogachev opened this issue Feb 1, 2023 · 1 comment
Open

Comments

@arogachev
Copy link
Contributor

arogachev commented Feb 1, 2023

Extracted from #514 (comment).

Related: #525.

Problem: changing translation for incorrect type message might affect multiple rules.
Possible solution: use keys for translation instead, something like "json.incorrectInputMessage".

This can be helpful when a user wants to hide technical details with broader messages for example.

@vjik
Copy link
Member

vjik commented Feb 1, 2023

Is there an example of a translation with a similar problem?

Usage keys added new dependency yiisoft/translator-message-php.

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