chore(i18n): add missing translation keys and device debug logging

This commit is contained in:
2026-04-21 17:59:50 +02:00
parent d618ed76d0
commit 21fd1e0197
8 changed files with 32 additions and 0 deletions

View File

@@ -574,6 +574,8 @@
"removeAllowedNumberConfirm": "\"{name}\" aus der Liste der erlaubten Nummern entfernen? Diese Nummer kann nicht mehr mit dem Gerät kommunizieren",
"numberAdded": "Nummer erfolgreich hinzugefügt",
"numberRemoved": "Nummer erfolgreich entfernt",
"numberUpdated": "Nummer erfolgreich aktualisiert",
"editAllowedNumber": "Erlaubte Nummer bearbeiten",
"addSosContact": "SOS-Kontakt hinzufügen",
"noSosContacts": "Keine SOS-Kontakte konfiguriert",
"noSosContactsDescription": "Fügen Sie Notfallkontakte hinzu, die das Gerät im Notfall anrufen kann",
@@ -583,6 +585,7 @@
"removeSosContactConfirm": "\"{name}\" aus der SOS-Kontaktliste entfernen? Dieser Kontakt ist nicht mehr für Notrufe verfügbar",
"sosNumberAdded": "SOS-Kontakt erfolgreich hinzugefügt",
"sosNumberRemoved": "SOS-Kontakt erfolgreich entfernt",
"sosMinimumOneContact": "Es muss mindestens 1 Notfallkontakt vorhanden sein",
"addWifiNetwork": "WLAN-Netzwerk hinzufügen",
"noWifiNetworks": "Keine WLAN-Netzwerke konfiguriert",
"noWifiNetworksDescription": "Fügen Sie WLAN-Netzwerke hinzu, mit denen sich das Gerät automatisch verbinden kann",

View File

@@ -748,6 +748,8 @@
"removeAllowedNumberConfirm": "Remove \"{name}\" from the allowed numbers list? This number will no longer be able to communicate with the device",
"numberAdded": "Number added successfully",
"numberRemoved": "Number removed successfully",
"numberUpdated": "Number updated successfully",
"editAllowedNumber": "Edit allowed number",
"addSosContact": "Add SOS contact",
"noSosContacts": "No SOS contacts configured",
"noSosContactsDescription": "Add emergency contacts that the device can call in case of emergency",
@@ -757,6 +759,7 @@
"removeSosContactConfirm": "Remove \"{name}\" from the SOS contacts list? This contact will no longer be available for emergency calls",
"sosNumberAdded": "SOS contact added successfully",
"sosNumberRemoved": "SOS contact removed successfully",
"sosMinimumOneContact": "There must be at least 1 emergency contact",
"addWifiNetwork": "Add WiFi network",
"noWifiNetworks": "No WiFi networks configured",
"noWifiNetworksDescription": "Add WiFi networks that the device can connect to automatically",

View File

@@ -749,6 +749,8 @@
"removeAllowedNumberConfirm": "¿Eliminar \"{name}\" de la lista de números permitidos? Este número ya no podrá comunicarse con el dispositivo",
"numberAdded": "Número añadido correctamente",
"numberRemoved": "Número eliminado correctamente",
"numberUpdated": "Número actualizado correctamente",
"editAllowedNumber": "Editar número permitido",
"addSosContact": "Añadir contacto SOS",
"noSosContacts": "No hay contactos SOS configurados",
"noSosContactsDescription": "Añade contactos de emergencia a los que el dispositivo pueda llamar en caso de emergencia",
@@ -758,6 +760,7 @@
"removeSosContactConfirm": "¿Eliminar \"{name}\" de la lista de contactos SOS? Este contacto ya no estará disponible para llamadas de emergencia",
"sosNumberAdded": "Contacto SOS añadido correctamente",
"sosNumberRemoved": "Contacto SOS eliminado correctamente",
"sosMinimumOneContact": "Debe haber al menos 1 contacto de emergencia",
"addWifiNetwork": "Añadir red WiFi",
"noWifiNetworks": "No hay redes WiFi configuradas",
"noWifiNetworksDescription": "Añade redes WiFi a las que el dispositivo pueda conectarse automáticamente",

View File

@@ -574,6 +574,8 @@
"removeAllowedNumberConfirm": "Supprimer \"{name}\" de la liste des numéros autorisés ? Ce numéro ne pourra plus communiquer avec l'appareil",
"numberAdded": "Numéro ajouté avec succès",
"numberRemoved": "Numéro supprimé avec succès",
"numberUpdated": "Numéro mis à jour avec succès",
"editAllowedNumber": "Modifier le numéro autorisé",
"addSosContact": "Ajouter un contact SOS",
"noSosContacts": "Aucun contact SOS configuré",
"noSosContactsDescription": "Ajoutez des contacts d'urgence que l'appareil peut appeler en cas d'urgence",
@@ -583,6 +585,7 @@
"removeSosContactConfirm": "Supprimer \"{name}\" de la liste des contacts SOS ? Ce contact ne sera plus disponible pour les appels d'urgence",
"sosNumberAdded": "Contact SOS ajouté avec succès",
"sosNumberRemoved": "Contact SOS supprimé avec succès",
"sosMinimumOneContact": "Il doit y avoir au moins 1 contact d'urgence",
"addWifiNetwork": "Ajouter un réseau WiFi",
"noWifiNetworks": "Aucun réseau WiFi configuré",
"noWifiNetworksDescription": "Ajoutez des réseaux WiFi auxquels l'appareil peut se connecter automatiquement",

