165 lines
3.6 KiB
Rust
165 lines
3.6 KiB
Rust
use serde::Deserialize;
|
|
use strum::EnumCount;
|
|
|
|
#[repr(i64)]
|
|
#[derive(Debug, Clone, Copy, EnumCount, Deserialize)]
|
|
pub enum Sentence {
|
|
MainTitle = 0,
|
|
CreateNewRecipe,
|
|
PrivateRecipes,
|
|
UntitledRecipe,
|
|
|
|
Name,
|
|
EmailAddress,
|
|
Password,
|
|
|
|
SignOut,
|
|
Save,
|
|
NotLoggedIn,
|
|
|
|
ActionNotAuthorized,
|
|
|
|
DatabaseError,
|
|
TemplateError,
|
|
|
|
// Search
|
|
SearchPlaceholder,
|
|
|
|
// Sign in page.
|
|
SignInMenu,
|
|
SignInTitle,
|
|
SignInButton,
|
|
SignInSuccess,
|
|
WrongEmailOrPassword,
|
|
|
|
// Sign up page.
|
|
SignUpMenu,
|
|
SignUpTitle,
|
|
SignUpButton,
|
|
SignUpEmailSent,
|
|
SignUpEmailTitle,
|
|
SignUpFollowEmailLink,
|
|
SignUpEmailValidationSuccess,
|
|
SignUpValidationExpired,
|
|
SignUpValidationErrorTryAgain,
|
|
SignUpClosed,
|
|
ChooseAPassword,
|
|
ReEnterPassword,
|
|
|
|
AccountMustBeValidatedFirst,
|
|
InvalidEmail,
|
|
PasswordDontMatch,
|
|
InvalidPassword,
|
|
EmailAlreadyTaken,
|
|
UnableToSendEmail,
|
|
|
|
// Validation.
|
|
ValidationSuccessful,
|
|
ValidationExpired,
|
|
ValidationErrorTryToSignUpAgain,
|
|
ValidationError,
|
|
ValidationUserAlreadyExists,
|
|
|
|
// Reset password page.
|
|
LostPassword,
|
|
AskResetChooseNewPassword,
|
|
AskResetButton,
|
|
AskResetAlreadyLoggedInError,
|
|
AskResetEmailAlreadyResetError,
|
|
AskResetEmailTitle,
|
|
AskResetFollowEmailLink,
|
|
AskResetEmailSent,
|
|
AskResetTokenMissing,
|
|
AskResetTokenExpired,
|
|
AskResetSubmit,
|
|
PasswordReset,
|
|
EmailUnknown,
|
|
UnableToSendResetEmail,
|
|
|
|
// Profile
|
|
ProfileTitle,
|
|
ProfileEmail,
|
|
ProfileDefaultServings,
|
|
ProfileFirstDayOfWeek,
|
|
ProfileNewPassword,
|
|
ProfileFollowEmailTitle,
|
|
ProfileFollowEmailLink,
|
|
ProfileEmailSent,
|
|
ProfileSaved,
|
|
|
|
// Recipe.
|
|
RecipeNotAllowedToEdit,
|
|
RecipeNotAllowedToView,
|
|
RecipeNotFound,
|
|
RecipeTitle,
|
|
RecipeDescription,
|
|
RecipeServings,
|
|
RecipeEstimatedTime,
|
|
RecipeDifficulty,
|
|
RecipeDifficultyEasy,
|
|
RecipeDifficultyMedium,
|
|
RecipeDifficultyHard,
|
|
RecipeTags,
|
|
RecipeLanguage,
|
|
RecipeIsPublic,
|
|
RecipeDelete,
|
|
RecipeAddAGroup,
|
|
RecipeRemoveGroup,
|
|
RecipeGroupName,
|
|
RecipeGroupComment,
|
|
RecipeAddAStep,
|
|
RecipeRemoveStep,
|
|
RecipeStepAction,
|
|
RecipeAddAnIngredient,
|
|
RecipeRemoveIngredient,
|
|
RecipeIngredientName,
|
|
RecipeIngredientQuantity,
|
|
RecipeIngredientUnit,
|
|
RecipeIngredientComment,
|
|
RecipeDeleteConfirmation,
|
|
RecipeSuccessfullyDeleted,
|
|
RecipeGroupDeleteConfirmation,
|
|
RecipeStepDeleteConfirmation,
|
|
RecipeIngredientDeleteConfirmation,
|
|
|
|
// View Recipe.
|
|
RecipeOneServing,
|
|
RecipeSomeServings,
|
|
RecipeEstimatedTimeMinAbbreviation,
|
|
|
|
// Calendar.
|
|
CalendarMonday,
|
|
CalendarTuesday,
|
|
CalendarWednesday,
|
|
CalendarThursday,
|
|
CalendarFriday,
|
|
CalendarSaturday,
|
|
CalendarSunday,
|
|
CalendarMondayAbbreviation,
|
|
CalendarTuesdayAbbreviation,
|
|
CalendarWednesdayAbbreviation,
|
|
CalendarThursdayAbbreviation,
|
|
CalendarFridayAbbreviation,
|
|
CalendarSaturdayAbbreviation,
|
|
CalendarSundayAbbreviation,
|
|
CalendarJanuary,
|
|
CalendarFebruary,
|
|
CalendarMarch,
|
|
CalendarApril,
|
|
CalendarMay,
|
|
CalendarJune,
|
|
CalendarJuly,
|
|
CalendarAugust,
|
|
CalendarSeptember,
|
|
CalendarOctober,
|
|
CalendarNovember,
|
|
CalendarDecember,
|
|
CalendarAddToPlanner,
|
|
CalendarAddToPlannerSuccess,
|
|
CalendarAddToPlannerAlreadyExists,
|
|
CalendarDateFormat, // See https://docs.rs/chrono/latest/chrono/format/strftime/index.html.
|
|
CalendarAddIngredientsToShoppingList,
|
|
CalendarRemoveIngredientsFromShoppingList,
|
|
CalendarUnschedule,
|
|
CalendarUnscheduleConfirmation,
|
|
}
|