Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Localized Language is not working #196

Closed
parthjhalani opened this issue Aug 19, 2021 · 1 comment
Closed

Localized Language is not working #196

parthjhalani opened this issue Aug 19, 2021 · 1 comment
Labels
help wanted Extra attention is needed localization support for localized entities

Comments

@parthjhalani
Copy link

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
Copy link
Collaborator

vobu commented Aug 19, 2021

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

@vobu vobu added help wanted Extra attention is needed localization support for localized entities labels Aug 19, 2021
@vobu vobu closed this as completed Jul 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed localization support for localized entities
Projects
None yet
Development

No branches or pull requests

2 participants