leon 1 rok temu
rodzic
commit
d152cbb028

+ 8 - 0
src/context/locales/en.js

@@ -178,6 +178,10 @@ export default {
             done: 'Done',
             next_day: 'Next day ',
         },
+        pay:{
+            paying_title:'Your payment is processing...',
+            paying_desc:'Please wait for transaction completion.',
+        },
 
         check_access: {
             non_access: {
@@ -701,6 +705,10 @@ export default {
                 eat_average:'Avg. Eating',
                 wake_average:'Avg. Activity',
                 back:'Back'
+            },
+            log_timing:{
+                log_timings:'Log Multiple Times',
+                pick_time:'Pick Time'
             }
         },
         food: {

+ 9 - 0
src/context/locales/zh.js

@@ -177,6 +177,11 @@ export default {
             next_day: '次日 ',
         },
 
+        pay:{
+            paying_title:'您的付款正在处理中...',
+            paying_desc:'请等待交易完成。',
+        },
+
         check_access: {
             non_access: {
                 title: '连续纪录已更新',
@@ -699,6 +704,10 @@ export default {
                 wake_average:'平均活动',
                 back:'返回'
             },
+            log_timing:{
+                log_timings:'记录多个时间',
+                pick_time:'选择时间'
+            }
         },
         food: {
             action_sheet: {

+ 11 - 11
src/features/trackTimeDuration/components/IndexConsoleMuti.tsx

@@ -49,7 +49,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
                 if (!sleepStart) {
                     Taro.showToast({
                         icon: 'none',
-                        title: '请选择开始睡眠时间'
+                        title: '请选择就寝时间'
                     })
                     return
                 }
@@ -105,14 +105,14 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
                 if (!sleepStart) {
                     Taro.showToast({
                         icon: 'none',
-                        title: '请选择开始睡眠时间'
+                        title: '请选择就寝时间'
                     })
                     return
                 }
                 if (!sleepEnd) {
                     Taro.showToast({
                         icon: 'none',
-                        title: '请选择结束睡眠时间'
+                        title: '请选择起床时间'
                     })
                     return
                 }
@@ -155,7 +155,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
                     if (!sleepStart && props.scenario == 'FAST_SLEEP') {
                         Taro.showToast({
                             icon: 'none',
-                            title: '请选择开始睡眠时间'
+                            title: '请选择就寝时间'
                         })
                         return
                     }
@@ -194,7 +194,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
                     if (!sleepStart) {
                         Taro.showToast({
                             icon: 'none',
-                            title: '请选择开始睡眠时间'
+                            title: '请选择就寝时间'
                         })
                         return
                     }
@@ -214,7 +214,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
                 if (!sleepEnd && props.scenario == 'FAST_SLEEP') {
                     Taro.showToast({
                         icon: 'none',
-                        title: '请选择结束睡眠时间'
+                        title: '请选择起床时间'
                     })
                     return
                 }
@@ -304,7 +304,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
         return <View className="new_item_cell" onClick={() => tapItem(0)}>
             <Text className="new_item_cell_title">{t('feature.track_time_duration.common.start_fast')}</Text>
             <View style={{ flex: 1 }} />
-            <Text className="new_item_cell_desc">{fastStart ? TimeFormatter.dateTimeFormate(fastStart.time, true) : 'Pick Time'}</Text>
+            <Text className="new_item_cell_desc">{fastStart ? TimeFormatter.dateTimeFormate(fastStart.time, true) : t('feature.track_time_duration.log_timing.pick_time')}</Text>
             <Image className="cell_arrow" src={require('@/assets/images/arrow3.png')} />
         </View>
     }
@@ -313,7 +313,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
         return <View className="new_item_cell" onClick={() => tapItem(1)}>
             <Text className="new_item_cell_title">{t('feature.track_time_duration.common.start_sleep')}</Text>
             <View style={{ flex: 1 }} />
-            <Text className="new_item_cell_desc">{sleepStart ? TimeFormatter.dateTimeFormate(sleepStart.time, true) : 'Pick Time'}</Text>
+            <Text className="new_item_cell_desc">{sleepStart ? TimeFormatter.dateTimeFormate(sleepStart.time, true) : t('feature.track_time_duration.log_timing.pick_time')}</Text>
             <Image className="cell_arrow" src={require('@/assets/images/arrow3.png')} />
         </View>
     }
@@ -322,7 +322,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
         return <View className="new_item_cell" onClick={() => tapItem(2)}>
             <Text className="new_item_cell_title">{t('feature.track_time_duration.common.end_sleep')}</Text>
             <View style={{ flex: 1 }} />
-            <Text className="new_item_cell_desc">{sleepEnd ? TimeFormatter.dateTimeFormate(sleepEnd.time, true) : 'Pick Time'}</Text>
+            <Text className="new_item_cell_desc">{sleepEnd ? TimeFormatter.dateTimeFormate(sleepEnd.time, true) : t('feature.track_time_duration.log_timing.pick_time')}</Text>
             <Image className="cell_arrow" src={require('@/assets/images/arrow3.png')} />
         </View>
     }
@@ -331,7 +331,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
         return <View className="new_item_cell" onClick={() => tapItem(3)}>
             <Text className="new_item_cell_title">{t('feature.track_time_duration.common.end_fast')}</Text>
             <View style={{ flex: 1 }} />
-            <Text className="new_item_cell_desc">{fastEnd ? TimeFormatter.dateTimeFormate(fastEnd.time, true) : 'Pick Time'}</Text>
+            <Text className="new_item_cell_desc">{fastEnd ? TimeFormatter.dateTimeFormate(fastEnd.time, true) : t('feature.track_time_duration.log_timing.pick_time')}</Text>
             <Image className="cell_arrow" src={require('@/assets/images/arrow3.png')} />
         </View>
     }
@@ -439,7 +439,7 @@ export default function IndexConsoleMuti(props: { status: string, event: string,
             marginTop: rpxToPx(36),
             marginBottom: rpxToPx(48)
         }}>
-            <Text style={{ color: '#fff', fontWeight: 'bold', fontSize: rpxToPx(48) }}>Log your timings</Text>
+            <Text style={{ color: '#fff', fontWeight: 'bold', fontSize: rpxToPx(48) }}>{t('feature.track_time_duration.log_timing.log_timings')}</Text>
         </View>
 
         <View style={{