diff --git a/frontend/src/components/MealPlan/MealPlanCard.vue b/frontend/src/components/MealPlan/MealPlanCard.vue index be8f28a7f..ed18943e8 100644 --- a/frontend/src/components/MealPlan/MealPlanCard.vue +++ b/frontend/src/components/MealPlan/MealPlanCard.vue @@ -4,14 +4,14 @@ - - + + @@ -23,7 +23,7 @@ {{ $globals.icons.edit }} - No Recipe + {{ $t('reicpe.no-recipe') }} @@ -40,14 +40,14 @@ {{ $globals.icons.edit }} - No Recipe + {{ $t('reicpe.no-recipe') }} {{ $globals.icons.create }} - Side + {{ $t('meal-plan.side') }} diff --git a/frontend/src/components/Recipe/CommentSection/index.vue b/frontend/src/components/Recipe/CommentSection/index.vue index 088e93673..29edd42af 100644 --- a/frontend/src/components/Recipe/CommentSection/index.vue +++ b/frontend/src/components/Recipe/CommentSection/index.vue @@ -4,7 +4,7 @@ mdi-comment-text-multiple-outline - Comments + {{ $t('recipe.comments') }} @@ -43,7 +43,7 @@
- Comment + {{ $t('recipe.comment-action') }}
diff --git a/frontend/src/components/Recipe/Parts/Instructions.vue b/frontend/src/components/Recipe/Parts/Instructions.vue index 0242bf13e..2f6d4e019 100644 --- a/frontend/src/components/Recipe/Parts/Instructions.vue +++ b/frontend/src/components/Recipe/Parts/Instructions.vue @@ -14,7 +14,7 @@ dense solo flat - placeholder="Section Title" + :placeholder="$t('recipe.section-title')" background-color="primary" > @@ -41,7 +41,7 @@ {{ $t("recipe.step-index", { step: index + 1 }) }} - {{ !showTitleEditor[index] ? "Insert Section" : "Remove Section" }} + {{ !showTitleEditor[index] ? $t('recipe.insert-section') : $t('recipe.remove-section') }} diff --git a/frontend/src/components/Recipe/RecipePageActionMenu.vue b/frontend/src/components/Recipe/RecipePageActionMenu.vue index c55f5ea9a..ecbec0aa3 100644 --- a/frontend/src/components/Recipe/RecipePageActionMenu.vue +++ b/frontend/src/components/Recipe/RecipePageActionMenu.vue @@ -78,34 +78,39 @@ export default { data() { return { edit: false, - editorButtons: [ - { - text: "Delete", - icon: this.$globals.icons.delete, - event: DELETE_EVENT, - color: "error", - }, - { - text: "JSON", - icon: "mdi-code-braces", - event: JSON_EVENT, - color: "accent", - }, - { - text: "Close", - icon: "mdi-close", - event: CLOSE_EVENT, - color: "", - }, - { - text: "Save", - icon: this.$globals.icons.save, - event: SAVE_EVENT, - color: "success", - }, - ], }; }, + + computed: { + editorButtons() { + return [ + { + text: this.$t('general.delete'), + icon: this.$globals.icons.delete, + event: DELETE_EVENT, + color: "error", + }, + { + text: this.$t('general.json'), + icon: "mdi-code-braces", + event: JSON_EVENT, + color: "accent", + }, + { + text: this.$t('general.close'), + icon: "mdi-close", + event: CLOSE_EVENT, + color: "", + }, + { + text: this.$t('general.save'), + icon: this.$globals.icons.save, + event: SAVE_EVENT, + color: "success", + }, + ]; + }, + }, methods: { emitHandler(event) { switch (event) { diff --git a/frontend/src/components/UI/Dialogs/SearchDialog.vue b/frontend/src/components/UI/Dialogs/SearchDialog.vue index dd840202e..bff679e0b 100644 --- a/frontend/src/components/UI/Dialogs/SearchDialog.vue +++ b/frontend/src/components/UI/Dialogs/SearchDialog.vue @@ -39,9 +39,9 @@
- Results + {{ $t('search.results') }}
- Advanced Search + {{ $t('search.advanced-search') }}
diff --git a/frontend/src/components/UI/TheSidebar.vue b/frontend/src/components/UI/TheSidebar.vue index d39f9b057..4f6cab0ec 100644 --- a/frontend/src/components/UI/TheSidebar.vue +++ b/frontend/src/components/UI/TheSidebar.vue @@ -9,7 +9,7 @@ mdi-heart - Favorites + {{ $t('general.favorites') }} diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index 580c7effb..548a2115c 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -4,6 +4,7 @@ "take-me-home": "Take me Home" }, "about": { + "about": "About", "about-mealie": "About Mealie", "api-docs": "API Docs", "api-port": "API Port", @@ -54,6 +55,7 @@ "clear": "Clear", "close": "Close", "confirm": "Confirm", + "confirm-delete-generic": "Are you sure you want to delete this?", "copied": "Copied", "create": "Create", "created": "Created", @@ -61,7 +63,6 @@ "custom": "Custom", "dashboard": "Dashboard", "delete": "Delete", - "confirm-delete-generic": "Are you sure you want to delete this?", "disabled": "Disabled", "download": "Download", "edit": "Edit", @@ -69,6 +70,7 @@ "exception": "Exception", "failed-count": "Failed: {count}", "failure-uploading-file": "Failure uploading file", + "favorites": "Favorites", "field-required": "Field Required", "file-folder-not-found": "File/folder not found", "file-uploaded": "File uploaded", @@ -79,10 +81,12 @@ "image": "Image", "image-upload-failed": "Image upload failed", "import": "Import", + "json": "JSON", "keyword": "Keyword", "link": "Link", "link-copied": "Link Copied", "monday": "Monday", + "more": "More", "name": "Name", "new": "New", "no": "No", @@ -120,8 +124,7 @@ "url": "URL", "view": "View", "wednesday": "Wednesday", - "yes": "Yes", - "more": "More" + "yes": "Yes" }, "group": { "are-you-sure-you-want-to-delete-the-group": "Are you sure you want to delete {groupName}?", @@ -151,6 +154,7 @@ "edit-meal-plan": "Edit Meal Plan", "end-date": "End Date", "group": "Group (Beta)", + "main": "Main", "meal-planner": "Meal Planner", "meal-plans": "Meal Plans", "mealplan-categories": "MEALPLAN CATEGORIES", @@ -166,6 +170,8 @@ "only-recipes-with-these-categories-will-be-used-in-meal-plans": "Only recipes with these categories will be used in Meal Plans", "planner": "Planner", "quick-week": "Quick Week", + "side": "Side", + "sides": "Sides", "start-date": "Start Date" }, "migration": { @@ -183,18 +189,18 @@ }, "new-recipe": { "bulk-add": "Bulk Add", - "error-title": "Looks Like We Couldn't Find Anything", "error-details": "Only websites containing ld+json or microdata can be imported imported by Mealie. Most major recipe websites support this data structure. If your site cannot be imported but there is json data in the log, please submit a github issue with the URL and data.", + "error-title": "Looks Like We Couldn't Find Anything", "from-url": "Import a Recipe", "paste-in-your-recipe-data-each-line-will-be-treated-as-an-item-in-a-list": "Paste in your recipe data. Each line will be treated as an item in a list", "recipe-url": "Recipe URL", "url-form-hint": "Copy and paste a link from your favorite recipe website" }, "page": { - "page": "Page", "all-recipes": "All Recipes", "home-page": "Home Page", "new-page-created": "New page created", + "page": "Page", "page-creation-failed": "Page creation failed", "page-deleted": "Page deleted", "page-deletion-failed": "Page deletion failed", @@ -206,24 +212,27 @@ }, "recipe": { "add-key": "Add Key", + "add-to-favorites": "Add to Favorites", "api-extras": "API Extras", "assets": "Assets", "calories": "Calories", "calories-suffix": "calories", "carbohydrate-content": "Carbohydrate", "categories": "Categories", - "disable-comments": "Disable Comments", - "disable-amount": "Disable Ingredient Amounts", + "comment-action": "Comment", + "comments": "Comments", "delete-confirmation": "Are you sure you want to delete this recipe?", "delete-recipe": "Delete Recipe", "description": "Description", + "disable-amount": "Disable Ingredient Amounts", + "disable-comments": "Disable Comments", "fat-content": "Fat", "fiber-content": "Fiber", "grams": "grams", "ingredient": "Ingredient", "ingredients": "Ingredients", + "insert-section": "Insert Section", "instructions": "Instructions", - "share-recipe-message": "I wanted to share my {0} recipe with you.", "key-name-required": "Key Name Required", "landscape-view-coming-soon": "Landscape View (Coming Soon)", "milligrams": "milligrams", @@ -249,7 +258,11 @@ "recipe-settings": "Recipe Settings", "recipe-update-failed": "Recipe update failed", "recipe-updated": "Recipe updated", + "remove-from-favorites": "Remove from Favorites", + "remove-section": "Remove Section", + "section-title": "Section Title", "servings": "Servings", + "share-recipe-message": "I wanted to share my {0} recipe with you.", "show-assets": "Show Assets", "show-nutrition-values": "Show Nutrition Values", "sodium-content": "Sodium", @@ -258,16 +271,19 @@ "title": "Title", "total-time": "Total Time", "unable-to-delete-recipe": "Unable to Delete Recipe", - "view-recipe": "View Recipe", - "add-to-favorites": "Add to Favorites", - "remove-from-favorites": "Remove from Favorites" + "view-recipe": "View Recipe" + }, + "reicpe": { + "no-recipe": "No Recipe" }, "search": { + "advanced-search": "Advanced Search", "and": "and", "exclude": "Exclude", "include": "Include", "max-results": "Max Results", "or": "Or", + "results": "Results", "search": "Search", "search-mealie": "Search Mealie (press /)", "search-placeholder": "Search...", @@ -338,6 +354,8 @@ "secondary": "Secondary", "select-a-theme-from-the-dropdown-or-create-a-new-theme-note-that-the-default-theme-will-be-served-to-all-users-who-have-not-set-a-theme-preference": "Select a theme from the dropdown or create a new theme. Note that the default theme will be served to all users who have not set a theme preference.", "success": "Success", + "switch-to-dark-mode": "Switch to dark mode", + "switch-to-light-mode": "Switch to light mode", "theme": "Theme", "theme-deleted": "Theme deleted", "theme-name": "Theme Name", @@ -345,9 +363,7 @@ "theme-saved": "Theme Saved", "theme-settings": "Theme Settings", "theme-updated": "Theme updated", - "warning": "Warning", - "switch-to-light-mode": "Switch to light mode", - "switch-to-dark-mode": "Switch to dark mode" + "warning": "Warning" }, "token": { "active-tokens": "ACTIVE TOKENS", diff --git a/frontend/src/pages/MealPlan/ThisWeek.vue b/frontend/src/pages/MealPlan/ThisWeek.vue index cf4f4b5a9..7b74f5c3f 100644 --- a/frontend/src/pages/MealPlan/ThisWeek.vue +++ b/frontend/src/pages/MealPlan/ThisWeek.vue @@ -7,7 +7,7 @@ - Main + {{ $t('meal-plan.main') }} - Sides + {{ $t('meal-plan.sides') }}