[FOLIO-3351] Remove lang query parameter Created: 23/Nov/21  Updated: 03/Jan/23  Resolved: 23/Nov/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Story Priority: P2
Reporter: Julian Ladisch Assignee: Julian Ladisch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Defines
defines UXPROD-371 Enable translation of validation and ... Open
is defined by MODFIN-296 Update dependent raml-util Closed
is defined by MODFISTO-365 Update dependent raml-util Closed
is defined by MODGOBI-187 Update dependent raml-util Closed
is defined by MODINVOICE-443 Update dependent raml-util Closed
is defined by MODINVOSTO-154 Update dependent raml-util Closed
is defined by MODORDERS-828 Update dependent raml-util Closed
is defined by MODORDSTOR-330 Update dependent raml-util Closed
is defined by MODORG-46 Update dependent raml-util Closed
is defined by MODORGSTOR-137 Update dependent raml-util Closed
Gantt End to Start
has to be done before RMB-879 Upgrade notes about language.raml tra... Closed
Relates
relates to FOLIO-3196 DECISION: Localisation parameter for ... Closed
relates to MODFISTO-365 Update dependent raml-util Closed
Sprint: CP: sprint 128
Story Points: 1
Development Team: Core: Platform
Affected Institution:
GBV

 Description   

FOLIO-3196 Closed = https://folio-org.atlassian.net/wiki/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.


Generated at Thu Feb 08 23:27:27 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.