OneDrive / onedrive-api-docs

Official documentation for the OneDrive API
MIT License
447 stars 228 forks source link

Specifying locale seems to have no effect #1789

Open bolinfest opened 3 months ago

bolinfest commented 3 months ago

Category

Expected or Desired Behavior

https://learn.microsoft.com/en-us/onedrive/developer/controls/file-pickers/?view=odsp-graph-online#permissions claims that:

  const queryString = new URLSearchParams({
    filePicker: JSON.stringify(config),
    locale,
  });

should honor the specified locale.

Observed Behavior

I get US English regardless of what value I specify for locale.

Steps to Reproduce

Look at the javascript-basic-consumer sample:

https://github.com/OneDrive/samples/blob/71ca0835e6da93c078ddb6c41cf21aec6792d2a9/samples/file-picking/javascript-basic-consumer/index.html#L43-L45

and add locale: 'de_DE' as specified in the docs. If you run the sample, things load in English for me rather than German.