pl-fe: make groups panel title localizable
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { useGroups } from 'pl-fe/api/hooks/groups/use-groups';
|
||||
import Widget from 'pl-fe/components/ui/widget';
|
||||
@ -15,7 +16,7 @@ const MyGroupsPanel = () => {
|
||||
|
||||
return (
|
||||
<Widget
|
||||
title='My Groups'
|
||||
title={<FormattedMessage id='my_groups_panel.title' defaultMessage='My groups' />}
|
||||
>
|
||||
{isFetching ? (
|
||||
new Array(3).fill(0).map((_, idx) => (
|
||||
|
||||
@ -9,7 +9,7 @@ const NewEventPanel = () => (
|
||||
<Stack space={2}>
|
||||
<Stack>
|
||||
<Text size='lg' weight='bold'>
|
||||
<FormattedMessage id='new_event_panel.title' defaultMessage='Create New Event' />
|
||||
<FormattedMessage id='new_event_panel.title' defaultMessage='Create new event' />
|
||||
</Text>
|
||||
|
||||
<Text theme='muted' size='sm'>
|
||||
|
||||
@ -1207,6 +1207,7 @@
|
||||
"mute_modal.auto_expire": "Automatically expire mute?",
|
||||
"mute_modal.duration": "Duration",
|
||||
"mute_modal.hide_notifications": "Hide notifications from this user?",
|
||||
"my_groups_panel.title": "My groups",
|
||||
"navigation.chats": "Chats",
|
||||
"navigation.compose": "Compose",
|
||||
"navigation.compose_group": "Compose to group",
|
||||
@ -1253,7 +1254,7 @@
|
||||
"navigation_bar.profile_directory": "Profile directory",
|
||||
"new_event_panel.action": "Create event",
|
||||
"new_event_panel.subtitle": "Can't find what you're looking for? Schedule your own event.",
|
||||
"new_event_panel.title": "Create New Event",
|
||||
"new_event_panel.title": "Create new event",
|
||||
"new_group_panel.action": "Create group",
|
||||
"new_group_panel.subtitle": "Can't find what you're looking for? Start your own private or public group.",
|
||||
"new_group_panel.title": "Create group",
|
||||
|
||||
Reference in New Issue
Block a user