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(scope): allow method calls with transpiled arguments in DefaultTranspiler #830

Open
1 task done
f-aubert opened this issue Jan 15, 2025 · 0 comments
Open
1 task done

Comments

@f-aubert
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Which Transloco package(s) will this feature affect?

Transloco

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

With a proper pattern, we could easily extend the getValue mechanism to support js function calls on params (eg. String.charAt, String.lowercase, ...) which would give more flexibility in the translation eliminating the needs of preprocessing in angular component html and/or ts.

Describe alternatives you've considered

An alternative would be to use FunctionalTranspiler, and redeclare register needed javascript functions there.

Additional context

No response

I would like to make a pull request for this feature

Yes 🚀

@f-aubert f-aubert changed the title Feature(scope): allow method calls with transpiled arguments in DefaultTranspiler (#xxx) Feature(scope): allow method calls with transpiled arguments in DefaultTranspiler Jan 15, 2025
f-aubert pushed a commit to f-aubert/transloco that referenced this issue Jan 15, 2025
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

1 participant