Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Project Server REST queries - Localization

$
0
0

Hi folks,

We are using simple REST queries to get the information from some projects. Sounds easy, and it is.

The problem comes when you have sites in different languages (Italian, English, Spanish, ...) and you try to construct a normal REST query. Basically, as we know, with one query, doesn´t matter the language, the query would be like this:

https://mysupermegasite.sharepoint/sites/pwa/_api/ProjectData/Projects(guid'423507d1-c82c-e211-8590-080027e78499')

In this query, we are asking for the information of the Project which has the ProjUid423507d1-c82c-e211-8590-080027e78499.

Everything looks good when the query is done in a English site, but when this query is realized in a non-english site, we were noticed that"Resource not found for the segment 'Projects'"... Strange!!

And then... we tried to change the word Projects depending on the language the site is. Some examples:

 - Spanish: https://mysupermegasite.sharepoint/sites/pwa/_api/ProjectData/Proyectos(guid'423507d1-c82c-e211-8590-080027e78499')

- Italian: https://mysupermegasite.sharepoint/sites/pwa/_api/ProjectData/Progetti(guid'423507d1-c82c-e211-8590-080027e78499')

The result is succesful, but... does it mean that I have to change my REST query for every language my app will be installed? I HOPE NO...

Does someone have been faced to something similar? Any ideas would be appreciated...

Many thanks!


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>