Skip to content

Commit

Permalink
feat: Translate Android persistent notification for geolocation track…
Browse files Browse the repository at this point in the history
…ing and add icon
  • Loading branch information
zatteo committed Nov 10, 2023
1 parent 3c14929 commit 23405d8
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/domain/geolocation/tracking/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export const startTracking = async () => {
message: t(
'services.geolocationTracking.androidBackgroundPermissionMessage'
)
},
notification: {
title: t('services.geolocationTracking.androidNotificationTitle'),
text: t('services.geolocationTracking.androidNotificationDescription'),
smallIcon: 'mipmap/ic_stat_ic_notification'
}
})
await BackgroundGeolocation.start()
Expand Down
4 changes: 3 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
}
},
"geolocationTracking": {
"androidBackgroundPermissionMessage": "Recording your movements requires to ≪ {backgroundPermissionOptionLabel} ≫"
"androidBackgroundPermissionMessage": "Recording your movements requires to ≪ {backgroundPermissionOptionLabel} ≫",
"androidNotificationTitle": "Location service on",
"androidNotificationDescription": "Your journey will be recorded into your Cozy"
},
"osReceive": {
"documentType": "Document Type:",
Expand Down
5 changes: 5 additions & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
"onProgressMessage": "Se está subiendo un archivo"
}
},
"geolocationTracking": {
"androidBackgroundPermissionMessage": "Registrar sus movimientos requiere ≪ {backgroundPermissionOptionLabel} ≫",
"androidNotificationTitle": "Servicio de localización en",
"androidNotificationDescription": "Tu viaje quedará registrado en tu Cozy"
},
"osReceive": {
"documentType": "Tipo de documento :",
"submit": "Siguiente",
Expand Down
4 changes: 3 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@
}
},
"geolocationTracking": {
"androidBackgroundPermissionMessage": "Mémoriser vos déplacements nécessite de ≪ {backgroundPermissionOptionLabel} ≫"
"androidBackgroundPermissionMessage": "Mémoriser vos déplacements nécessite de ≪ {backgroundPermissionOptionLabel} ≫",
"androidNotificationTitle": "Service de localisation actif",
"androidNotificationDescription": "Votre déplacement sera enregistré dans votre Cozy"
},
"osReceive": {
"documentType": "Type de document :",
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/cozy/js/locales/extra-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Your journey will be recorded into your Cozy"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} does not allow you to import multiple files simultaneously. Please import your files one by one or use the {{appname}} application directly in your Cozy."
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/cozy/js/locales/extra-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Tu viaje quedará registrado en tu Cozy"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} no permite importar varios archivos simultáneamente. Por favor, importa tus archivos uno a uno o utiliza la aplicación {{appname}} directamente en tu Cozy."
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/cozy/js/locales/extra-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Votre déplacement sera enregistré dans votre Cozy"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} ne permet pas d'importer plusieurs fichiers simultanément. Merci d'importer vos fichier un par un ou utiliser directement l'application {{appname}} dans votre Cozy."
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/mabulle/js/locales/extra-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Your journey will be recorded into your personal space"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} does not allow you to import multiple files simultaneously. Please import your files one by one or use the {{appname}} application directly in your personnal space."
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/mabulle/js/locales/extra-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Tu viaje quedará registrado en tu cuenta"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} no permite importar varios archivos simultáneamente. Por favor, importa tus archivos uno a uno o utiliza la aplicación {{appname}} directamente en tu cuenta."
Expand Down
3 changes: 3 additions & 0 deletions white_label/brands/mabulle/js/locales/extra-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}
},
"services": {
"geolocationTracking": {
"androidNotificationDescription": "Votre déplacement sera enregistré dans votre espace personnel"
},
"osReceive": {
"disableReasons": {
"multipleFiles": "{{appname}} ne permet pas d'importer plusieurs fichiers simultanément. Merci d'importer vos fichier un par un ou utiliser directement l'application {{appname}} dans votre espace personnel."
Expand Down

0 comments on commit 23405d8

Please sign in to comment.