Does API support setting language?
@Ian.P.710 and all…
Does the API support setting a language (other than English) for a course?
What languages are supported?
In the UI, I see the ability to set English or Spanish, but I don't see that in any of the API actions for courses or course content.
Thanks!
Richard
Answers
-
Hi Richard,
Yes, you can. Language settings are managed through the use of locales. Locales are used to configure cultural formatting and languages for your Brightspace environment via a default setting, and in course offerings in which you can set a different locale to the default.
For more information on the types of locales, and a list of system locales available ee:
Using the API's, including but not limited to, you can:
- Retrieve the collection of all known locales and languages
- Update or set a locale for a course offering
- Update the locale account settings for a particular user
Hope that helps!
-
@Chris.S.534 thanks for the reply.
When I try the endpoint for known languages and locales, I get errors:
https://{{brightspace}}/d2l/api/lp/1.44/locales/
404 Not Foundhttps://{{brightspace}}/d2l/api/lp/1.44/language
403 Forbidden(I can hit other API endpoints without a problem).
Richard -
In case you are struggling with courses being solely in English and want to access it in a different language, say Spanish, download the course and use an AI audio or video translator to change it into your desired language... for now, that's the best option I can think of
-
In case you are struggling with courses being solely in English and want to access it in a different language, say Spanish, download the course and use an AI audio or video translator to change it into your desired language... for now, that's the best option I can think of
-
Hi Richard,
Apologies for the delayed response. It appears the API Versions for those calls are unstable - I couldn't find a version in which they work successfully - and get the same result as you.
The locale ID's are available via the UI, Admin tools > Locale Management > select a locale and view the parameter in the URL e.g. lid=1.
Thanks, Chris