Skip to content

Commit 7f4e79a

Browse files
gabrieltmonkaiGabriel Tira
andauthored
added italian language (#951)
Co-authored-by: Gabriel Tira <[email protected]>
1 parent c339b46 commit 7f4e79a

File tree

38 files changed

+590
-97
lines changed

38 files changed

+590
-97
lines changed

apps/demo-app-video/src/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import en from './translations/en.json';
66
import fr from './translations/fr.json';
77
import de from './translations/de.json';
88
import nl from './translations/nl.json';
9+
import it from './translations/it.json';
910

1011
i18n
1112
.use(I18nextBrowserLanguageDetector)
@@ -21,6 +22,7 @@ i18n
2122
fr: { translation: fr },
2223
de: { translation: de },
2324
nl: { translation: nl },
25+
it: { translation: it },
2426
},
2527
})
2628
.catch(console.error);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"inspection-complete": {
3+
"thank-message": "Grazie per aver dedicato del tempo a completare l'ispezione."
4+
}
5+
}

apps/demo-app/src/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import en from './translations/en.json';
66
import fr from './translations/fr.json';
77
import de from './translations/de.json';
88
import nl from './translations/nl.json';
9+
import it from './translations/it.json';
910

1011
i18n
1112
.use(I18nextBrowserLanguageDetector)
@@ -21,6 +22,7 @@ i18n
2122
fr: { translation: fr },
2223
de: { translation: de },
2324
nl: { translation: nl },
25+
it: { translation: it },
2426
},
2527
})
2628
.catch(console.error);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

packages/camera-web/src/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import en from './translations/en.json';
33
import fr from './translations/fr.json';
44
import de from './translations/de.json';
55
import nl from './translations/nl.json';
6+
import it from './translations/it.json';
67

