Skip to content

Commit

Permalink
Merge pull request #2 from svyatoynick/main
Browse files Browse the repository at this point in the history
Updated localisations. Fixed "required" word.
  • Loading branch information
ivanvorobei authored Feb 16, 2022
2 parents c7e5a9c + cc72d69 commit 78b8d52
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 71 deletions.
2 changes: 1 addition & 1 deletion Sources/SPProfiling/Data/Texts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ enum Texts {

static var canceled: String { NSLocalizedString("error auth canceled", bundle: .module, comment: "") }
static var cant_present: String { NSLocalizedString("error auth cant present", bundle: .module, comment: "") }
static var cant_prepare_requerid_data: String { NSLocalizedString("error auth cant prepare requerid data", bundle: .module, comment: "") }
static var cant_prepare_required_data: String { NSLocalizedString("error auth cant prepare required data", bundle: .module, comment: "") }
}

enum Profile {
Expand Down
6 changes: 3 additions & 3 deletions Sources/SPProfiling/Models/Errors/AuthError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ public enum AuthError: LocalizedError {

case canceled
case cantPresent
case cantPrepareRequeridData
case cantPrepareRequiredData

public var errorDescription: String? {
switch self {
case .canceled: return Texts.Error.Auth.canceled
case .cantPresent: return Texts.Error.Auth.cant_present
case .cantPrepareRequeridData: return Texts.Error.Auth.cant_prepare_requerid_data
case .cantPrepareRequiredData: return Texts.Error.Auth.cant_prepare_required_data
}
}

static func convert(_ error: SPFirebaseAuthError) -> AuthError {
switch error {
case .canceled: return .canceled
case .cantPresent: return .cantPresent
case .faild: return .cantPrepareRequeridData
case .faild: return .cantPrepareRequiredData
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,56 @@
/* No comment provided by engineer. */
"auth continue anonymously" = "Continue Anonymously";

/* No comment provided by engineer. */
"auth description" = "Log in to access the benefits.";

/* No comment provided by engineer. */
"auth footer description" = "Profile can be abandoned and deleted at any time. You can change your name and avatar after logging in.";

/* No comment provided by engineer. */
"auth sign in" = "Sign In";

/* No comment provided by engineer. */
"cancel" = "Cancel";

/* No comment provided by engineer. */
"error not enough permissions" = "Not Enough Permissions";
"error auth canceled" = "Authentication canceled";

/* No comment provided by engineer. */
"error auth cant prepare required data" = "Failed to prepare the necessary data";

/* No comment provided by engineer. */
"error auth cant present" = "Failed to show authentication screen";

/* No comment provided by engineer. */
"error not enough permissions" = "Not enough permissions";

/* No comment provided by engineer. */
"error not found" = "Not Found";

/* No comment provided by engineer. */
"error not reachable" = "Not Reachable";

/* No comment provided by engineer. */
"error profile big avatar size" = "The size of the avatar is too large.";

/* No comment provided by engineer. */
"error profile big avatar width" = "The width of the avatar is too wide.";

/* No comment provided by engineer. */
"error profile empty name" = "The profile name cannot be empty.";

/* No comment provided by engineer. */
"error profile name long" = "Profile name is too long.";

/* No comment provided by engineer. */
"error profile name short" = "Profile name is too short.";

/* No comment provided by engineer. */
"error unknown" = "Unknown Error";

/* No comment provided by engineer. */
"profile actions delete confirm description" = "The profile will be permanently deleted with all data. This action cannot be undone";
"profile actions delete confirm description" = "The profile will be permanently deleted with all data. This action cannot be undone.";

/* No comment provided by engineer. */
"profile actions delete confirm title" = "Delete Profile?";
Expand Down Expand Up @@ -46,18 +82,6 @@
/* No comment provided by engineer. */
"profile actions sign out title" = "Sign Out";

/* No comment provided by engineer. */
"profile auth continue anonymously" = "Continue Anonymously";

/* No comment provided by engineer. */
"profile auth description" = "Log in to access the benefits.";

/* No comment provided by engineer. */
"profile auth footer description" = "Profile can be abandoned and deleted at any time. You can change your name and avatar after logging in.";

/* No comment provided by engineer. */
"profile auth title" = "Profile";

/* No comment provided by engineer. */
"profile avatar actions description" = "Select where you want to install the photo from.";

Expand All @@ -70,6 +94,9 @@
/* No comment provided by engineer. */
"profile avatar open photo library" = "Photo Library";

/* No comment provided by engineer. */
"profile devices added date" = "Added on %@";

/* No comment provided by engineer. */
"profile devices footer" = "You can disable access to a profile by deleting it.";

Expand All @@ -80,22 +107,7 @@
"profile devices title" = "Devices";

/* No comment provided by engineer. */
"profile error big avatar size" = "The size of the avatar is too large.";

/* No comment provided by engineer. */
"profile error big avatar width" = "The width of the avatar is too wide.";

/* No comment provided by engineer. */
"profile error empty name" = "The profile name cannot be empty.";

/* No comment provided by engineer. */
"profile error name long" = "Profile name is too long.";

/* No comment provided by engineer. */
"profile error name short" = "Profile name is too short.";

/* No comment provided by engineer. */
"profile name didint set" = "Profile name is not set.";
"profile placeholder name" = "No Name";

/* No comment provided by engineer. */
"profile rename alert description" = "The name will be visible for everybody.";
Expand All @@ -109,5 +121,3 @@
/* No comment provided by engineer. */
"save" = "Save";

/* No comment provided by engineer. */
"profile devices added date" = "Added on %@";
Original file line number Diff line number Diff line change
@@ -1,104 +1,116 @@
/* No comment provided by engineer. */
"auth continue anonymously" = "Продолжить анонимно";

/* No comment provided by engineer. */
"auth description" = "Войдите, чтобы получить доступ к преимуществам.";

/* No comment provided by engineer. */
"auth footer description" = "Профиль можно покинуть или удалить в любое время.";

/* No comment provided by engineer. */
"auth sign in" = "Войти";

/* No comment provided by engineer. */
"cancel" = "Отменить";

/* No comment provided by engineer. */
"error not enough permissions" = "Недостаточно прав";
"error auth canceled" = "Аутентификация отменена";

/* No comment provided by engineer. */
"error not found" = "Не найдено";
"error auth cant prepare required data" = "Не удалось подготовить необходимые данные";

/* No comment provided by engineer. */
"error not reachable" = "Недоступно";
"error auth cant present" = "Не удалось показать экран аутентификации";

/* No comment provided by engineer. */
"error unknown" = "Неизвестная ошибка";
"error not enough permissions" = "Недостаточно прав";

/* No comment provided by engineer. */
"profile actions delete confirm description" = "Профиль будет удалён вместе со всеми данными. Это действие нельзя отменить.";
"error not found" = "Не найдено";

/* No comment provided by engineer. */
"profile actions delete confirm title" = "Удалить профиль?";
"error not reachable" = "Недоступно";

/* No comment provided by engineer. */
"profile actions delete description" = "Профиль будет удалён вместе со всеми данными.";
"error profile big avatar size" = "Размер аватара слишком большой.";

/* No comment provided by engineer. */
"profile actions delete title" = "Удалить профиль";
"error profile big avatar width" = "Аватар слишком широкий.";

/* No comment provided by engineer. */
"profile actions email copied" = "Скопировано";
"error profile empty name" = "Имя профиля не может быть пустым.";

/* No comment provided by engineer. */
"profile actions rename description" = "Имя будет видно всем.";
"error profile name long" = "Имя профиля слишком длинное.";

/* No comment provided by engineer. */
"profile actions rename title" = "Введите новое имя";
"error profile name short" = "Имя слишком короткое.";

/* No comment provided by engineer. */
"profile actions sign out confirm description" = "Все данные будут удалены с этого устройства. Их можно будет восстановить повторно войдя в профиль.";
"error unknown" = "Неизвестная ошибка";

/* No comment provided by engineer. */
"profile actions sign out confirm title" = "Выйти из профиля?";
"profile actions delete confirm description" = "Профиль будет безвозвратно удален со всеми данными. Это действие нельзя отменить.";

/* No comment provided by engineer. */
"profile actions sign out description" = "Когда вы выйдете из профиля, все данные на устройстве будут удалены.";
"profile actions delete confirm title" = "Удалить профиль?";

/* No comment provided by engineer. */
"profile actions sign out title" = "Выйти";
"profile actions delete description" = "Профиль будет удален вместе со всеми данными.";

/* No comment provided by engineer. */
"profile auth continue anonymously" = "Продолжить анонимно";
"profile actions delete title" = "Удалить профиль";

/* No comment provided by engineer. */
"profile auth description" = "Войдите для использования преимуществ.";
"profile actions email copied" = "Почта скопирована";

/* No comment provided by engineer. */
"profile auth footer description" = "Вы можете удалить профиль в любой момент. Смена имени и аватара доступна после входа.";
"profile actions rename description" = "Имя будет видно всем.";

/* No comment provided by engineer. */
"profile auth title" = "Профиль";
"profile actions rename title" = "Введите новое имя";

/* No comment provided by engineer. */
"profile avatar actions description" = "Выберите, откуда хотите использовать фото.";
"profile actions sign out confirm description" = "Все данные будут удалены с этого устройства. Вы сможете восстановить их, войдя в свою профиль заново.";

/* No comment provided by engineer. */
"profile avatar delete action title" = "Удалить аватар";
"profile actions sign out confirm title" = "Выйти из профиля?";

/* No comment provided by engineer. */
"profile avatar open camera" = "Камера";
"profile actions sign out description" = "При выходе из профиля все данные будут удалены с устройства.";

/* No comment provided by engineer. */
"profile avatar open photo library" = "Фотопленка";
"profile actions sign out title" = "Выйти";

/* No comment provided by engineer. */
"profile devices footer" = "Вы можете забрать доступ к профилю, удалив устройство.";
"profile avatar actions description" = "Выберите место, откуда хотите установить фотографию.";

/* No comment provided by engineer. */
"profile devices header" = "Подключенные устройства";
"profile avatar delete action title" = "Удалить";

/* No comment provided by engineer. */
"profile devices title" = "Устройства";
"profile avatar open camera" = "Камера";

/* No comment provided by engineer. */
"profile error big avatar size" = "Размер аватара слишком большой.";
"profile avatar open photo library" = "Библиотека фото";

/* No comment provided by engineer. */
"profile error big avatar width" = "Аватар слишком широкий.";
"profile devices added date" = "Добавлено %@";

/* No comment provided by engineer. */
"profile error empty name" = "Имя не может быть пустым.";
"profile devices footer" = "Вы можете запретить доступ к профилю, удалив его.";

/* No comment provided by engineer. */
"profile error name long" = "Имя слишком длинное.";
"profile devices header" = "Подключенные устройства";

/* No comment provided by engineer. */
"profile error name short" = "Имя слишком короткое.";
"profile devices title" = "Устройства";

/* No comment provided by engineer. */
"profile name didint set" = "Имя не установлено.";
"profile placeholder name" = "Нет имени";

/* No comment provided by engineer. */
"profile rename alert description" = "Имя будет видно всем.";
"profile rename alert description" = "Имя профиля будет видно всем.";

/* No comment provided by engineer. */
"profile rename alert placeholder" = "Имя Фамилия";
Expand All @@ -109,5 +121,3 @@
/* No comment provided by engineer. */
"save" = "Сохранить";

/* No comment provided by engineer. */
"profile devices added date" = "Added on %@";

0 comments on commit 78b8d52

Please sign in to comment.