@@ -19,7 +19,7 @@ struct MeView: View {
1919 @FetchAll ( Reminder . all, animation: . default) var allReminders
2020 @ObservationIgnored
2121 @FetchAll ( Achievement . all, animation: . default) var allAchievements
22- @AppStorage ( " userName " ) private var userName : String = " Your Name "
22+ @AppStorage ( " userName " ) private var userName : String = String ( localized : " Your Name " )
2323 @AppStorage ( " userAvatar " ) private var userAvatar : String = " 😀 "
2424 @State private var showPurchaseSheet = false
2525 @State private var showEmojiPicker = false
@@ -58,13 +58,13 @@ struct MeView: View {
5858 }
5959 // Stats Section
6060 HStack ( spacing: AppSpacing . small) {
61- statView ( title: " Habits " , value: " \( allHabits. filter { !$0. isArchived } . count) / \( allHabits. count) " )
61+ statView ( title: String ( localized : " Habits " ) , value: " \( allHabits. filter { !$0. isArchived } . count) / \( allHabits. count) " )
6262 Divider ( )
63- statView ( title: " Check-ins " , value: " \( allCheckIns. count) " )
63+ statView ( title: String ( localized : " Check-ins " ) , value: " \( allCheckIns. count) " )
6464 Divider ( )
65- statView ( title: " Reminders " , value: " \( allReminders. count) " )
65+ statView ( title: String ( localized : " Reminders " ) , value: " \( allReminders. count) " )
6666 Divider ( )
67- statView ( title: " Achievements " , value: " \( allAchievements. filter { $0. isUnlocked } . count) / \( allAchievements. count) " )
67+ statView ( title: String ( localized : " Achievements " ) , value: " \( allAchievements. filter { $0. isUnlocked } . count) / \( allAchievements. count) " )
6868 }
6969 . padding ( . top, AppSpacing . small)
7070 if !purchaseManager. isPremiumUserPurchased {
@@ -160,24 +160,24 @@ struct MeView: View {
160160 . appSectionHeader ( theme: themeManager. current)
161161 LazyVGrid ( columns: Array ( repeating: GridItem ( . flexible( ) ) , count: 3 ) , spacing: AppSpacing . large) {
162162 NavigationLink ( destination: MoreAppsView ( ) ) {
163- moreItem ( icon: " storefront " , title: " More Apps " )
163+ moreItem ( icon: " storefront " , title: String ( localized : " More Apps " ) )
164164 }
165165 if let url = URL ( string: " https://itunes.apple.com/app/id \( Constants . AppID. longevityMasterID) ?action=write-review " ) {
166166 Button {
167167 openURL ( url)
168168 } label: {
169- moreItem ( icon: " star.fill " , title: " Rate Us " )
169+ moreItem ( icon: " star.fill " , title: String ( localized : " Rate Us " ) )
170170 }
171171 }
172172 Button {
173173 let email = SupportEmail ( )
174174 email. send ( openURL: openURL)
175175 } label: {
176- moreItem ( icon: " envelope.fill " , title: " Feedback " )
176+ moreItem ( icon: " envelope.fill " , title: String ( localized : " Feedback " ) )
177177 }
178178 if let appURL = URL ( string: " https://itunes.apple.com/app/id \( Constants . AppID. longevityMasterID) " ) {
179179 ShareLink ( item: appURL) {
180- moreItem ( icon: " square.and.arrow.up " , title: " Share App " )
180+ moreItem ( icon: " square.and.arrow.up " , title: String ( localized : " Share App " ) )
181181 }
182182 }
183183 }
@@ -191,19 +191,19 @@ struct MeView: View {
191191 . appSectionHeader ( theme: themeManager. current)
192192 LazyVGrid ( columns: Array ( repeating: GridItem ( . flexible( ) ) , count: 3 ) , spacing: AppSpacing . large) {
193193 NavigationLink ( destination: SettingView ( ) ) {
194- featureItem ( icon: " gear " , title: " Settings " )
194+ featureItem ( icon: " gear " , title: String ( localized : " Settings " ) )
195195 }
196196 NavigationLink ( destination: CheckInHistoryView ( ) ) {
197- featureItem ( icon: " clock " , title: " Checkin History " )
197+ featureItem ( icon: " clock " , title: String ( localized : " Checkin History " ) )
198198 }
199199 NavigationLink ( destination: RemindersView ( ) ) {
200- featureItem ( icon: " bell " , title: " Reminders " )
200+ featureItem ( icon: " bell " , title: String ( localized : " Reminders " ) )
201201 }
202202 NavigationLink ( destination: AchievementsView ( ) ) {
203- featureItem ( icon: " trophy " , title: " Achievements " )
203+ featureItem ( icon: " trophy " , title: String ( localized : " Achievements " ) )
204204 }
205205 NavigationLink ( destination: ThemeColorView ( ) ) {
206- featureItem ( icon: " paintbrush.fill " , title: " Theme Color " )
206+ featureItem ( icon: " paintbrush.fill " , title: String ( localized : " Theme Color " ) )
207207 }
208208 }
209209 }
0 commit comments