on 2023 Sep 25 5:17 PM
Hi,
I am trying to migrate my project from using cds2types package to @cap-js/cds-typer. With cds2types, when I defined some property as "localized", the generated .ts file would contain a constant that could be used to reference the generated text table as well as a class that would represent an entry in the text table. Looking at the file generated by cds-typer, this does not seem to be the case. I also don't see any mention of this in the documentation
Is this a missing feature? How should I access text tables for localized properties?
Thanks
Request clarification before answering.
Hi Martin,
I'm afraid localisation is currently not available in the generated types yielded by cds-typer (as you have already suspected).
But it does sound like a very useful addition. Would you mind bringing this up as issue in the GitHub repository? Just file it as a bug, we will then treat it as a feature request.
Best,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.