[MGNLFE-194] Don't work with lang param that include country code Created: 06/May/22 Updated: 04/Jul/22 Resolved: 02/Jun/22 |
|
| Status: | Closed |
| Project: | Magnolia Frontend Helpers |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Phong Le Quoc | Assignee: | Unassigned |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | SPA Editor Backlog | ||||||||
| Team: | |||||||||
| Description |
|
magnolia-rest-content-delivery expects language tag value of a locale for the lang param (BCP 47 format). However, minimal-headless-spa-demos provides toString value of a locale. For example, for new Locale("zh", "CN"), toString = "zh_CN", languageTag="zh-CN)
|
| Comments |
| Comment by Phong Le Quoc [ 02/Jun/22 ] |
|
|
| Comment by Christopher Zimmermann [ 02/Jun/22 ] |
|
Solved in linked ticket: https://jira.magnolia-cms.com/browse/MGNLREST-373 |