-
Notifications
You must be signed in to change notification settings - Fork 221
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
Error message and trace translations #389
Comments
Hi @vivshankar, if you'd like to contribute here, I can offer you some advice for the parser and checker errors in a manner that permits the use of alternative language for the error message information. Would that work for your needs? The runtime errors are in need of love and #25 and #189 are the specific changes that need to improve runtime stack traces and error messaging. |
@TristonianJones Happy to take a shot at this. |
@vivshankar Thanks for being patient on this. I spent a little time thinking about this the other day and both the My recommendation is as follows:
type Localizer interface {
Localize(int msgID, args ...interface{})
}
This will probably take a bit of time to do, but the above is the rough idea. Please feel free to ask questions as you work through the code. |
Feature request checklist
Change
I am using CEL as a rule compute engine within my product. I have a need to be able to provide translated error messages to users and am wondering if there is any way for this to be accomplished in CEL. I am happy to inject the translation files in my code, if a mechanism exists.
Happy to submit a pull request if some pointers can be given.
Example
Undeclared reference to 'test' (in container '')
Ideally, I would like to be able to translate messages of this sort.
Alternatives considered
N/A
The text was updated successfully, but these errors were encountered: