featL add localization for various UI strings and error messages

This commit is contained in:
2026-03-14 17:46:00 +07:00
parent 758f5ec05f
commit 8a15572fb9
15 changed files with 1079 additions and 69 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class SettingsViewModel: ObservableObject {
func changePassword(current: String, new: String) async -> Bool {
#if DEBUG
if PreviewData.isPreviewMode {
successMessage = "Пароль успешно изменён"
successMessage = String(localized: "password_changed_success")
return true
}
#endif
@@ -53,7 +53,7 @@ class SettingsViewModel: ObservableObject {
defer { isLoading = false }
do {
_ = try await service.changePassword(current: current, new: new)
successMessage = "Пароль успешно изменён"
successMessage = String(localized: "password_changed_success")
return true
} catch {
self.error = error.localizedDescription