From 2de2500080828cfb049c418b6cfaeb80bae4572c Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Fri, 30 Sep 2022 12:07:00 +0300 Subject: [PATCH] feat(mobile/navigation/welcome): welcome page tabs translations --- lang/main.json | 2 +- .../welcome/components/WelcomePageTabs.js | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lang/main.json b/lang/main.json index 8f4d30018..393312df2 100644 --- a/lang/main.json +++ b/lang/main.json @@ -969,7 +969,6 @@ "playSounds": "Play sound on", "reactions": "Meeting reactions", "sameAsSystem": "Same as system ({{label}})", - "screenTitle": "Settings", "selectAudioOutput": "Audio output", "selectCamera": "Camera", "selectMic": "Microphone", @@ -1355,6 +1354,7 @@ "roomname": "Enter room name", "roomnameHint": "Enter the name or URL of the room you want to join. You may make a name up, just let the people you are meeting know it so that they enter the same name.", "sendFeedback": "Send feedback", + "settings": "Settings", "startMeeting": "Start meeting", "terms": "Terms", "title": "Secure, fully featured, and completely free video conferencing" diff --git a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js index 24d5d1069..65aaa23c5 100644 --- a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js +++ b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js @@ -1,5 +1,6 @@ import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import React, { useCallback } from 'react'; +import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; import { CalendarList, isCalendarEnabled } from '../../../../../calendar-sync'; @@ -40,6 +41,7 @@ type Props = { const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocused }: Props) => { + const { t } = useTranslation(); const RecentListScreen = useCallback(() => ( + options = {{ + ...recentListTabBarOptions, + title: t('welcomepage.recentList') + }}> { RecentListScreen } { @@ -90,7 +95,10 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus } }} name = { screen.welcome.tabs.calendar } - options = { calendarListTabBarOptions }> + options = {{ + ...calendarListTabBarOptions, + title: t('welcomepage.calendar') + }}> { CalendarListScreen } } @@ -101,7 +109,10 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus } }} name = { screen.settings.main } - options = { settingsTabBarOptions }> + options = {{ + ...settingsTabBarOptions, + title: t('welcomepage.settings') + }}> { SettingsScreen }