Selaa lähdekoodia

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 2 vuotta sitten
vanhempi
commit
3dd7663ba5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      App.js

+ 1
- 1
App.js Näytä tiedosto

@@ -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
   );