From 6adcc9b27f2168ecaff5798afb3ac2d7576c294b Mon Sep 17 00:00:00 2001 From: Cassiano D'Andrea Date: Thu, 11 Sep 2025 10:45:20 -0300 Subject: [PATCH 1/2] Fixing mobile menu translations --- client/modules/IDE/components/Header/MobileNav.jsx | 7 +++---- translations/locales/en-US/translations.json | 4 +++- translations/locales/pt-BR/translations.json | 5 +++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/client/modules/IDE/components/Header/MobileNav.jsx b/client/modules/IDE/components/Header/MobileNav.jsx index ce4a4cd49d..0282ae186e 100644 --- a/client/modules/IDE/components/Header/MobileNav.jsx +++ b/client/modules/IDE/components/Header/MobileNav.jsx @@ -437,17 +437,16 @@ const MoreMenu = () => { dispatch(newFolder(rootFile.id))}> {t('Nav.Sketch.AddFolder')} - {/* TODO: Add Translations */} - Settings + {t('MobilePreferences.Settings')} { dispatch(openPreferences()); }} > - Preferences + {t('MobilePreferences.Preferences')} setIsLanguageModalVisible(true)}> - Language + {t('MobilePreferences.Language')} {t('Nav.Help.Title')} dispatch(showKeyboardShortcutModal())}> diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 11724c3f59..436129e608 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -644,7 +644,9 @@ "UsedScreenReader": "Used with screen reader", "PlainText": "Plain-text", "TableText": "Table-text", - "Sound": "Sound" + "Sound": "Sound", + "Preferences": "Preferences", + "Language": "Language" }, "PreferenceCreators": { "On": "On", diff --git a/translations/locales/pt-BR/translations.json b/translations/locales/pt-BR/translations.json index 6d63d0324e..12693c17b7 100644 --- a/translations/locales/pt-BR/translations.json +++ b/translations/locales/pt-BR/translations.json @@ -589,6 +589,11 @@ "EditSketchARIA": "Editar esboço", "ByUser": "por" }, + "MobilePreferences": { + "Settings": "Configurações", + "Preferences": "Preferências", + "Language": "Idioma" + }, "PreferenceCreators": { "On": "Ligado", "Off": "Desligado" From 3b161eebc3f94bc3699606d6968a76c8ddfb0417 Mon Sep 17 00:00:00 2001 From: Cassiano D'Andrea Date: Thu, 11 Sep 2025 10:48:20 -0300 Subject: [PATCH 2/2] Adding missing and removing additional spaces in/from `en-US` locale (using Prettier) --- translations/locales/en-US/translations.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 436129e608..ebf2c3337d 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -122,7 +122,7 @@ "EmailAddress": "hello@p5js.org", "Socials": "Socials", "LinkDescriptions": { - "Home": "Learn more about p5.js and our community.", + "Home": "Learn more about p5.js and our community.", "Examples": "Explore the possibilities of p5.js with short examples.", "CodeOfConduct": "Read our Community State and Code of Conduct.", "Libraries": "Expand the possibilities of p5.js with community-created libraries.", @@ -143,7 +143,7 @@ "SettingsSaved": "Settings saved.", "EmptyCurrentPass": "Current password field is empty", "IncorrectCurrentPass": "Current password is incorrect", - "DefaultError":"Something went wrong", + "DefaultError": "Something went wrong", "UserNotFound": "User not found", "NetworkError": "Network error" }, @@ -295,9 +295,9 @@ "SubmitFeedback": "Submit Feedback", "SubmitFeedbackARIA": "submit-feedback", "AddCollectionTitle": "Add to collection", - "AddCollectionARIA":"add to collection", + "AddCollectionARIA": "add to collection", "ShareTitle": "Share", - "ShareARIA":"share" + "ShareARIA": "share" }, "NewFileModal": { "Title": "Create File", @@ -342,7 +342,7 @@ "errorShortPassword": "Password must be at least 6 characters", "errorConfirmPassword": "Please confirm your password", "errorNewPassword": "Please enter a new password or leave the current password empty.", - "errorNewPasswordRepeat":"Your New Password must differ from the current one.", + "errorNewPasswordRepeat": "Your New Password must differ from the current one.", "errorEmptyUsername": "Please enter a username.", "errorLongUsername": "Username must be less than 20 characters.", "errorValidUsername": "Username must only consist of numbers, letters, periods, dashes, and underscores." @@ -498,7 +498,7 @@ "Description": "description", "NumSketches": "{{count}} sketch", "NumSketches_plural": "{{count}} sketches", - "By":"Collection by ", + "By": "Collection by ", "NoSketches": "No sketches in collection", "TableSummary": "table containing all collections", "HeaderName": "Name", @@ -562,7 +562,7 @@ "Overlay": { "AriaLabel": "Close {{title}} overlay" }, - "QuickAddList":{ + "QuickAddList": { "ButtonRemoveARIA": "Remove from collection", "ButtonAddToCollectionARIA": "Add to collection", "View": "View"