瀏覽代碼

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 3 年之前
父節點
當前提交
3dd7663ba5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      App.js

+ 1
- 1
App.js 查看文件

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