Add Swedish localization for various app actions and inventory management strings
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../../../core/api/api_error_mapper.dart';
|
||||
import '../../../core/l10n/l10n.dart';
|
||||
import '../data/admin_repository.dart';
|
||||
import '../domain/ai_model_info.dart';
|
||||
|
||||
@@ -60,7 +61,7 @@ class _AdminAiPanelState extends ConsumerState<AdminAiPanel> {
|
||||
children: [
|
||||
Text(_error!, style: TextStyle(color: theme.colorScheme.error)),
|
||||
const SizedBox(height: 16),
|
||||
FilledButton(onPressed: _load, child: const Text('Försök igen')),
|
||||
FilledButton(onPressed: _load, child: Text(context.l10n.retryAction)),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -70,7 +71,7 @@ class _AdminAiPanelState extends ConsumerState<AdminAiPanel> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Översikt över AI-funktioner som backend exponerar.',
|
||||
context.l10n.adminAiDescription,
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
@@ -98,7 +99,7 @@ class _AdminAiPanelState extends ConsumerState<AdminAiPanel> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text('Sida: ${model.path}', style: theme.textTheme.bodySmall),
|
||||
Text('${context.l10n.adminPagePrefix}${model.path}', style: theme.textTheme.bodySmall),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user