sapmentors/cds-pg

Localized Language is not working

parthjhalani opened this issue · 1 comments

Hi Mentors,

For my project, I wanted to use Localized languages.
I created my data model like this
entity ProductCategory { key categoryid : Integer; name : localized String; }

And than exposed it like below
@readonly entity ProductsCategory as projection on ProductCategory;

I also created some CSV to upload the sample data with file names ProductCategory.csv and ProductCategory_texts.csv

When i use it on sqlite.. I can access the localized data by passing the url parameter sap-language=DE. However the same doesn't work when i use postgresql as db. The metadata for postgresql does show the generated text table so that means the data tables are all generated fine.
image

Url called to get localized data
/ProductsCategory?sap-language=DE

Please note that same works fine for sqlite DB.

Thanks,
Parth

vobu commented

yep, no support of localized entities yet in cds-pg.
also see #116 and #104.
any help appreciated, PRs welcome!