|
@@ -1,16 +1,17 @@
|
|
|
import { View, Text } from '@tarojs/components'
|
|
import { View, Text } from '@tarojs/components'
|
|
|
import { useLoad } from '@tarojs/taro'
|
|
import { useLoad } from '@tarojs/taro'
|
|
|
|
|
+import { useTranslation } from 'react-i18next'
|
|
|
import './my.scss'
|
|
import './my.scss'
|
|
|
|
|
|
|
|
export default function Index() {
|
|
export default function Index() {
|
|
|
-
|
|
|
|
|
|
|
+ const { t } = useTranslation()
|
|
|
useLoad(() => {
|
|
useLoad(() => {
|
|
|
console.log('Page loaded.')
|
|
console.log('Page loaded.')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<View className='index'>
|
|
<View className='index'>
|
|
|
- <Text>My!</Text>
|
|
|
|
|
|
|
+ <Text>{t('languageList.zh')}</Text>
|
|
|
<Text>abc</Text>
|
|
<Text>abc</Text>
|
|
|
<Text>123</Text>
|
|
<Text>123</Text>
|
|
|
</View>
|
|
</View>
|