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

Use AOT compilation to detect translation field #53

Open
TheYoxy opened this issue Mar 9, 2020 · 5 comments
Open

Use AOT compilation to detect translation field #53

TheYoxy opened this issue Mar 9, 2020 · 5 comments

Comments

@TheYoxy
Copy link

TheYoxy commented Mar 9, 2020

Feature request

Is your feature request related to a problem? Please describe

Currently, I'm using some smaller components for the inputs. These components are using values passed as input to be rendered.

Describe the solution you'd like

Maybe by using angular AOT compiler, it will be possible to fetch the HTML outputted files to find the real used key.

@itekaf
Copy link
Owner

itekaf commented Mar 9, 2020

Hi @TheYoxy

It's good idea! Right now we have AOT only for BETA flags and your idea will be implemented soon.

Thanks a lot!

@TheYoxy
Copy link
Author

TheYoxy commented Mar 9, 2020

If needed, I can provide some complex use cases examples too.

@itekaf
Copy link
Owner

itekaf commented Mar 10, 2020

It would be awesome

@TheYoxy
Copy link
Author

TheYoxy commented Mar 10, 2020

https://gist.github.com/TheYoxy/42d37cdc7089173b411fc71253c8e632#file-input-component-html-L7

Here is it. I hope it is quite clear out of the box.
There is also 2 more specific use case:

  • Function inside the interpolation
  • Pipe inside the interpolation

Which should be rendered in order to have the ability to fetch the real key. (I don't know if this is exactly possible or not, but I think that it should be possible by using AOT)

@itekaf
Copy link
Owner

itekaf commented Mar 22, 2020

@TheYoxy Thanks alot for your proposed. I will try to fix it soon, but I can't get you any promise because it's not easy implementation and can be included a lot of issues

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