Openbravo Issue Tracking System - POS2
View Issue Details
0055167POS2Corepublic2024-04-11 11:132024-04-11 12:44
cberner 
cberner 
normalmajorsometimes
closedfixed 
5
 
24Q3 
No
0055167: Some labels are not shown properly in the application
Some labels are not shown in the application, after further investigation, it seems that they are not properly loaded in AppInitializer.js.

Due to Vite update, the way json files are imported with translations changed from require to await import and as such it needs modification.
- Reproducible with SSMS(but probably there are other ways)
1. Npm start with ssms
2. Login and then click on Distribution Order Issue
3. Click on New DOi

See that several labels are not translated/shown properly.
Modify AppInitializer.js to do the following:

await import(....json).default;

The default is what we want, and not the full imported ES module. This is already done for other imported files.
No tags attached.
caused by feature request 0054570 closed cberner CRA should be replaced by an alternative, Vite 
Issue History
2024-04-11 11:13cbernerNew Issue
2024-04-11 11:13cbernerAssigned To => cberner
2024-04-11 11:13cbernerTriggers an Emergency Pack => No
2024-04-11 11:13cbernerRelationship addedcaused by 0054570
2024-04-11 11:15hgbotNote Added: 0163089
2024-04-11 12:44hgbotResolutionopen => fixed
2024-04-11 12:44hgbotStatusnew => closed
2024-04-11 12:44hgbotNote Added: 0163096
2024-04-11 12:44hgbotFixed in Version => 24Q3
2024-04-11 12:44hgbotNote Added: 0163097

Notes
(0163089)
hgbot   
2024-04-11 11:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1455 [^]
(0163096)
hgbot   
2024-04-11 12:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1455 [^]
(0163097)
hgbot   
2024-04-11 12:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: cad91351ea49baaf547dd60c8c8e564329be4552
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 11-04-2024 11:14:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/cad91351ea49baaf547dd60c8c8e564329be4552 [^]

Fixes ISSUE-55167: Some labels are not shown properly in the application

---
M web-jspack/org.openbravo.core2/src/core/AppInitializer.js
---