[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:
GitHub Copilot 2026-05-25 12:28:33 +02:00
parent 647438e012
commit 5eea3e2a23
7 changed files with 346 additions and 20 deletions

View file

@ -83,7 +83,8 @@
}
})
.then(response =&gt; response.json())
.then(labels =&gt; {
.then(data =&gt; {
var labels = data.result || data;
//console.log('[eskaera_page] Labels received:', labels);
// Update category selector first option text