Skip to content

Commit c6dcc20

Browse files
authored
Merge pull request #3642 from cassiano/fixing-mobile-menu-translations
Fixing mobile menu translations
2 parents 497f7ce + a94f372 commit c6dcc20

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

client/modules/IDE/components/Header/MobileNav.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,16 @@ const MoreMenu = () => {
437437
<MobileMenuItem onClick={() => dispatch(newFolder(rootFile.id))}>
438438
{t('Nav.Sketch.AddFolder')}
439439
</MobileMenuItem>
440-
{/* TODO: Add Translations */}
441-
<b>Settings</b>
440+
<b>{t('MobilePreferences.Settings')}</b>
442441
<MobileMenuItem
443442
onClick={() => {
444443
dispatch(openPreferences());
445444
}}
446445
>
447-
Preferences
446+
{t('MobilePreferences.Preferences')}
448447
</MobileMenuItem>
449448
<MobileMenuItem onClick={() => setIsLanguageModalVisible(true)}>
450-
Language
449+
{t('MobilePreferences.Language')}
451450
</MobileMenuItem>
452451
<b>{t('Nav.Help.Title')}</b>
453452
<MobileMenuItem onClick={() => dispatch(showKeyboardShortcutModal())}>

translations/locales/en-US/translations.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"EmailAddress": "[email protected]",
123123
"Socials": "Socials",
124124
"LinkDescriptions": {
125-
"Home": "Learn more about p5.js and our community.",
125+
"Home": "Learn more about p5.js and our community.",
126126
"Examples": "Explore the possibilities of p5.js with short examples.",
127127
"CodeOfConduct": "Read our Community State and Code of Conduct.",
128128
"Libraries": "Expand the possibilities of p5.js with community-created libraries.",
@@ -143,7 +143,7 @@
143143
"SettingsSaved": "Settings saved.",
144144
"EmptyCurrentPass": "Current password field is empty",
145145
"IncorrectCurrentPass": "Current password is incorrect",
146-
"DefaultError":"Something went wrong",
146+
"DefaultError": "Something went wrong",
147147
"UserNotFound": "User not found",
148148
"NetworkError": "Network error"
149149
},
@@ -295,9 +295,9 @@
295295
"SubmitFeedback": "Submit Feedback",
296296
"SubmitFeedbackARIA": "submit-feedback",
297297
"AddCollectionTitle": "Add to collection",
298-
"AddCollectionARIA":"add to collection",
298+
"AddCollectionARIA": "add to collection",
299299
"ShareTitle": "Share",
300-
"ShareARIA":"share"
300+
"ShareARIA": "share"
301301
},
302302
"NewFileModal": {
303303
"Title": "Create File",
@@ -342,7 +342,7 @@
342342
"errorShortPassword": "Password must be at least 6 characters",
343343
"errorConfirmPassword": "Please confirm your password",
344344
"errorNewPassword": "Please enter a new password or leave the current password empty.",
345-
"errorNewPasswordRepeat":"Your New Password must differ from the current one.",
345+
"errorNewPasswordRepeat": "Your New Password must differ from the current one.",
346346
"errorEmptyUsername": "Please enter a username.",
347347
"errorLongUsername": "Username must be less than 20 characters.",
348348
"errorValidUsername": "Username must only consist of numbers, letters, periods, dashes, and underscores."
@@ -498,7 +498,7 @@
498498
"Description": "description",
499499
"NumSketches": "{{count}} sketch",
500500
"NumSketches_plural": "{{count}} sketches",
501-
"By":"Collection by ",
501+
"By": "Collection by ",
502502
"NoSketches": "No sketches in collection",
503503
"TableSummary": "table containing all collections",
504504
"HeaderName": "Name",
@@ -562,7 +562,7 @@
562562
"Overlay": {
563563
"AriaLabel": "Close {{title}} overlay"
564564
},
565-
"QuickAddList":{
565+
"QuickAddList": {
566566
"ButtonRemoveARIA": "Remove from collection",
567567
"ButtonAddToCollectionARIA": "Add to collection",
568568
"View": "View"
@@ -644,7 +644,9 @@
644644
"UsedScreenReader": "Used with screen reader",
645645
"PlainText": "Plain-text",
646646
"TableText": "Table-text",
647-
"Sound": "Sound"
647+
"Sound": "Sound",
648+
"Preferences": "Preferences",
649+
"Language": "Language"
648650
},
649651
"PreferenceCreators": {
650652
"On": "On",

translations/locales/pt-BR/translations.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,11 @@
589589
"EditSketchARIA": "Editar esboço",
590590
"ByUser": "por"
591591
},
592+
"MobilePreferences": {
593+
"Settings": "Configurações",
594+
"Preferences": "Preferências",
595+
"Language": "Idioma"
596+
},
592597
"PreferenceCreators": {
593598
"On": "Ligado",
594599
"Off": "Desligado"

0 commit comments

Comments
 (0)