[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: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | CP: sprint 128 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Development Team: | Core: Platform | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Affected Institution: |
GBV
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
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. |