Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Animeboynz committed Sep 18, 2024
1 parent ef71769 commit c2620bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ internal class PermissionStep : OnboardingStep {
)

PermissionItem(
title = "Send crash logs",//i18n later
subtitle = "Send anonymised crash logs to the developers",
title = stringResource(MR.strings.onboarding_permission_crashlytics),
subtitle = stringResource(MR.strings.onboarding_permission_crashlytics_description),
granted = allowCrashLogs,
onButtonClick = {
// Toggle the granted state
Expand All @@ -128,8 +128,8 @@ internal class PermissionStep : OnboardingStep {
)

PermissionItem(
title = "Allow analytics",//i18n later
subtitle = "Send anonymized usage data to improve app features.",
title = stringResource(MR.strings.onboarding_permission_analytics),
subtitle = stringResource(MR.strings.onboarding_permission_analytics_description),
granted = allowAnalytics,
onButtonClick = {
// Toggle the granted state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ object SettingsSecurityScreen : SearchableSettings {
),
Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.crashlytics(),
title = "Allow sharing crash logs with devs",
title = stringResource(MR.strings.share_crash_logs),
),
Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.analytics(),
title = "Allow sharing analytics data",
title = stringResource(MR.strings.share_analytics),
),
Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.hideNotificationContent(),
Expand Down
6 changes: 6 additions & 0 deletions i18n/src/commonMain/moko-resources/base/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@
<string name="onboarding_permission_notifications_description">Get notified for library updates and more.</string>
<string name="onboarding_permission_ignore_battery_opts">Background battery usage</string>
<string name="onboarding_permission_ignore_battery_opts_description">Avoid interruptions to long-running library updates, downloads, and backup restores.</string>
<string name="onboarding_permission_crashlytics">Send crash logs</string>
<string name="onboarding_permission_crashlytics_description">Send anonymised crash logs to the developers.</string>
<string name="onboarding_permission_analytics">Allow analytics</string>
<string name="onboarding_permission_analytics_description">Send anonymized usage data to improve app features.</string>
<string name="onboarding_permission_action_grant">Grant</string>
<string name="onboarding_guides_new_user">New to %s? We recommend checking out the getting started guide.</string>
<string name="onboarding_guides_returning_user">Reinstalling %s?</string>
Expand Down Expand Up @@ -246,6 +250,8 @@
<string name="lock_when_idle">Lock when idle</string>
<string name="lock_always">Always</string>
<string name="lock_never">Never</string>
<string name="share_crash_logs">Allow sharing crash logs with devs</string>
<string name="share_analytics">Allow sharing analytics data</string>
<string name="hide_notification_content">Hide notification content</string>
<string name="secure_screen">Secure screen</string>
<string name="secure_screen_summary">Secure screen hides app contents when switching apps and block screenshots</string>
Expand Down

0 comments on commit c2620bf

Please sign in to comment.