78
/**
89
* i18n instance of the Camera package. You can use this instance to automatically sync your application current
@@ -14,5 +15,6 @@ export const i18nCamera = i18nCreateSDKInstance({
1415
fr: { translation: fr },
1516
de: { translation: de },
1617
nl: { translation: nl },
18+
it: { translation: it },
1719
},
1820
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"retry": "Riprova"
3+
}

packages/camera-web/src/utils/errors.utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,47 @@ export function getCameraErrorLabel(error?: UserMediaErrorType): TranslationObje
1313
fr: "L'apperçu de la caméra n'est pas disponible car l'accès à la caméra n'est pas autorisé.",
1414
de: 'Die Kameravorschau ist nicht verfügbar, da für die Seite kein Kamerazugriff gewährt wurde.',
1515
nl: 'De cameravoorbeeld is niet beschikbaar omdat er geen toegang tot de camera is verleend aan de pagina.',
16+
it: "L'anteprima della fotocamera non è disponibile perché l'accesso alla fotocamera non è stato concesso alla pagina.",
1617
};
1718
case UserMediaErrorType.WEBPAGE_NOT_ALLOWED:
1819
return {
1920
en: 'Unable to get camera access. Make sure to press “Allow” when asked to grant camera permission for this web page.',
2021
fr: "Impossible d'accéder à la caméra. Veuillez vous assurer d'appuyer sur “Autoriser” lorsqu'on vous propose d'autoriser l'accès à la caméra pour cette page web.",
2122
de: 'Die Kamera kann nicht zugelassen werden. Stellen Sie sicher, dass Sie auf „Zulassen“ drücken, wenn Sie aufgefordert werden, die Kamera für diese Webseite zuzulassen.',
2223
nl: 'Kan geen toestemming krijgen voor de camera. Zorg ervoor dat u op “Toestaan” drukt wanneer u wordt gevraagd om toestemming te geven voor het gebruik van de camera op deze webpagina.',
24+
it: 'Impossibile ottenere l\'accesso alla fotocamera. Assicurati di premere "Consenti" quando ti viene chiesto di concedere il permesso di utilizzare la fotocamera per questa pagina web.',
2325
};
2426
case UserMediaErrorType.BROWSER_NOT_ALLOWED:
2527
return {
2628
en: "Unable to get camera access. Make sure to grant camera access to your current internet browser in your device's settings.",
2729
fr: "Impossible d'accéder à la caméra. Veuillez vous assurer d'autoriser l'accès à la caméra pour ce navigateur internet dans les paramètres de votre téléphone.",
2830
de: 'Der Zugriff auf die Kamera ist nicht möglich. Stellen Sie sicher, dass Sie in den Einstellungen Ihres Geräts den Kamerazugriff für Ihren aktuellen Internetbrowser zulassen.',
2931
nl: 'Kan geen cameratoegang krijgen. Zorg ervoor dat u de camera toegang verleent tot uw huidige internet browser in de instellingen van uw apparaat.',
32+
it: "Impossibile ottenere l'accesso alla fotocamera. Assicurati di concedere l'accesso alla fotocamera al tuo browser internet corrente nelle impostazioni del tuo dispositivo.",
3033
};
3134
case UserMediaErrorType.STREAM_INACTIVE:
3235
return {
3336
en: 'The camera video stream was closed unexpectedly.',
3437
fr: 'Le flux vidéo de la caméra a été coupé de manière inattendue.',
3538
de: 'Der Video-Stream der Kamera wurde unerwartet geschlossen.',
3639
nl: 'De videostream van de camera is onverwacht gesloten.',
40+
it: 'Il flusso video della fotocamera è stato chiuso inaspettatamente.',
3741
};
3842
case UserMediaErrorType.INVALID_STREAM:
3943
return {
4044
en: 'Unable to process the camera video stream.',
4145
fr: 'Impossible de traiter le flux vidéo de la caméra.',
4246
de: 'Der Videostrom der Kamera kann nicht verarbeitet werden.',
4347
nl: 'De videostream van de camera kan niet worden verwerkt.',
48+
it: 'Impossibile elaborare il flusso video della fotocamera.',
4449
};
4550
default:
4651
return {
4752
en: 'An unexpected error occurred when fetching the camera video stream.',
4853
fr: 'Une erreur inattendue est survenue lors de la récupération du flux vidéo de la caméra.',
4954
de: 'Beim Abrufen des Kamera-Videostreams ist ein unerwarteter Fehler aufgetreten.',
5055
nl: 'Er is een onverwachte fout opgetreden bij het ophalen van de videostream van de camera.',
56+
it: 'Si è verificato un errore imprevisto durante il recupero del flusso video della fotocamera.',
5157
};
5258
}
5359
}

packages/camera-web/test/utils/errors.utils.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe('Camera error utils', () => {
99
fr: expect.any(String),
1010
de: expect.any(String),
1111
nl: expect.any(String),
12+
it: expect.any(String),
1213
});
1314
});
1415
});
@@ -19,6 +20,7 @@ describe('Camera error utils', () => {
1920
fr: expect.any(String),
2021
de: expect.any(String),
2122
nl: expect.any(String),
23+
it: expect.any(String),
2224
});
2325
});
2426

@@ -28,6 +30,7 @@ describe('Camera error utils', () => {
2830
fr: expect.any(String),
2931
de: expect.any(String),
3032
nl: expect.any(String),
33+
it: expect.any(String),
3134
});
3235
});
3336
});

packages/common-ui-web/src/components/CaptureSelection/i18n.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import en from './translations/en.json';
33
import fr from './translations/fr.json';
44
import de from './translations/de.json';
55
import nl from './translations/nl.json';
6+
import it from './translations/it.json';
67

78
/**
89
* i18n instance of the CaptureSelection component. You can use this instance to automatically sync your application
@@ -14,6 +15,7 @@ const i18nCreateInspection = i18nCreateSDKInstance({
1415
fr: { translation: fr },
1516
de: { translation: de },
1617
nl: { translation: nl },
18+
it: { translation: it },
1719
},
1820
});
1921

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"addDamage": {
3+
"title": "Segnala un danno",
4+
"description": "Aggiungi foto di ammaccature, graffi o altri danni presenti sul veicolo.",
5+
"button": "Aggiungi foto dei danni"
6+
},
7+
"capture": {
8+
"title": "Avvia l’ispezione",
9+
"description": "Nessuna ammaccatura o graffio? Fai il giro del veicolo e scatta delle foto.",
10+
"button": "Scatta foto"
11+
}
12+
}

0 commit comments

Comments
 (0)