Преглед на файлове

Quite la importacion del modulo de traduccion

ErnestoOrtiz2 преди 2 години
родител
ревизия
9727de04c6
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1
    2
      App.js
  2. 2
    1
      locales/en.json

+ 1
- 2
App.js Целия файл

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

+ 2
- 1
locales/en.json Целия файл

1
 {
1
 {
2
-    "Hola": "Hello"
2
+    "Hola": "Hello",
3
+    "Hello": "Hola"
3
 }
4
 }