Skip to content

Commit 5dff0a0

Browse files
committed
add: aggiunte traduzioni per il tutorial
1 parent cb9d0e6 commit 5dff0a0

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
},
5656
"tutorial": {
5757
"restartTitle": "Tutorial",
58-
"restartMessage": "The tutorial has been restarted! Go back to the main screen to begin."
58+
"restartMessage": "The tutorial has been restarted! Go back to the main screen to begin.",
59+
"restartError": "Error",
60+
"restartErrorMessage": "Unable to restart the tutorial. Please try again later."
5961
}
6062
},
6163
"home": {

src/locales/it.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
},
5656
"tutorial": {
5757
"restartTitle": "Tutorial",
58-
"restartMessage": "Il tutorial è stato riavviato! Torna alla schermata principale per iniziare."
58+
"restartMessage": "Il tutorial è stato riavviato! Torna alla schermata principale per iniziare.",
59+
"restartError": "Errore",
60+
"restartErrorMessage": "Impossibile riavviare il tutorial. Riprova più tardi."
5961
}
6062
},
6163
"home": {

src/navigation/screens/Settings.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export default function Settings() {
5757
} catch (error) {
5858
console.error('[Settings] Error restarting tutorial:', error);
5959
Alert.alert(
60-
'Errore',
61-
'Impossibile riavviare il tutorial. Riprova più tardi.',
62-
[{ text: 'OK' }]
60+
t('settings.tutorial.restartError'),
61+
t('settings.tutorial.restartErrorMessage'),
62+
[{ text: t('common.buttons.ok') }]
6363
);
6464
}
6565
};
@@ -184,7 +184,7 @@ export default function Settings() {
184184
>
185185
<View style={styles.menuItemContent}>
186186
<Ionicons name="book-outline" size={24} color="#000000" />
187-
<Text style={styles.menuItemText}>{t('settings.menu.tutorial') || 'Rivedi Tutorial'}</Text>
187+
<Text style={styles.menuItemText}>{t('settings.menu.tutorial')}</Text>
188188
</View>
189189
<Ionicons name="chevron-forward" size={20} color="#666666" />
190190
</TouchableOpacity>

0 commit comments

Comments
 (0)