fix empty screen translations

This commit is contained in:
namushka 2024-03-04 13:32:32 +03:00
parent db97639701
commit a59b90fa28
3 changed files with 14 additions and 6 deletions

View File

@ -41,14 +41,14 @@ const EmptyScreenGroups = ({
imageSrc={imageSrc} imageSrc={imageSrc}
imageAlt="Empty Screen Filter image" imageAlt="Empty Screen Filter image"
headerText={ headerText={
!groupsIsFiltered ? t("No groups here yet") : t("Nothing found") !groupsIsFiltered
? t("Common:EmptyGroupsHeader")
: t("Common:NotFoundGroups")
} }
descriptionText={ descriptionText={
!groupsIsFiltered !groupsIsFiltered
? t("Please create the first group.") ? t("Common:EmptyGroupsDescription")
: t( : t("Common:NotFoundGroupsDescription")
"No groups match this filter. Try a different one or clear filter to view all files. ",
)
} }
buttons={ buttons={
<Grid gridColumnGap="8px" columnsProp={["12px 1fr"]}> <Grid gridColumnGap="8px" columnsProp={["12px 1fr"]}>
@ -92,7 +92,7 @@ const EmptyScreenGroups = ({
fontWeight="600" fontWeight="600"
onClick={onResetFilter} onClick={onResetFilter}
> >
{t("Reset filter")} {t("Common:ClearFilter")}
</Link> </Link>
</Box> </Box>
</> </>

View File

@ -133,6 +133,8 @@
"EmptyEmail": "No email address parsed", "EmptyEmail": "No email address parsed",
"EmptyFieldError": "Empty field", "EmptyFieldError": "Empty field",
"EmptyFilterDescriptionText": "No files or folders match this filter. Try a different one or clear filter to view all files. ", "EmptyFilterDescriptionText": "No files or folders match this filter. Try a different one or clear filter to view all files. ",
"EmptyGroupsHeader": "No groups here yet",
"EmptyGroupsDescription": "Please create the first group.",
"EmptyHeader": "No other accounts here yet", "EmptyHeader": "No other accounts here yet",
"EmptyRoomsDescription": "Please create the first room in My rooms.", "EmptyRoomsDescription": "Please create the first room in My rooms.",
"EmptyRoomsHeader": "No rooms here yet", "EmptyRoomsHeader": "No rooms here yet",
@ -255,6 +257,8 @@
"NewSpreadsheet": "New spreadsheet", "NewSpreadsheet": "New spreadsheet",
"NewVersionAvailable": "A new version of the website available", "NewVersionAvailable": "A new version of the website available",
"Next": "Next", "Next": "Next",
"NotFoundGroups": "No groups found",
"NotFoundGroupsDescription": "No groups match your search. Please adjust your search parameters or clear the search field to view the full list of groups.",
"NotFoundLanguage": "Can't find your language? Contact us at <1>{{supportEmail}}</1> to take part in the translation program and get rewards.", "NotFoundLanguage": "Can't find your language? Contact us at <1>{{supportEmail}}</1> to take part in the translation program and get rewards.",
"NotFoundTitle": "Nothing found", "NotFoundTitle": "Nothing found",
"NotFoundUsers": "No users found", "NotFoundUsers": "No users found",

View File

@ -120,6 +120,8 @@
"EmptyEmail": "Поле email пустое", "EmptyEmail": "Поле email пустое",
"EmptyFieldError": "Пустое поле", "EmptyFieldError": "Пустое поле",
"EmptyFilterDescriptionText": "В этом разделе нет файлов или папок, соответствующих фильтру. Пожалуйста, выберите другие параметры или очистите фильтр, чтобы показать все файлы в этом разделе.", "EmptyFilterDescriptionText": "В этом разделе нет файлов или папок, соответствующих фильтру. Пожалуйста, выберите другие параметры или очистите фильтр, чтобы показать все файлы в этом разделе.",
"EmptyGroupsHeader": "Здесь пока нет групп",
"EmptyGroupsDescription": "Пожалуйста, создайте первую группу",
"EmptyHeader": "Других аккаунтов здесь пока нет", "EmptyHeader": "Других аккаунтов здесь пока нет",
"EmptyRoomsDescription": "Пожалуйста, создайте первую комнату в Моих комнатах.", "EmptyRoomsDescription": "Пожалуйста, создайте первую комнату в Моих комнатах.",
"EmptyRoomsHeader": "Здесь пока нет комнат", "EmptyRoomsHeader": "Здесь пока нет комнат",
@ -226,6 +228,8 @@
"NewSpreadsheet": "Новая таблица", "NewSpreadsheet": "Новая таблица",
"NewVersionAvailable": "Доступна новая версия веб-сайта", "NewVersionAvailable": "Доступна новая версия веб-сайта",
"Next": "Следующая", "Next": "Следующая",
"NotFoundGroups": "Группы не найдены",
"NotFoundGroupsDescription": "Ни одна группа не соответствует параметрам вашего поиска. Пожалуйста, измените параметры поиска или очистите поле поиска, чтобы просмотреть полный список групп.",
"NotFoundLanguage": "Если Вы не можете найти свой язык в списке доступных, Вы всегда можете написать нам по адресу <1>{{supportEmail}}</1>, чтобы принять участие в переводе и получить до 1 года бесплатного использования.", "NotFoundLanguage": "Если Вы не можете найти свой язык в списке доступных, Вы всегда можете написать нам по адресу <1>{{supportEmail}}</1>, чтобы принять участие в переводе и получить до 1 года бесплатного использования.",
"NotFoundTitle": "Ничего не найдено", "NotFoundTitle": "Ничего не найдено",
"NotFoundUsers": "Пользователи не найдены", "NotFoundUsers": "Пользователи не найдены",