@@ -95,6 +95,7 @@ export const AISummary: FC<{
9595 const upgradeTitle = t ( "ai.summary_upgrade_required_title" )
9696 const upgradeDescription = t ( "ai.summary_upgrade_required_description" )
9797 const upgradeCTA = t ( "ai.summary_upgrade_view_plans" )
98+ const summaryTitle = t ( "entry_actions.toggle_ai_summary" )
9899 const handleUpgradePress = ( ) => {
99100 void Haptics . selectionAsync ( )
100101 void navigateToPlanScreen ( )
@@ -163,12 +164,12 @@ export const AISummary: FC<{
163164 < MaskedView
164165 maskElement = {
165166 < View className = "bg-transparent" >
166- < Text className = "text-[15px] font-semibold" > AI Summary </ Text >
167+ < Text className = "text-[15px] font-semibold" > { summaryTitle } </ Text >
167168 </ View >
168169 }
169170 >
170171 < LinearGradient colors = { [ "#9333ea" , "#2563eb" ] } start = { [ 0 , 0 ] } end = { [ 1 , 0 ] } >
171- < Text className = "text-[15px] font-semibold text-transparent" > AI Summary </ Text >
172+ < Text className = "text-[15px] font-semibold text-transparent" > { summaryTitle } </ Text >
172173 </ LinearGradient >
173174 </ MaskedView >
174175 </ View >
@@ -177,7 +178,7 @@ export const AISummary: FC<{
177178 onPress = { ( ) => {
178179 Clipboard . setString ( summaryTextForSheet )
179180 Haptics . notificationAsync ( Haptics . NotificationFeedbackType . Success )
180- toast . success ( "Copied to clipboard" )
181+ toast . success ( t ( "app.copied_to_clipboard" , { ns : "common" } ) )
181182 } }
182183 onLongPress = { ( ) => setSheetOpen ( true ) }
183184 className = "rounded-full bg-quaternary-system-fill p-1.5 active:opacity-70"
@@ -230,6 +231,7 @@ const ErrorContent = ({
230231 message : string
231232 onRetry ?: ( ) => void
232233} ) => {
234+ const { t } = useTranslation ( )
233235 return (
234236 < View className = "mt-3" >
235237 < View className = "flex-row items-center gap-2" >
@@ -238,14 +240,18 @@ const ErrorContent = ({
238240 { onRetry &&
239241 ( forMeasurement ? (
240242 < View className = "mt-3 self-start rounded-full bg-quaternary-system-fill px-4 py-2" >
241- < Text className = "text-[14px] font-medium text-label" > Retry</ Text >
243+ < Text className = "text-[14px] font-medium text-label" >
244+ { t ( "retry" , { ns : "common" } ) }
245+ </ Text >
242246 </ View >
243247 ) : (
244248 < Pressable
245249 onPress = { onRetry }
246250 className = "mt-3 self-start rounded-full bg-quaternary-system-fill px-4 py-2"
247251 >
248- < Text className = "text-[14px] font-medium text-label" > Retry</ Text >
252+ < Text className = "text-[14px] font-medium text-label" >
253+ { t ( "retry" , { ns : "common" } ) }
254+ </ Text >
249255 </ Pressable >
250256 ) ) }
251257 </ View >
@@ -312,6 +318,7 @@ const SelectableTextSheet: FC<{
312318 onClose : ( ) => void
313319 text : string
314320} > = ( { visible, onClose, text } ) => {
321+ const { t } = useTranslation ( )
315322 const insets = useSafeAreaInsets ( )
316323 const textColor = useColor ( "label" )
317324 const handleCopyAll = ( ) => {
@@ -334,7 +341,9 @@ const SelectableTextSheet: FC<{
334341 >
335342 < CopyCuteReIcon width = { 18 } height = { 18 } color = { textColor } />
336343 </ TouchableOpacity >
337- < Text className = "text-lg font-semibold text-label" > AI Summary</ Text >
344+ < Text className = "text-lg font-semibold text-label" >
345+ { t ( "entry_actions.toggle_ai_summary" ) }
346+ </ Text >
338347 < TouchableOpacity
339348 onPress = { onClose }
340349 className = "rounded-full bg-zinc-100 p-2 active:opacity-80 dark:bg-zinc-800"
0 commit comments