From a560e5da293dda205f7d42ef7291cee7a0244697 Mon Sep 17 00:00:00 2001 From: Geoffroy Empain Date: Fri, 22 Sep 2023 13:56:14 +0200 Subject: [PATCH] fix(admin-ui): typos in text (#5032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes some typos found while reviewing translations. Potential improvements in the future: fragmented translations may need merging with ``. For example: ``` "analytics-preferences-disclaimer": "Pour créer la meilleure expérience de commerce électronique possible, nous aimerions obtenir des informations sur la manière dont vous utilisez Medusa. Les informations sur les utilisateurs nous permettent de construire des produits meilleurs, plus attrayants et plus utilisables. Nous ne collectons des données que pour améliorer le produit. Lisez quelles données nous recueillons dans notre", "analytics-preferences-documentation": "documentation", ``` ``` "help-dialog-feel-free-to-join-our-community-of": "Feel free to join our community of", "help-dialog-merchants-and-e-commerce-developers": "merchants and e-commerce developers", ``` ``` "upload-modal-drop-your-file-here-or": "Drop your file here, or", "upload-modal-click-to-browse": "click to browse.", ``` Example from my previous PR with `sales-channels-display-available-count`: ``` Available in{" "} {{ availableChannelsCount }} {" "} out of{" "} {{ totalChannelsCount }} {" "} Sales Channels ``` --- packages/admin-ui/ui/public/locales/en/translation.json | 4 ++-- .../ui/src/components/organisms/error-boundary/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/admin-ui/ui/public/locales/en/translation.json b/packages/admin-ui/ui/public/locales/en/translation.json index 12a132e071..39449177cf 100644 --- a/packages/admin-ui/ui/public/locales/en/translation.json +++ b/packages/admin-ui/ui/public/locales/en/translation.json @@ -43,14 +43,14 @@ "error-boundary-an-unknown-error-occured": "An unknown error occured", "error-boundary-bad-request": "Bad request", "error-boundary-you-are-not-logged-in": "You are not logged in", - "error-boundary-you-do-not-have-permission-perform-this-action": "You do not have permission perform this action", + "error-boundary-you-do-not-have-permission-perform-this-action": "You do not have permission to perform this action", "error-boundary-page-was-not-found": "Page was not found", "error-boundary-an-unknown-server-error-occured": "An unknown server error occured", "error-boundary-503": "Server is currently unavailable", "error-boundary-500": "An error occurred with unspecified causes, this is most likely due to a techinical issue on our end. Please try refreshing the page. If the issue keeps happening, contact your administrator.", "error-boundary-400": "The request was malformed, fix your request and please try again.", "error-boundary-401": "You are not logged in, please log in to proceed.", - "error-boundary-403": "You do not have permission perform this action, if you think this is a mistake, contact your administrator.", + "error-boundary-403": "You do not have permission to perform this action, if you think this is a mistake, contact your administrator.", "error-boundary-404": "The page you have requested was not found, please check the URL and try again.", "error-boundary-500-2": "The server was not able to handle your request, this is mostly likely due to a techinical issue on our end. Please try again. If the issue keeps happening, contact your administrator.", "error-boundary-503-2": "The server is temporarily unavailable, and your request could not be processed. Please try again later. If the issue keeps happening, contact your administrator.", diff --git a/packages/admin-ui/ui/src/components/organisms/error-boundary/index.tsx b/packages/admin-ui/ui/src/components/organisms/error-boundary/index.tsx index 3193615d2b..85deddb3ba 100644 --- a/packages/admin-ui/ui/src/components/organisms/error-boundary/index.tsx +++ b/packages/admin-ui/ui/src/components/organisms/error-boundary/index.tsx @@ -140,7 +140,7 @@ const errorMessage = (t: TFunction, status?: number) => { 401: t("error-boundary-you-are-not-logged-in", "You are not logged in"), 403: t( "error-boundary-you-do-not-have-permission-perform-this-action", - "You do not have permission perform this action" + "You do not have permission to perform this action" ), 404: t("error-boundary-page-was-not-found", "Page was not found"), 500: t( @@ -174,7 +174,7 @@ const errorDescription = (t: TFunction, status?: number) => { ), 403: t( "error-boundary-403", - "You do not have permission perform this action, if you think this is a mistake, contact your administrator." + "You do not have permission to perform this action, if you think this is a mistake, contact your administrator." ), 404: t( "error-boundary-404",