Label print calibration and Lithium Label UI polish (#3)
## Summary - Calibrate label print/calibrate CSS to the reference PDF (positions, ~7pt/6pt sizes, bottom-row pitch) - Print layout: partial last-box weight, pad short pages to 4 slips, whole-number weights - Rename to Lithium Label Manager; Vazirmatn for FA / Inter for EN; inverted lithium icon; seed weights=5; number step=1; hide empty toast ## Test plan - [ ] Print calibration sheet and overlay on a physical label — top and bottom rows align - [ ] Order 50/5/4 — box labels show 20, 20, 10 (padded page); weights without `.0` - [ ] Language toggle switches Inter ↔ Vazirmatn - [ ] Seed products use canister weight 5; form spinners step by 1 Reviewed-on: #3 Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com> Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
This commit was merged in pull request #3.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const translations = {
|
||||
'en': {
|
||||
'app_title': 'Lithium Slip Manager',
|
||||
'app_title': 'Lithium Label Manager',
|
||||
'data_entry': 'Data Entry',
|
||||
'print_queue': 'Print Queue',
|
||||
'calibrate': 'Calibrate',
|
||||
@@ -76,6 +76,8 @@ const translations = {
|
||||
let currentLang = localStorage.getItem('slip_lang') || 'en';
|
||||
|
||||
function applyLanguage(lang) {
|
||||
document.documentElement.lang = lang;
|
||||
|
||||
document.querySelectorAll('[data-i18n]').forEach(el => {
|
||||
const key = el.getAttribute('data-i18n');
|
||||
if (translations[lang][key]) {
|
||||
|
||||
Reference in New Issue
Block a user