Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4466

REST API should obtain language settings from Client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0
    • Fix Version/s: 7.0
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      (Noted by Andrea Bollini (4Science) in today's DSpace 7 Mtg)

      While users can change language preference/settings in the Angular UI layer for DSpace 7, the backend (REST API) is never notified of these language preferences.  While most i18n (internationalization) settings exist in the UI layer, there are some backend features which also require i18n, namely:

      • Submission forms
      • Controlled Vocabularies
      • Authorities

      Ideally, when a user changes languages in the UI layer, that information should be passed via a request to the REST API.  To remain stateless, this setting may need to be passed on every request or perhaps store it in a Cookie.

      The early recommendation is to perhaps support it via the "Accept-Language" Header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language  However, we need to determine if this is feasible for clients like the Angular UI, and whether it will meet our needs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bollini Andrea Bollini (4Science)
              Reporter:
              tdonohue Tim Donohue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: