Skip to content

Commit

Permalink
Fixed translations and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucaspains committed Aug 18, 2023
1 parent f31fd60 commit 68baf84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"addManually": "Add manually",
"importFromWebsite": "Import from website",
"importFromBackup": "Import from backup file",
"importFromOnlineShare": "Import from online share (preview)",
"importFromOnlineShare": "Import from code (preview)",
"importFromScan": "Import from image",
"sortByTitle": "Sort by Title",
"sortByRating": "Sort by Rating",
Expand Down
2 changes: 1 addition & 1 deletion public/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"importFromWebsite": "Importar de website",
"importFromBackup": "Importar de backup",
"importFromScan": "Importar de imagem",
"importFromOnlineShare": "Importar de compartilhamento (preview)",
"importFromOnlineShare": "Importar de código (preview)",
"sortByTitle": "Classificar por título",
"sortByRating": "Classificar por nota",
"sortByRecipeDate": "Classificar por data",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/multiplierHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function prepareStepDisplay(input: string, currentTime: Date, locale: str
}

function round(value: number, decimalPlaces = 0) {
var p = Math.pow(10, decimalPlaces);
var n = (value * p) * (1 + Number.EPSILON);
const p = Math.pow(10, decimalPlaces);
const n = (value * p) * (1 + Number.EPSILON);
return Math.round(n) / p;
}
1 change: 0 additions & 1 deletion src/pages/recipe/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ function showIngredientDetails(item: IngredientDisplay) {
},
}
]">
<!-- <div class="font-regular relative mb-4 block w-full rounded-lg bg-orange-500 p-4 text-base leading-5 text-white opacity-100">iOS does not support opening a link with a PWA app. Thus, share the code and the import needs to be done manually.</div> -->
<div class="text-center my-6">
<span class="text-2xl dark:text-white">{{ shareCode }}</span>
</div>
Expand Down

0 comments on commit 68baf84

Please sign in to comment.