Fix translation issues

This commit is contained in:
Timofey Boyko 2024-02-26 12:06:12 +03:00
parent 271b4fb63e
commit 11da227257
5 changed files with 14 additions and 14 deletions

View File

@ -1,20 +1,15 @@
{
"AddGroupsForSharingButton": "Add groups",
"AddShareMessage": "Add message",
"AnyoneWithLink": "Anyone with the link",
"Comment": "Comment",
"CopyExternalLink": "Copy external link",
"CustomFilter": "Custom filter",
"DenyAccess": "Deny access",
"DoсSpaceUsersOnly": "DoсSpace users only",
"Editing": "Editing",
"EncryptedFileSharing": "File <strong>{{title}}</strong> successfully shared",
"ExternalLink": "External link",
"FormFilling": "Form filling",
"GeneralAccessLinkCreated": "General link for public viewing successfully created and copied to clipboard",
"InternalLink": "Internal link",
"LinkExpireAfter": "The link will expire after <1>{{date}}</1>",
"LinkIsValid": "The link is valid for <1>{{date}}</1>",
"LinkName": "Link name",
"Notify users": "Notify users",
"ReadOnly": "Read only",

View File

@ -52,7 +52,7 @@ export const getAccessOptions = (
available.Read && {
access: ShareAccessRights.ReadOnly,
key: "viewing",
label: t("ReadOnly"),
label: t("Common:ReadOnly"),
icon: EyeReactSvgUrl,
},
available.Restrict && {

View File

@ -195,14 +195,14 @@ const Share = (props: ShareProps) => {
if (item.access === ShareAccessRights.None) {
deleteLink(link.sharedTo.id);
if (link.sharedTo.primary) {
toastr.success(t("GeneralAccessLinkRemove"));
toastr.success(t("Common:GeneralAccessLinkRemove"));
} else {
toastr.success(t("AdditionalLinkRemove"));
toastr.success(t("Common:AdditionalLinkRemove"));
}
} else {
updateLink(link, res);
if (item.access === ShareAccessRights.DenyAccess) {
toastr.success(t("LinkAccessDenied"));
toastr.success(t("Common:LinkAccessDenied"));
} else {
copy(link.sharedTo.shareLink);
toastr.success(t("Common:LinkSuccessfullyCopied"));
@ -254,8 +254,8 @@ const Share = (props: ShareProps) => {
return (
<div>
<PublicRoomBar
headerText={t("ShareDocument")}
bodyText={t("ShareDocumentDescription")}
headerText={t("Common:ShareDocument")}
bodyText={t("Common:ShareDocumentDescription")}
iconName={InfoIcon}
/>
{isLoading ? (

View File

@ -106,7 +106,7 @@ const ExpiredComboBox = ({
const date = `${dateObj?.date} ${dateObj?.label}`;
return (
<Trans t={t} i18nKey="LinkExpireAfter" ns="SharingPanel">
<Trans t={t} i18nKey="LinkExpireAfter" ns="Common">
The link will expire after
<LinkWithDropdown
className="expired-options"
@ -116,7 +116,7 @@ const ExpiredComboBox = ({
fontSize="12px"
fontWeight={400}
isDisabled={isDisabled}
directionY={"both"}
directionY="both"
>
{{ date }}
</LinkWithDropdown>
@ -126,7 +126,7 @@ const ExpiredComboBox = ({
const date = t("Common:Unlimited");
return (
<Trans t={t} i18nKey="LinkIsValid" ns="SharingPanel">
<Trans t={t} i18nKey="LinkIsValid" ns="Common">
The link is valid for
<LinkWithDropdown
className="expired-options"

View File

@ -14,6 +14,7 @@
"Address": "Address",
"AddUsers": "Add users",
"AdvancedFilter": "Search options",
"AnyoneWithLink": "Anyone with the link",
"Alert": "Alert",
"AllAccounts": "All accounts",
"And": "and",
@ -96,6 +97,7 @@
"Culture_zh-CN": "中文(简体,中国)",
"Custom": "Custom",
"CustomQuota": "Custom quota",
"DoсSpaceUsersOnly": "DoсSpace users only",
"Date": "Date",
"Day": "day",
"DayOfTheMonth": "Day of the month",
@ -121,6 +123,7 @@
"DropzoneTitleSecondary": "or drop file here",
"Duplicate": "Duplicate",
"EditButton": "Edit",
"Editing": "Editing",
"Email": "Email",
"EmptyDescription": "The list of users previously invited to DocSpace or separate rooms will appear here. You will be able to invite these users for collaboration at any time.",
"EmptyEmail": "No email address parsed",
@ -208,6 +211,8 @@
"LiveChat": "Live chat",
"LiveChatOff": "Live chat was successfully disconnected",
"LiveChatOn": "Live chat was successfully connected",
"LinkIsValid": "The link is valid for <1>{{date}}</1>",
"LinkExpireAfter": "The link will expire after <1>{{date}}</1>",
"Load": "Load",
"LoadingDescription": "Please wait...",
"LoadingProcessing": "Loading...",