View File

@@ -574,6 +574,8 @@
"removeAllowedNumberConfirm": "Rimuovere \"{name}\" dall'elenco dei numeri consentiti? Questo numero non potrà più comunicare con il dispositivo",
"numberAdded": "Numero aggiunto con successo",
"numberRemoved": "Numero rimosso con successo",
"numberUpdated": "Numero aggiornato con successo",
"editAllowedNumber": "Modifica numero consentito",
"addSosContact": "Aggiungi contatto SOS",
"noSosContacts": "Nessun contatto SOS configurato",
"noSosContactsDescription": "Aggiungi contatti di emergenza che il dispositivo può chiamare in caso di emergenza",
@@ -583,6 +585,7 @@
"removeSosContactConfirm": "Rimuovere \"{name}\" dall'elenco dei contatti SOS? Questo contatto non sarà più disponibile per le chiamate di emergenza",
"sosNumberAdded": "Contatto SOS aggiunto con successo",
"sosNumberRemoved": "Contatto SOS rimosso con successo",
"sosMinimumOneContact": "Deve esserci almeno 1 contatto di emergenza",
"addWifiNetwork": "Aggiungi rete WiFi",
"noWifiNetworks": "Nessuna rete WiFi configurata",
"noWifiNetworksDescription": "Aggiungi reti WiFi a cui il dispositivo può connettersi automaticamente",

View File

@@ -574,6 +574,8 @@
"removeAllowedNumberConfirm": "Remover \"{name}\" da lista de números permitidos? Este número não poderá mais comunicar com o dispositivo",
"numberAdded": "Número adicionado com sucesso",
"numberRemoved": "Número removido com sucesso",
"numberUpdated": "Número atualizado com sucesso",
"editAllowedNumber": "Editar número permitido",
"addSosContact": "Adicionar contacto SOS",
"noSosContacts": "Nenhum contacto SOS configurado",
"noSosContactsDescription": "Adicione contactos de emergência que o dispositivo pode ligar em caso de emergência",
@@ -583,6 +585,7 @@
"removeSosContactConfirm": "Remover \"{name}\" da lista de contactos SOS? Este contacto deixará de estar disponível para chamadas de emergência",
"sosNumberAdded": "Contacto SOS adicionado com sucesso",
"sosNumberRemoved": "Contacto SOS removido com sucesso",
"sosMinimumOneContact": "Deve haver pelo menos 1 contacto de emergência",
"addWifiNetwork": "Adicionar rede WiFi",
"noWifiNetworks": "Nenhuma rede WiFi configurada",
"noWifiNetworksDescription": "Adicione redes WiFi às quais o dispositivo pode conectar-se automaticamente",

View File

@@ -616,6 +616,8 @@ class I18n {
static const String number = 'number';
static const String numberAdded = 'numberAdded';
static const String numberRemoved = 'numberRemoved';
static const String numberUpdated = 'numberUpdated';
static const String editAllowedNumber = 'editAllowedNumber';
static const String ok = 'ok';
static const String onboardingSubtitle1 = 'onboardingSubtitle1';
static const String onboardingSubtitle2 = 'onboardingSubtitle2';
@@ -827,6 +829,7 @@ class I18n {
static const String sosDescription = 'sosDescription';
static const String sosNumberAdded = 'sosNumberAdded';
static const String sosNumberRemoved = 'sosNumberRemoved';
static const String sosMinimumOneContact = 'sosMinimumOneContact';
static const String sound = 'sound';
static const String soundAndVibration = 'soundAndVibration';
static const String soundOnly = 'soundOnly';

View File

@@ -1,3 +1,6 @@
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:sf_infrastructure/sf_infrastructure.dart';
import 'package:sf_shared/sf_shared.dart';
@@ -18,6 +21,14 @@ class DevicesRemoteDatasourceImpl implements DevicesRemoteDatasource {
throw Exception('Empty response from /devices');
}
debugPrint('[Devices] raw response: ${jsonEncode(data)}');
final items = data['items'] as List?;
if (items != null) {
for (final item in items) {
debugPrint('[Devices] capabilities: ${jsonEncode(item['capabilities'])}');
}
}
final model = GetDevicesResponseModel.fromJson(data);
return model.toEntity();
}