Parcourir la source

Added locales folder to project root. There, files index.js, es.json, en.json wereadded to enable identification of device language settings to display app text accordingly.

ErnestoOrtiz2 il y a 2 ans
Parent
révision
3dd7663ba5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      App.js

+ 1
- 1
App.js Voir le fichier

@@ -7,7 +7,7 @@ import { t } from './locales/index.js'
7 7
 export default function App() {
8 8
   return (
9 9
     <View style={styles.container}>
10
-      <Text>{t{"Hello"}}</Text>
10
+      <Text>{t("Hola")}</Text>
11 11
       <StatusBar style="auto" />
12 12
     </View>
13 13
   );