fix(receipt-import): correct Swedish labels for packaging quantity and count

This commit is contained in:
Nils-Johan Gynther
2026-05-02 10:26:50 +02:00
parent 9161de5d52
commit 4e81f56225
@@ -679,7 +679,7 @@ class _EditDialogState extends State<_EditDialog> {
controller: _quantityCtrl, controller: _quantityCtrl,
keyboardType: const TextInputType.numberWithOptions(decimal: true), keyboardType: const TextInputType.numberWithOptions(decimal: true),
decoration: const InputDecoration( decoration: const InputDecoration(
labelText: 'Mangd per forpackning', labelText: 'Mängd per förpackning',
border: OutlineInputBorder(), border: OutlineInputBorder(),
), ),
onChanged: (_) => setState(() {}), onChanged: (_) => setState(() {}),
@@ -702,7 +702,7 @@ class _EditDialogState extends State<_EditDialog> {
controller: _packageCountCtrl, controller: _packageCountCtrl,
keyboardType: const TextInputType.numberWithOptions(decimal: true), keyboardType: const TextInputType.numberWithOptions(decimal: true),
decoration: const InputDecoration( decoration: const InputDecoration(
labelText: 'Antal forpackningar', labelText: 'Antal förpackningar',
border: OutlineInputBorder(), border: OutlineInputBorder(),
), ),
onChanged: (_) => setState(() {}), onChanged: (_) => setState(() {}),
@@ -719,7 +719,7 @@ class _EditDialogState extends State<_EditDialog> {
), ),
child: Text( child: Text(
'Totalt: ${_formatSwedishNumber(totalPreview)} $currentUnit ' 'Totalt: ${_formatSwedishNumber(totalPreview)} $currentUnit '
'(mangd x antal forpackningar).', '(mängd x antal förpackningar).',
style: theme.textTheme.bodySmall?.copyWith( style: theme.textTheme.bodySmall?.copyWith(
color: Colors.green.shade800, color: Colors.green.shade800,
), ),