cap-js / cds-types

Type definitions for CDS
Apache License 2.0
10 stars 10 forks source link

[BUG] missing i18n support #80

Open skarolus-rc opened 5 months ago

skarolus-rc commented 5 months ago

Is there an existing issue for this?

Current Behavior

Currently it is not possible to use for example cds.localize(edmx,'de')

Expected Behavior

It is possible to use the functions for cds.i18n. Like written in the file @sap/cds/lib/i18n

References

https://cap.cloud.sap/docs/guides/i18n#user-locale npm node_modules for @sap/cds

Versions

@cap-js/cds-typer: 0.20.2 @cap-js/cds-types: 0.2.0 @cap-js/sqlite: 1.7.1 @sap/cds: 7.9.2 @sap/cds-compiler: 4.9.4 @sap/cds-dk: 7.9.1 @sap/cds-dk (global): 7.9.2 @sap/cds-fiori: 1.2.3 @sap/cds-foss: 5.0.0 @sap/cds-mtxs: 1.18.1 @sap/eslint-plugin-cds: 3.0.3 Node.js: v20.12.0

Anything else? Logs?

No response

daogrady commented 3 months ago

Hi Simon,

thanks for reporting this issue! I don't see cds.localize anywhere in the guide you linked, nor in any other part of CAPire. So I guess this is not actually part of our API. Could you please describe what you were trying to do with cds.localize?

Best, Daniel