translate hardcoded strings

This commit is contained in:
p0lycarpio
2023-10-26 15:26:14 +02:00
parent 08b6f3b70a
commit 97a9fa94a0
24 changed files with 107 additions and 71 deletions

View File

@@ -161,8 +161,8 @@ export default defineComponent({
const isSame = JSON.stringify(props.recipe) === JSON.stringify(originalRecipe.value);
if (isEditMode.value && !isSame && props.recipe?.slug !== undefined) {
const save = window.confirm(
"You have unsaved changes. Do you want to save before leaving?\n\nOkay to save, Cancel to discard changes."
);
i18n.tc("general.unsaved-changes"),
);
if (save) {
await api.recipes.updateOne(props.recipe.slug, props.recipe);
@@ -240,7 +240,7 @@ export default defineComponent({
/** =============================================================
* View Preferences
*/
const { $vuetify } = useContext();
const { $vuetify, i18n } = useContext();
const landscape = computed(() => {
const preferLandscape = props.recipe.settings.landscapeView;