diff --git a/src/assets/localization/fallback.strings b/src/assets/localization/fallback.strings index 1a35b98d4..32edf5d55 100644 --- a/src/assets/localization/fallback.strings +++ b/src/assets/localization/fallback.strings @@ -1410,6 +1410,17 @@ "MenuBetaChangelog" = "Beta Changelog"; "MenuSwitchToK" = "Switch to K Version"; "MenuInstallApp" = "Install App"; +"MenuMyProfile" = "My Profile"; +"MenuSavedMessages" = "Saved Messages"; +"MenuArchivedChats" = "Archived Chats"; +"MenuContacts" = "Contacts"; +"MenuSettings" = "Settings"; +"MenuNightMode" = "Night Mode"; +"AriaMenuEnableNightMode" = "Enable night mode"; +"AriaMenuDisableNightMode" = "Disable night mode"; +"MenuAnimationsSwitch" = "Animations"; +"MenuTelegramFeatures" = "Telegram Features"; +"TelegramFeaturesUsername" = "TelegramTips"; "RemoveEffect" = "Remove effect"; "ReplyInPrivateMessage" = "Reply In Private Message"; "ProfileOpenAppAbout" = "By launching this mini app, you agree to the {terms}."; diff --git a/src/components/left/main/LeftSideMenuItems.tsx b/src/components/left/main/LeftSideMenuItems.tsx index 9b945f520..f33b64707 100644 --- a/src/components/left/main/LeftSideMenuItems.tsx +++ b/src/components/left/main/LeftSideMenuItems.tsx @@ -33,7 +33,6 @@ import { switchPermanentWebVersion } from '../../../util/permanentWebVersion'; import { useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager'; import useLang from '../../../hooks/useLang'; import useLastCallback from '../../../hooks/useLastCallback'; -import useOldLang from '../../../hooks/useOldLang'; import AttachBotItem from '../../middle/composer/AttachBotItem'; import MenuItem from '../../ui/MenuItem'; @@ -82,7 +81,6 @@ const LeftSideMenuItems = ({ openUrl, openChatWithInfo, } = getActions(); - const oldLang = useOldLang(); const lang = useLang(); const animationLevelValue = animationLevel !== ANIMATION_LEVEL_MIN @@ -134,7 +132,7 @@ const LeftSideMenuItems = ({ }); const handleOpenTipsChat = useLastCallback(() => { - openChatByUsername({ username: oldLang('Settings.TipsUsername') }); + openChatByUsername({ username: lang('TelegramFeaturesUsername') }); }); const handleBugReportClick = useLastCallback(() => { @@ -157,20 +155,20 @@ const LeftSideMenuItems = ({ icon="user" onClick={handleSelectMyProfile} > - {oldLang('My Profile')} + {lang('MenuMyProfile')} - {oldLang('SavedMessages')} + {lang('MenuSavedMessages')} {archiveSettings.isHidden && ( - {oldLang('ArchivedChats')} + {lang('MenuArchivedChats')} {archivedUnreadChatsCount > 0 && ( {archivedUnreadChatsCount} )} @@ -180,7 +178,7 @@ const LeftSideMenuItems = ({ icon="group" onClick={onSelectContacts} > - {oldLang('Contacts')} + {lang('MenuContacts')} {bots.map((bot) => ( - {oldLang('Settings')} + {lang('MenuSettings')} - {oldLang('lng_menu_night_mode')} + {lang('MenuNightMode')} @@ -214,14 +212,14 @@ const LeftSideMenuItems = ({ icon="animations" onClick={handleAnimationLevelChange} > - {oldLang('Appearance.Animations').toLowerCase()} + {lang('MenuAnimationsSwitch')} - {oldLang('TelegramFeatures')} + {lang('MenuTelegramFeatures')}