feat(mobile/navigation/welcome): welcome page tabs translations

This commit is contained in:
Calinteodor 2022-09-30 12:07:00 +03:00 committed by GitHub
parent 349e4bfb57
commit 2de2500080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View File

@ -969,7 +969,6 @@
"playSounds": "Play sound on", "playSounds": "Play sound on",
"reactions": "Meeting reactions", "reactions": "Meeting reactions",
"sameAsSystem": "Same as system ({{label}})", "sameAsSystem": "Same as system ({{label}})",
"screenTitle": "Settings",
"selectAudioOutput": "Audio output", "selectAudioOutput": "Audio output",
"selectCamera": "Camera", "selectCamera": "Camera",
"selectMic": "Microphone", "selectMic": "Microphone",
@ -1355,6 +1354,7 @@
"roomname": "Enter room name", "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.", "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", "sendFeedback": "Send feedback",
"settings": "Settings",
"startMeeting": "Start meeting", "startMeeting": "Start meeting",
"terms": "Terms", "terms": "Terms",
"title": "Secure, fully featured, and completely free video conferencing" "title": "Secure, fully featured, and completely free video conferencing"

View File

@ -1,5 +1,6 @@
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux'; import { useSelector } from 'react-redux';
import { CalendarList, isCalendarEnabled } from '../../../../../calendar-sync'; import { CalendarList, isCalendarEnabled } from '../../../../../calendar-sync';
@ -40,6 +41,7 @@ type Props = {
const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocused }: Props) => { const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocused }: Props) => {
const { t } = useTranslation();
const RecentListScreen = useCallback(() => const RecentListScreen = useCallback(() =>
( (
<RecentList <RecentList
@ -78,7 +80,10 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus
} }
}} }}
name = { screen.welcome.tabs.recent } name = { screen.welcome.tabs.recent }
options = { recentListTabBarOptions }> options = {{
...recentListTabBarOptions,
title: t('welcomepage.recentList')
}}>
{ RecentListScreen } { RecentListScreen }
</WelcomePage.Screen> </WelcomePage.Screen>
{ {
@ -90,7 +95,10 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus
} }
}} }}
name = { screen.welcome.tabs.calendar } name = { screen.welcome.tabs.calendar }
options = { calendarListTabBarOptions }> options = {{
...calendarListTabBarOptions,
title: t('welcomepage.calendar')
}}>
{ CalendarListScreen } { CalendarListScreen }
</WelcomePage.Screen> </WelcomePage.Screen>
} }
@ -101,7 +109,10 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus
} }
}} }}
name = { screen.settings.main } name = { screen.settings.main }
options = { settingsTabBarOptions }> options = {{
...settingsTabBarOptions,
title: t('welcomepage.settings')
}}>
{ SettingsScreen } { SettingsScreen }
</WelcomePage.Screen> </WelcomePage.Screen>
</WelcomePage.Navigator> </WelcomePage.Navigator>