Procházet zdrojové kódy

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 před 2 roky
rodič
revize
3dd7663ba5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      App.js

+ 1
- 1
App.js Zobrazit soubor

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