[IMP] website_sale_aplicoop: improve i18n label fallbacks and response parsing
Add hardcoded fallback translations for es/eu when PO-based translation returns the source string unchanged. Expand labels dict with all keys needed by the frontend. Fix JSON response parsing in template (data.result || data). Add js_translations keys. Add pot file for stock_picking_batch_custom. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
647438e012
commit
5eea3e2a23
7 changed files with 346 additions and 20 deletions
|
|
@ -83,7 +83,8 @@
|
|||
}
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(labels => {
|
||||
.then(data => {
|
||||
var labels = data.result || data;
|
||||
//console.log('[eskaera_page] Labels received:', labels);
|
||||
|
||||
// Update category selector first option text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue