Uploaded image for project: 'FOLIO'
  1. FOLIO
  2. FOLIO-3351

Remove lang query parameter

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • None
    • CP: sprint 128
    • 1
    • Core: Platform
    • GBV

    Description

      FOLIO-3196 = https://wiki.folio.org/display/DD/Localization+parameter+for+back-end decided that back-end modules should use the accept-language HTTP header line for selecting the language of (error and other) messages.

      Therefore this Jira removes language trait.

      FOLIO defines the lang query parameter in the language RAML trait: https://github.com/folio-org/raml/blob/raml1.0/traits/language.raml

      lang:
        description: |
          Requested language. Optional. [lang=en]
        type: string
        required: false
        default: en
        pattern: "[a-zA-Z]{2}" 

      It is declared in all RAML resource types: https://github.com/folio-org/raml/tree/raml1.0/rtypes

      It is not used because is cannot been used as FOLIO has many language keys that are longer than two characters, for example en-US, en-GB, pt-BR, pt-PT, zh-CN, zh-TW.

      Switching an RMB based module to resource types without the lang query will cause a compile error. Developers can easily remove the lang parameter from the method's parameter list to fix this.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases