Rebranding: move PRODUCT_NAME to Common.json

This commit is contained in:
Alexey Safronov 2024-07-18 18:48:09 +04:00
parent c056f494ee
commit 292d420caa
158 changed files with 549 additions and 366 deletions

View File

@ -43054,6 +43054,138 @@
</translation>
</translations>
</concept_node>
<concept_node>
<name>ProductName</name>
<description/>
<comment/>
<default_text/>
<translations>
<translation>
<language>ar-SA</language>
<approved>false</approved>
</translation>
<translation>
<language>az-Latn-AZ</language>
<approved>false</approved>
</translation>
<translation>
<language>bg-BG</language>
<approved>false</approved>
</translation>
<translation>
<language>cs-CZ</language>
<approved>false</approved>
</translation>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>el-GR</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fi-FI</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>hy-AM</language>
<approved>false</approved>
</translation>
<translation>
<language>it-IT</language>
<approved>false</approved>
</translation>
<translation>
<language>ja-JP</language>
<approved>false</approved>
</translation>
<translation>
<language>ko-KR</language>
<approved>false</approved>
</translation>
<translation>
<language>lo-LA</language>
<approved>false</approved>
</translation>
<translation>
<language>lv-LV</language>
<approved>false</approved>
</translation>
<translation>
<language>nl-NL</language>
<approved>false</approved>
</translation>
<translation>
<language>pl-PL</language>
<approved>false</approved>
</translation>
<translation>
<language>pt-BR</language>
<approved>false</approved>
</translation>
<translation>
<language>pt-PT</language>
<approved>false</approved>
</translation>
<translation>
<language>ro-RO</language>
<approved>false</approved>
</translation>
<translation>
<language>ru-RU</language>
<approved>false</approved>
</translation>
<translation>
<language>si-SI</language>
<approved>false</approved>
</translation>
<translation>
<language>sk-SK</language>
<approved>false</approved>
</translation>
<translation>
<language>sl-SI</language>
<approved>false</approved>
</translation>
<translation>
<language>sr-Cyrl-RS</language>
<approved>false</approved>
</translation>
<translation>
<language>sr-Latn-RS</language>
<approved>false</approved>
</translation>
<translation>
<language>tr-TR</language>
<approved>false</approved>
</translation>
<translation>
<language>uk-UA</language>
<approved>false</approved>
</translation>
<translation>
<language>vi-VN</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CN</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>Profile</name>
<description/>

View File

@ -55,7 +55,6 @@ import IndicatorLoader from "./components/IndicatorLoader";
import ErrorBoundary from "./components/ErrorBoundaryWrapper";
import DialogsWrapper from "./components/dialogs/DialogsWrapper";
import useCreateFileError from "./Hooks/useCreateFileError";
import { PRODUCT_NAME } from "@docspace/shared/constants";
// import ReactSmartBanner from "./components/SmartBanner";
@ -256,7 +255,7 @@ const Shell = ({ items = [], page = "home", ...rest }) => {
headerText: t("Attention"),
text: `${t("BarMaintenanceDescription", {
targetDate: targetDate,
productName: `${t("Common:OrganizationName")} ${PRODUCT_NAME}`,
productName: `${t("Common:OrganizationName")} ${t("Common:ProductName")}`,
})} ${t("BarMaintenanceDisclaimer")}`,
isMaintenance: true,
onAction: () => {

View File

@ -70,7 +70,6 @@ import { resendInvitesAgain } from "@docspace/shared/api/people";
import { getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { ArticleButtonLoader } from "@docspace/shared/skeletons/article";
import { isMobile, isTablet } from "react-device-detect";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledButton = styled(Button)`
font-weight: 700;
@ -376,7 +375,7 @@ const ArticleMainButtonContent = (props) => {
id: "actions_upload-from-docspace",
className: "main-button_drop-down",
icon: ActionsUploadReactSvgUrl,
label: t("Common:FromPortal", { productName: PRODUCT_NAME }),
label: t("Common:FromPortal", { productName: t("Common:ProductName") }),
key: "actions_upload-from-docspace",
disabled: false,
onClick: () => onShowFormRoomSelectFileDialog(FilterType.PDFForm),
@ -624,7 +623,9 @@ const ArticleMainButtonContent = (props) => {
id: "invite_portal-administrator",
className: "main-button_drop-down",
icon: PersonAdminReactSvgUrl,
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
}),
onClick: onInvite,
action: EmployeeType.Admin,
key: "administrator",

View File

@ -61,7 +61,6 @@ import EmptyScreenArchiveUrl from "PUBLIC_DIR/images/empty_screen_archive.svg?ur
import EmptyScreenArchiveDarkUrl from "PUBLIC_DIR/images/empty_screen_archive_dark.svg?url";
import CommonButtons from "./sub-components/CommonButtons";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const RootFolderContainer = (props) => {
const {
@ -118,7 +117,7 @@ const RootFolderContainer = (props) => {
const archiveRoomsDescription =
isVisitor || isCollaborator
? t("ArchiveEmptyScreenUser")
: t("ArchiveEmptyScreen", { productName: PRODUCT_NAME });
: t("ArchiveEmptyScreen", { productName: t("Common:ProductName") });
const privateRoomHeader = t("PrivateRoomHeader", {
organizationName: t("Common:OrganizationName"),
@ -131,7 +130,9 @@ const RootFolderContainer = (props) => {
t("PrivateRoomDescriptionUnbreakable"),
];
const roomHeader = t("EmptyRootRoomHeader", { productName: PRODUCT_NAME });
const roomHeader = t("EmptyRootRoomHeader", {
productName: t("Common:ProductName"),
});
const onGoToPersonal = () => {
const newFilter = FilesFilter.getDefault();

View File

@ -47,7 +47,6 @@ import type { Nullable, TTranslation } from "@docspace/shared/types";
import type { TRoomSecurity } from "@docspace/shared/api/rooms/types";
import type { TFolderSecurity } from "@docspace/shared/api/files/types";
import type { EmptyViewItemType } from "@docspace/shared/components/empty-view";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import type {
ExtensiontionType,
@ -100,7 +99,7 @@ export const getDescription = (
)
.with([FolderType.FormRoom, null, P._], () =>
t("EmptyView:FormFolderDefaultDescription", {
portalName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
)
.otherwise(() => "");
@ -351,7 +350,7 @@ export const getOptions = (
const uploadPDFFromDocSpace = createUploadFromDocSpace(
t("EmptyView:UploadFromPortalTitle", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
t("EmptyView:UploadPDFFormOptionDescription"),
FilterType.PDFForm,
@ -359,7 +358,7 @@ export const getOptions = (
const uploadAllFromDocSpace = createUploadFromDocSpace(
t("EmptyView:UploadFromPortalTitle", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
t("EmptyView:UploadFromPortalDescription"),
// TODO: need fix selector

View File

@ -29,7 +29,7 @@ import {
TFolderSecurity,
} from "@docspace/shared/api/files/types";
import { TRoomSecurity } from "@docspace/shared/api/rooms/types";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { FilesSelectorFilterTypes } from "@docspace/shared/enums";
import { TTranslation } from "@docspace/shared/types";
@ -56,7 +56,9 @@ export const getHeaderLabel = (
}
if (isFormRoom) {
return t("Common:SelectFromPortal", { productName: PRODUCT_NAME });
return t("Common:SelectFromPortal", {
productName: t("Common:ProductName"),
});
}
if (filterParam === FilesSelectorFilterTypes.DOCX)

View File

@ -34,7 +34,6 @@ import { toastr } from "@docspace/shared/components/toast";
import { Link } from "@docspace/shared/components/link";
import { Text } from "@docspace/shared/components/text";
import { combineUrl } from "@docspace/shared/utils/combineUrl";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ChangeUserTypeEvent = ({
setVisible,
@ -137,7 +136,9 @@ const ChangeUserTypeEvent = ({
const getType = (type) => {
switch (type) {
case "admin":
return t("Common:PortalAdmin", { productName: PRODUCT_NAME });
return t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
});
case "manager":
return t("Common:RoomAdmin");
case "collaborator":

View File

@ -31,7 +31,6 @@ import styled from "styled-components";
import { SnackBar } from "@docspace/shared/components/snackbar";
import { Link } from "@docspace/shared/components/link";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ConfirmEmailBar = ({
t,
@ -47,7 +46,7 @@ const ConfirmEmailBar = ({
<SnackBar
headerText={t("ConfirmEmailHeader", {
email: userEmail,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
text={
<>

View File

@ -32,7 +32,6 @@ import { SnackBar } from "@docspace/shared/components/snackbar";
import { Link } from "@docspace/shared/components/link";
import { QuotaBarTypes } from "SRC_DIR/helpers/constants";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const QuotasBar = ({
t,
@ -61,7 +60,7 @@ const QuotasBar = ({
<Trans
i18nKey="StorageQuotaDescription"
t={t}
values={{ productName: PRODUCT_NAME }}
values={{ productName: t("Common:ProductName") }}
>
You can remove the unnecessary files or
<Link
@ -99,7 +98,7 @@ const QuotasBar = ({
t={t}
i18nKey="UserQuotaDescription"
values={{
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
clickHere: t("ClickHere"),
}}
components={{
@ -125,7 +124,7 @@ const QuotasBar = ({
<Trans
i18nKey="RoomQuotaDescription"
t={t}
values={{ productName: PRODUCT_NAME }}
values={{ productName: t("Common:ProductName") }}
>
You can archived the unnecessary rooms or
<Link

View File

@ -35,7 +35,6 @@ import { StyledBodyWrapper } from "./StyledComponents";
import { Aside } from "@docspace/shared/components/aside";
import { Backdrop } from "@docspace/shared/components/backdrop";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const RoomsSelectorInput = (props) => {
const {
@ -71,7 +70,7 @@ const RoomsSelectorInput = (props) => {
} = props;
const [isPanelVisible, setIsPanelVisible] = useState(false);
const BasePath = `${PRODUCT_NAME} / ${t("Common:Rooms")} `;
const BasePath = `${t("Common:ProductName")} / ${t("Common:Rooms")} `;
const [path, setPath] = useState("");
const handleOnSubmit = (rooms) => {

View File

@ -51,7 +51,7 @@ import {
StyledSelectedOwnerContainer,
StyledSelectedOwner,
} from "./StyledDialog";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { EmployeeActivationStatus } from "@docspace/shared/enums";
const ChangePortalOwnerDialog = ({
@ -116,11 +116,13 @@ const ChangePortalOwnerDialog = ({
t("DoTheSame"),
t("AppointAdmin"),
t("SetAccessRights"),
t("ManagePortal", { productName: PRODUCT_NAME }),
t("ManagePortal", { productName: t("Common:ProductName") }),
t("ManageUser"),
t("ChangePortalOwner:ChangeOwner", { productName: PRODUCT_NAME }),
t("BackupPortal", { productName: PRODUCT_NAME }),
t("DeactivateOrDeletePortal", { productName: PRODUCT_NAME }),
t("ChangePortalOwner:ChangeOwner", {
productName: t("Common:ProductName"),
}),
t("BackupPortal", { productName: t("Common:ProductName") }),
t("DeactivateOrDeletePortal", { productName: t("Common:ProductName") }),
];
const filter = React.useMemo(() => {
@ -183,10 +185,10 @@ const ChangePortalOwnerDialog = ({
<StyledPeopleSelectorInfo>
<Text className="new-owner" noSelect title={t("NewPortalOwner")}>
{t("NewPortalOwner", { productName: PRODUCT_NAME })}
{t("NewPortalOwner", { productName: t("Common:ProductName") })}
</Text>
<Text className="description" noSelect title={t("ChangeInstruction")}>
{t("ChangeInstruction", { productName: PRODUCT_NAME })}
{t("ChangeInstruction", { productName: t("Common:ProductName") })}
</Text>
</StyledPeopleSelectorInfo>
@ -228,7 +230,7 @@ const ChangePortalOwnerDialog = ({
<StyledAvailableList>
<Text className="list-header" noSelect title={t("PortalOwnerCan")}>
{t("PortalOwnerCan", { productName: PRODUCT_NAME })}
{t("PortalOwnerCan", { productName: t("Common:ProductName") })}
</Text>
{ownerRights?.map((item) => (

View File

@ -35,7 +35,6 @@ import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { inject, observer } from "mobx-react";
import { getConvertedSize } from "@docspace/shared/utils/common";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ModalDialogContainer = styled(ModalDialog)`
.cannot-downgrade-plan {
@ -73,7 +72,7 @@ const ChangePricingPlanDialog = ({
You wish to downgrade the team to
<strong>{{ usersCount: managersCount }}</strong>
admins/power users, and current number of such users in your
{{ productName: PRODUCT_NAME }} is
{{ productName: t("Common:ProductName") }} is
<strong>{{ currentUsersCount: addedManagersCount }}</strong>
</Trans>
</Text>

View File

@ -35,7 +35,6 @@ import { setTenantQuotaSettings } from "@docspace/shared/api/settings";
import QuotaForm from "../../../components/QuotaForm";
import StyledModalDialog from "./StyledComponent";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ChangeStorageQuotaDialog = (props) => {
const {
@ -125,8 +124,12 @@ const ChangeStorageQuotaDialog = (props) => {
<ModalDialog.Body>
<Text noSelect>
{isDisableQuota
? t("Common:TurnOffDiskSpaceLimit", { productName: PRODUCT_NAME })
: t("Common:SetDiskSpaceQuota", { productName: PRODUCT_NAME })}
? t("Common:TurnOffDiskSpaceLimit", {
productName: t("Common:ProductName"),
})
: t("Common:SetDiskSpaceQuota", {
productName: t("Common:ProductName"),
})}
</Text>
{!isDisableQuota && (
<QuotaForm

View File

@ -40,7 +40,6 @@ import { withTranslation } from "react-i18next";
import { EmployeeStatus } from "@docspace/shared/enums";
import ModalDialogContainer from "../ModalDialogContainer";
import { inject, observer } from "mobx-react";
import { PRODUCT_NAME } from "@docspace/shared/constants";
class ChangeUserStatusDialogComponent extends React.Component {
constructor(props) {
@ -132,8 +131,10 @@ class ChangeUserStatusDialogComponent extends React.Component {
header = onlyOneUser ? t("DisableUser") : t("DisableUsers");
bodyText = onlyOneUser
? t("DisableUserDescription", { productName: PRODUCT_NAME })
: t("DisableUsersDescription", { productName: PRODUCT_NAME });
? t("DisableUserDescription", { productName: t("Common:ProductName") })
: t("DisableUsersDescription", {
productName: t("Common:ProductName"),
});
bodyText = bodyText + t("DisableGeneralDescription");
@ -142,8 +143,8 @@ class ChangeUserStatusDialogComponent extends React.Component {
header = onlyOneUser ? t("EnableUser") : t("EnableUsers");
bodyText = onlyOneUser
? t("EnableUserDescription", { productName: PRODUCT_NAME })
: t("EnableUsersDescription", { productName: PRODUCT_NAME });
? t("EnableUserDescription", { productName: t("Common:ProductName") })
: t("EnableUsersDescription", { productName: t("Common:ProductName") });
buttonLabelSave = t("Common:Enable");
}

View File

@ -30,7 +30,6 @@ import { Text } from "@docspace/shared/components/text";
import { Button } from "@docspace/shared/components/button";
import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { withTranslation, Trans } from "react-i18next";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ChangeUserTypeDialog = ({
t,
@ -70,7 +69,9 @@ const ChangeUserTypeDialog = ({
type.
</Trans>
)}{" "}
{t("ChangeUserTypeMessageWarning", { productName: PRODUCT_NAME })}
{t("ChangeUserTypeMessageWarning", {
productName: t("Common:ProductName"),
})}
</Text>
</ModalDialog.Body>
<ModalDialog.Footer>

View File

@ -30,7 +30,6 @@ import styled from "styled-components";
import { ReactSVG } from "react-svg";
import { Base } from "@docspace/shared/themes";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledPrivacyLimitationsWarning = styled.div`
box-sizing: border-box;
@ -106,7 +105,7 @@ const PrivacyLimitationsWarning = ({ t }) => {
</div>
<div className="warning-description">
{t("MakeRoomPrivateLimitationsWarningDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</div>
<div className="warning-link">{t("Common:LearnMore")}</div>

View File

@ -37,7 +37,6 @@ import ThirdPartyComboBox from "./ThirdPartyComboBox";
import FolderInput from "./FolderInput";
import { getOAuthToken } from "@docspace/shared/utils/common";
import { Checkbox } from "@docspace/shared/components/checkbox";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledThirdPartyStorage = styled(StyledParam)`
flex-direction: column;
@ -89,7 +88,7 @@ const ThirdPartyStorage = ({
const data = isRoomAdmin ? (
<Text as="p">
{t("ThirdPartyStorageRoomAdminNoStorageAlert", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
) : (

View File

@ -32,7 +32,6 @@ import { Button } from "@docspace/shared/components/button";
import { Text } from "@docspace/shared/components/text";
import { toastr } from "@docspace/shared/components/toast";
import ModalDialogContainer from "../ModalDialogContainer";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DeleteGroupDialog = (props) => {
const {
@ -90,10 +89,10 @@ const DeleteGroupDialog = (props) => {
<Text>
{hasMoreGroups
? t("DeleteDialog:DeleteAllGroupDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})
: t("DeleteDialog:DeleteGroupDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
groupName,
})}
</Text>

View File

@ -33,7 +33,6 @@ import { Button } from "@docspace/shared/components/button";
import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { withTranslation } from "react-i18next";
import ModalDialogContainer from "../ModalDialogContainer";
import { PRODUCT_NAME } from "@docspace/shared/constants";
class DeleteOwnerProfileDialogComponent extends React.Component {
constructor(props) {
@ -59,7 +58,9 @@ class DeleteOwnerProfileDialogComponent extends React.Component {
<ModalDialog.Header>{t("DeleteProfileTitle")}</ModalDialog.Header>
<ModalDialog.Body>
<Text fontSize="13px">
{t("DeleteOwnerRestrictionText", { productName: PRODUCT_NAME })}
{t("DeleteOwnerRestrictionText", {
productName: t("Common:ProductName"),
})}
</Text>
</ModalDialog.Body>
<ModalDialog.Footer>

View File

@ -33,7 +33,6 @@ import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { Button } from "@docspace/shared/components/button";
import ModalDialogContainer from "../ModalDialogContainer";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DeletePluginDialog = (props) => {
const { t, ready } = useTranslation(["WebPlugins", "Common"]);
@ -63,7 +62,7 @@ const DeletePluginDialog = (props) => {
>
<ModalDialog.Header>{t("DeletePluginTitle")}</ModalDialog.Header>
<ModalDialog.Body>
{t("DeletePluginDescription", { productName: PRODUCT_NAME })}
{t("DeletePluginDescription", { productName: t("Common:ProductName") })}
</ModalDialog.Body>
<ModalDialog.Footer>
<Button

View File

@ -35,7 +35,6 @@ import { sendDeletePortalEmail } from "@docspace/shared/api/portal";
import ModalDialogContainer from "../ModalDialogContainer";
import { ColorTheme, ThemeId } from "@docspace/shared/components/color-theme";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DeletePortalDialog = (props) => {
const { t, ready } = useTranslation("Settings", "Common");
@ -61,7 +60,7 @@ const DeletePortalDialog = (props) => {
displayType="modal"
>
<ModalDialog.Header>
{t("DeletePortal", { productName: PRODUCT_NAME })}
{t("DeletePortal", { productName: t("Common:ProductName") })}
</ModalDialog.Header>
<ModalDialog.Body>
<Trans t={t} i18nKey="DeletePortalInfo" ns="Settings">

View File

@ -30,7 +30,6 @@ import { Trans } from "react-i18next";
import { Text } from "@docspace/shared/components/text";
import { Link } from "@docspace/shared/components/link";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const BodyComponent = (props) => {
const {
@ -74,11 +73,11 @@ const BodyComponent = (props) => {
return (
<>
<Text className="user-delete">
{t("ActionCannotBeUndone", { productName: PRODUCT_NAME })}
{t("ActionCannotBeUndone", { productName: t("Common:ProductName") })}
</Text>
<Text className="text-warning">{t("PleaseNote")}</Text>
<Text className="text-delete-description">
{t("DeletePersonalData", { productName: PRODUCT_NAME })}
{t("DeletePersonalData", { productName: t("Common:ProductName") })}
</Text>
<Text className="text-delete-description">
{t("CannotReassignFiles")}
@ -97,7 +96,7 @@ const BodyComponent = (props) => {
return (
<>
<Text className="user-delete">
{t("ActionCannotBeUndone", { productName: PRODUCT_NAME })}
{t("ActionCannotBeUndone", { productName: t("Common:ProductName") })}
</Text>
{!areUsersOnly && (
<>

View File

@ -31,7 +31,6 @@ import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { Text } from "@docspace/shared/components/text";
import { Button } from "@docspace/shared/components/button";
import ModalDialogContainer from "../ModalDialogContainer";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PortalRenamingDialog = (props) => {
const { t, ready } = useTranslation(["Settings", "Common"]);
@ -45,7 +44,7 @@ const PortalRenamingDialog = (props) => {
displayType="modal"
>
<ModalDialog.Header>
{t("Settings:PortalRenaming", { productName: PRODUCT_NAME })}
{t("Settings:PortalRenaming", { productName: t("Common:ProductName") })}
</ModalDialog.Header>
<ModalDialog.Body>
<Text fontSize="13px" fontWeight={400} noSelect>

View File

@ -30,7 +30,6 @@ import { withTranslation } from "react-i18next";
import { inject, observer } from "mobx-react";
import PreparationPortal from "@docspace/shared/pages/PreparationPortal";
import StyledPreparationPortalDialog from "./StyledPreparationPortalDialog";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PreparationPortalDialog = (props) => {
const { t, tReady, preparationPortalVisible, setVisible } = props;
@ -47,7 +46,7 @@ const PreparationPortalDialog = (props) => {
isLarge
>
<ModalDialog.Header>
{t("PortalRestoring", { productName: PRODUCT_NAME })}
{t("PortalRestoring", { productName: t("Common:ProductName") })}
</ModalDialog.Header>
<ModalDialog.Body>
<StyledPreparationPortalDialog>

View File

@ -61,7 +61,6 @@ import { TUser } from "@docspace/shared/api/people/types";
import { TGroup } from "@docspace/shared/api/groups/types";
import { MIN_LOADER_TIMER } from "@docspace/shared/selectors/Files/FilesSelector.constants";
import { TTranslation } from "@docspace/shared/types";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PEOPLE_TAB_ID = "0";
const GROUP_TAB_ID = "1";
@ -549,7 +548,9 @@ const AddUsersPanel = ({
}
emptyScreenDescription={
activeTabId === PEOPLE_TAB_ID
? t("Common:EmptyDescription", { productName: PRODUCT_NAME })
? t("Common:EmptyDescription", {
productName: t("Common:ProductName"),
})
: t("Common:GroupsNotFoundDescription")
}
searchEmptyScreenImage={emptyScreenImage}

View File

@ -34,7 +34,6 @@ import { withTranslation } from "react-i18next";
import Filter from "@docspace/shared/api/people/filter";
import { EmployeeType } from "@docspace/shared/enums";
import { Portal } from "@docspace/shared/components/portal";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledChangeRoomOwner = styled.div`
display: contents;
@ -157,11 +156,11 @@ const ChangeRoomOwner = (props) => {
disableDisabledUsers
withInfo
infoText={t("CreateEditRoomDialog:PeopleSelectorInfo", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
emptyScreenHeader={t("Common:NotFoundUsers")}
emptyScreenDescription={t("CreateEditRoomDialog:PeopleSelectorInfo", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
className="change-owner_people-selector"
/>

View File

@ -51,7 +51,7 @@ import {
ModalDialog,
ModalDialogType,
} from "@docspace/shared/components/modal-dialog";
import { PRODUCT_NAME, SDK_SCRIPT_URL } from "@docspace/shared/constants";
import { SDK_SCRIPT_URL } from "@docspace/shared/constants";
import CopyReactSvgUrl from "PUBLIC_DIR/images/copy.react.svg?url";
import HeaderUrl from "PUBLIC_DIR/images/sdk-presets_header.react.svg?url";
@ -432,7 +432,7 @@ const EmbeddingPanelComponent = (props: EmbeddingPanelProps) => {
</Trans>
) : (
t("EmbeddingPanel:EmbeddingBarDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})
)}
</Text>

View File

@ -49,7 +49,6 @@ import {
StyledToggleButton,
StyledDescription,
} from "../StyledInvitePanel";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ExternalLinks = ({
t,
@ -221,7 +220,9 @@ const ExternalLinks = ({
</StyledSubHeader>
<StyledDescription>
{roomId === -1
? t("InviteViaLinkDescriptionAccounts", { productName: PRODUCT_NAME })
? t("InviteViaLinkDescriptionAccounts", {
productName: t("Common:ProductName"),
})
: t("InviteViaLinkDescriptionRoom")}
</StyledDescription>
{externalLinksVisible && (

View File

@ -31,7 +31,6 @@ import InfoIcon from "PUBLIC_DIR/images/info.outline.react.svg?url";
import CrossReactSvg from "PUBLIC_DIR/images/cross.react.svg?url";
import { IconButton } from "@docspace/shared/components/icon-button";
import { Text } from "@docspace/shared/components/text";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledInfoBar = styled.div`
display: flex;
@ -96,7 +95,7 @@ const InfoBar = (props) => {
</Text>
</div>
<div className="body-container">
{t("InfoPanel:InfoBanner", { productName: PRODUCT_NAME })}
{t("InfoPanel:InfoBanner", { productName: t("Common:ProductName") })}
</div>
</div>

View File

@ -68,7 +68,6 @@ import {
import AtReactSvgUrl from "PUBLIC_DIR/images/@.react.svg?url";
import ArrowIcon from "PUBLIC_DIR/images/arrow.right.react.svg";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const minSearchValue = 2;
@ -447,8 +446,12 @@ const InviteInput = ({
</StyledSubHeader>
<StyledDescription>
{roomId === -1
? t("AddManuallyDescriptionAccounts", { productName: PRODUCT_NAME })
: t("AddManuallyDescriptionRoom", { productName: PRODUCT_NAME })}
? t("AddManuallyDescriptionAccounts", {
productName: t("Common:ProductName"),
})
: t("AddManuallyDescriptionRoom", {
productName: t("Common:ProductName"),
})}
</StyledDescription>
<StyledInviteLanguage>
<Text className="invitation-language">{t("InvitationLanguage")}:</Text>

View File

@ -24,7 +24,6 @@
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { PRODUCT_NAME } from "@docspace/shared/constants";
import {
ShareAccessRights,
RoomsType,
@ -44,9 +43,9 @@ export const getAccessOptions = (
const accesses = {
portalAdmin: {
key: "portalAdmin",
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
description: t("Translations:RolePortalAdminDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
...(!standalone && { quota: t("Common:Paid") }),
color: "#EDC409",

View File

@ -32,7 +32,6 @@ import { useTranslation } from "react-i18next";
import styled from "styled-components";
import { ColorTheme, ThemeId } from "@docspace/shared/components/color-theme";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledAboutBody = styled.div`
width: 100%;
@ -153,7 +152,7 @@ const AboutContent = (props) => {
target="_blank"
enableUserSelect
>
&nbsp;{t("Common:OrganizationName")} {PRODUCT_NAME}&nbsp;
&nbsp;{t("Common:OrganizationName")} {t("Common:ProductName")}&nbsp;
</ColorTheme>
<Text

View File

@ -31,7 +31,6 @@ import { IconButton } from "@docspace/shared/components/icon-button";
import { Text } from "@docspace/shared/components/text";
import ArrowIcon from "PUBLIC_DIR/images/arrow.left.react.svg?url";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DEFAULT_CREATION_TEXT =
"A {{productName}} account will be created for {{email}}. Please, complete your registration:";
@ -70,7 +69,7 @@ const GreetingUserContainer = ({
values={{
email,
}}
portalName={PRODUCT_NAME}
productName={t("Common:ProductName")}
components={{
1: <ColorTheme tag="a" themeId={ThemeId.Link} isHovered={false} />,
}}

View File

@ -42,7 +42,6 @@ import { toastr } from "@docspace/shared/components/toast";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { ownerChange } from "@docspace/shared/api/settings";
import { getUserFromConfirm } from "@docspace/shared/api/people";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ChangeOwnerForm = (props) => {
const { t, greetingTitle, linkData, history } = props;
@ -90,7 +89,7 @@ const ChangeOwnerForm = (props) => {
{isOwnerChanged ? (
<Text>
{t("ConfirmOwnerPortalSuccessMessage", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
) : (
@ -98,7 +97,7 @@ const ChangeOwnerForm = (props) => {
<Text className="subtitle">
{t("ConfirmOwnerPortalTitle", {
newOwner: newOwner,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
<ButtonsWrapper>

View File

@ -35,7 +35,6 @@ import { StyledPage, StyledBody, StyledContent } from "./StyledConfirm";
import withLoader from "../withLoader";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ChangePhoneForm = (props) => {
const { t, greetingTitle } = props;
@ -58,7 +57,9 @@ const ChangePhoneForm = (props) => {
<Text>
{t("CurrentNumber")}: {currentNumber}
</Text>
<Text>{t("PhoneSubtitle", { productName: PRODUCT_NAME })}</Text>
<Text>
{t("PhoneSubtitle", { productName: t("Common:ProductName") })}
</Text>
</div>
<TextInput

View File

@ -44,7 +44,6 @@ import withLoader from "../withLoader";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ContinuePortal = (props) => {
const { t, greetingTitle, linkData } = props;
@ -89,7 +88,9 @@ const ContinuePortal = (props) => {
) : (
<>
<Text className="subtitle">
{t("PortalContinueTitle", { productName: PRODUCT_NAME })}
{t("PortalContinueTitle", {
productName: t("Common:ProductName"),
})}
</Text>
<ButtonsWrapper>
<Button

View File

@ -55,7 +55,6 @@ import {
ALLOWED_PASSWORD_CHARACTERS,
COOKIE_EXPIRATION_YEAR,
LANGUAGE,
PRODUCT_NAME,
PROVIDERS_DATA,
} from "@docspace/shared/constants";
import { combineUrl } from "@docspace/shared/utils/combineUrl";
@ -511,7 +510,7 @@ const CreateUserForm = (props) => {
values={{
firstName: user.firstName,
lastName: user.lastName,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
...(roomName
? { roomName }
: { spaceAddress: window.location.host }),

View File

@ -44,7 +44,6 @@ import withLoader from "../withLoader";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DeactivatePortal = (props) => {
const { t, greetingTitle, linkData, companyInfoSettingsData } = props;
@ -93,7 +92,9 @@ const DeactivatePortal = (props) => {
) : (
<>
<Text className="subtitle">
{t("PortalDeactivateTitle", { productName: PRODUCT_NAME })}
{t("PortalDeactivateTitle", {
productName: t("Common:ProductName"),
})}
</Text>
<ButtonsWrapper>
<Button

View File

@ -37,7 +37,6 @@ import { StyledPage, StyledBody, StyledContent } from "./StyledConfirm";
import withLoader from "../withLoader";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ProfileRemoveForm = (props) => {
const { t, greetingTitle, linkData, legalTerms, currentColorScheme } = props;
@ -71,7 +70,7 @@ const ProfileRemoveForm = (props) => {
</Text>
<Text fontSize="16px" fontWeight="600" className="confirm-subtitle">
{t("DeleteProfileSuccessDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
<Trans
i18nKey="DeleteProfileSuccessMessageInfo"

View File

@ -45,7 +45,6 @@ import withLoader from "../withLoader";
import { FormWrapper } from "@docspace/shared/components/form-wrapper";
import PortalLogo from "@docspace/shared/components/portal-logo/PortalLogo";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const RemovePortal = (props) => {
const { t, greetingTitle, linkData, companyInfoSettingsData } = props;
@ -94,7 +93,9 @@ const RemovePortal = (props) => {
) : (
<>
<Text className="subtitle">
{t("PortalRemoveTitle", { productName: PRODUCT_NAME })}
{t("PortalRemoveTitle", {
productName: t("Common:ProductName"),
})}
</Text>
<ButtonsWrapper>
<Button

View File

@ -49,7 +49,6 @@ import {
} from "@docspace/shared/api/settings";
import { loginWithTfaCode } from "@docspace/shared/api/user";
import { combineUrl } from "@docspace/shared/utils/combineUrl";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledForm = styled(Box)`
margin: 56px auto;
@ -201,7 +200,7 @@ const TfaActivationForm = withLoader((props) => {
t={t}
i18nKey="SetAppDescription"
ns="Confirm"
portalName={PRODUCT_NAME}
productName={t("Common:ProductName")}
>
The two-factor authentication is enabled to provide additional
portal security. Configure your authenticator application to

View File

@ -38,7 +38,7 @@ import SpaceQuota from "SRC_DIR/components/SpaceQuota";
import { getUserStatus } from "SRC_DIR/helpers/people-helpers";
import { StyledAccountContent } from "../../styles/accounts";
import { getUserTypeLabel } from "@docspace/shared/utils/common";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { EmployeeStatus } from "@docspace/shared/enums";
const Accounts = (props) => {
@ -88,8 +88,8 @@ const Accounts = (props) => {
const adminOption = {
id: "info-account-type_portal-admin",
key: "admin",
title: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
title: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
action: "admin",
};
const managerOption = {

View File

@ -43,7 +43,6 @@ import { StyledUserTypeHeader } from "../../styles/members";
import { IconButton } from "@docspace/shared/components/icon-button";
import { Tooltip } from "@docspace/shared/components/tooltip";
import { Link } from "@docspace/shared/components/link";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const User = ({
t,
@ -289,8 +288,8 @@ const User = ({
const tooltipContent = `${
user.isOwner
? t("Common:PortalOwner", { productName: PRODUCT_NAME })
: t("Common:PortalAdmin", { productName: PRODUCT_NAME })
? t("Common:PortalOwner", { productName: t("Common:ProductName") })
: t("Common:PortalAdmin", { productName: t("Common:ProductName") })
}. ${t("Common:HasFullAccess")}`;
return user.isTitle ? (

View File

@ -35,7 +35,6 @@ import { getSpaceQuotaAsText } from "@docspace/shared/utils/common";
import Badges from "../../Badges";
import { tablet, mobile } from "@docspace/shared/utils";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledRowContent = styled(RowContent)`
@media ${tablet} {
@ -110,7 +109,7 @@ const UserContent = ({
role === "owner"
? t("Common:Owner")
: role === "admin"
? t("Common:PortalAdmin", { productName: PRODUCT_NAME })
? t("Common:PortalAdmin", { productName: t("Common:ProductName") })
: isCollaborator
? t("Common:PowerUser")
: isVisitor

View File

@ -40,7 +40,6 @@ import { Base } from "@docspace/shared/themes";
import { useNavigate } from "react-router-dom";
import SpaceQuota from "SRC_DIR/components/SpaceQuota";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledWrapper = styled.div`
display: contents;
@ -275,8 +274,8 @@ const InsideGroupTableRow = (props) => {
const adminOption = {
key: "admin",
title: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
title: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
action: "admin",
};
const managerOption = {
@ -354,7 +353,9 @@ const InsideGroupTableRow = (props) => {
case "owner":
return t("Common:Owner");
case "admin":
return t("Common:PortalAdmin", { productName: PRODUCT_NAME });
return t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
});
case "manager":
return t("Common:RoomAdmin");
case "collaborator":

View File

@ -34,7 +34,7 @@ import { Link } from "@docspace/shared/components/link";
import Badges from "../../Badges";
import { tablet, mobile } from "@docspace/shared/utils/device";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { getUserTypeName } from "@docspace/shared/utils/common";
const StyledRowContent = styled(RowContent)`

View File

@ -45,7 +45,6 @@ import { DropDown } from "@docspace/shared/components/drop-down";
import { useNavigate } from "react-router-dom";
import SpaceQuota from "SRC_DIR/components/SpaceQuota";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledWrapper = styled.div`
display: contents;
@ -272,8 +271,8 @@ const PeopleTableRow = (props) => {
const adminOption = {
key: "admin",
title: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
title: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
action: "admin",
};
const managerOption = {
@ -351,7 +350,9 @@ const PeopleTableRow = (props) => {
case "owner":
return t("Common:Owner");
case "admin":
return t("Common:PortalAdmin", { productName: PRODUCT_NAME });
return t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
});
case "manager":
return t("Common:RoomAdmin");
case "collaborator":

View File

@ -55,10 +55,7 @@ import {
RoomsProviderType,
RoomsType,
} from "@docspace/shared/enums";
import {
PRODUCT_NAME,
ROOMS_PROVIDER_TYPE_NAME,
} from "@docspace/shared/constants";
import { ROOMS_PROVIDER_TYPE_NAME } from "@docspace/shared/constants";
import { getRoomTypeName } from "SRC_DIR/helpers/filesUtils";
@ -808,7 +805,9 @@ const SectionFilterContent = ({
switch (+filter.role) {
case EmployeeType.Admin:
label = t("Common:PortalAdmin", { productName: PRODUCT_NAME });
label = t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
});
break;
case EmployeeType.User:
label = t("Common:RoomAdmin");
@ -1345,7 +1344,9 @@ const SectionFilterContent = ({
id: "filter_type-docspace-admin",
key: EmployeeType.Admin,
group: "filter-type",
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
}),
},
{
id: "filter_type-room-admin",

View File

@ -47,7 +47,6 @@ import {
import { ArticleItem } from "@docspace/shared/components/article-item";
import { ArticleFolderLoader } from "@docspace/shared/skeletons/article";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ArticleBodyContent = (props) => {
const {
@ -212,7 +211,7 @@ const ArticleBodyContent = (props) => {
case "ManagementCategorySecurity":
return t("ManagementCategorySecurity");
case "PortalAccess":
return t("PortalAccess", { productName: PRODUCT_NAME });
return t("PortalAccess", { productName: t("Common:ProductName") });
case "TwoFactorAuth":
return t("TwoFactorAuth");
case "ManagementCategoryIntegration":
@ -234,7 +233,7 @@ const ArticleBodyContent = (props) => {
case "RestoreBackup":
return t("RestoreBackup");
case "PortalDeletion":
return t("PortalDeletion", { productName: PRODUCT_NAME });
return t("PortalDeletion", { productName: t("Common:ProductName") });
case "Common:DeveloperTools":
return t("Common:DeveloperTools");
case "Common:Bonus":

View File

@ -29,7 +29,6 @@ import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { isManagement } from "@docspace/shared/utils/common";
import MobileCategoryWrapper from "../../../components/MobileCategoryWrapper";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledWrapper = styled.div`
display: flex;
@ -61,7 +60,7 @@ const MobileView = ({ isSettingPaid, showSettings }) => {
<MobileCategoryWrapper
title={t("CompanyInfoSettings")}
subtitle={t("BrandingSectionDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
url={`${baseUrl}/branding/company-info-settings`}
withPaidBadge={!isSettingPaid}

View File

@ -42,7 +42,6 @@ import { DeviceType } from "@docspace/shared/enums";
import withLoading from "SRC_DIR/HOCs/withLoading";
import LoaderAdditionalResources from "../sub-components/loaderAdditionalResources";
import { saveToSessionStorage, getFromSessionStorage } from "../../../utils";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const mobileCSS = css`
margin-top: 0px;
@ -278,7 +277,7 @@ const AdditionalResources = (props) => {
</div>
<div className="settings_unavailable additional-description">
{t("Settings:AdditionalResourcesDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</div>
<div className="branding-checkbox">

View File

@ -34,10 +34,7 @@ import { saveToSessionStorage, getFromSessionStorage } from "../../../utils";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
import { inject, observer } from "mobx-react";
import { DeviceType } from "@docspace/shared/enums";
import {
COOKIE_EXPIRATION_YEAR,
PRODUCT_NAME,
} from "@docspace/shared/constants";
import { COOKIE_EXPIRATION_YEAR } from "@docspace/shared/constants";
import { LANGUAGE } from "@docspace/shared/constants";
import { setCookie } from "@docspace/shared/utils/cookie";
import { useNavigate } from "react-router-dom";
@ -524,7 +521,9 @@ const LanguageAndTimeZone = (props) => {
)}
<div className="category-item-description">
<Text fontSize="13px" fontWeight={400}>
{t("TimeLanguageSettingsDescription", { productName: PRODUCT_NAME })}
{t("TimeLanguageSettingsDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Text>
<Trans t={t} i18nKey="TimeLanguageSettingsSave" />

View File

@ -42,7 +42,6 @@ import withLoading from "SRC_DIR/HOCs/withLoading";
import { PortalRenamingDialog } from "SRC_DIR/components/dialogs";
import { Text } from "@docspace/shared/components/text";
import { Link } from "@docspace/shared/components/link";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PortalRenaming = (props) => {
const {
@ -104,7 +103,9 @@ const PortalRenaming = (props) => {
const [isShowModal, setIsShowModal] = useState(false);
useEffect(() => {
setDocumentTitle(t("PortalRenaming", { productName: PRODUCT_NAME }));
setDocumentTitle(
t("PortalRenaming", { productName: t("Common:ProductName") }),
);
setPortalName(portalNameInitially);
const page = isMobileView ? "language-and-time-zone" : "general";
if (!isLoaded) initSettings(page).then(() => setIsLoaded(true));
@ -325,7 +326,7 @@ const PortalRenaming = (props) => {
{isCustomizationView && !isMobileView && (
<div className="category-item-heading">
<div className="category-item-title">
{t("PortalRenaming", { productName: PRODUCT_NAME })}
{t("PortalRenaming", { productName: t("Common:ProductName") })}
</div>
</div>
)}

View File

@ -43,7 +43,6 @@ import MobileView from "./Branding/MobileView";
import { UnavailableStyles } from "../../utils/commonSettingsStyles";
import { resetSessionStorage } from "../../utils";
import { DeviceType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledComponent = styled.div`
max-width: 700px;
@ -126,7 +125,7 @@ const Branding = ({
{isLoadedCompanyInfoSettingsData ? (
<div className="section-description settings_unavailable">
{t("Settings:BrandingSectionDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</div>
) : (

View File

@ -33,7 +33,6 @@ import PeopleIcon from "PUBLIC_DIR/images/catalog.accounts.react.svg";
import AccountsIcon from "PUBLIC_DIR/images/catalog.accounts.react.svg";
import DocumentsIcon from "PUBLIC_DIR/images/catalog.documents.react.svg";
import RoomsIcon from "PUBLIC_DIR/images/catalog.rooms.react.svg";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const Wrapper = styled.div`
display: flex;
@ -71,7 +70,7 @@ const ImportStep = ({
exportSection={{ sectionName: users, workspace: serviceName }}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: PeopleIcon,
}}
isDisabled
@ -87,7 +86,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: AccountsIcon,
}}
/>
@ -102,7 +101,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -117,7 +116,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -132,7 +131,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Rooms"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: RoomsIcon,
}}
/>

View File

@ -30,7 +30,6 @@ import { Consumer } from "@docspace/shared/utils/context";
import TableView from "./TableView";
import RowView from "./RowView";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const checkedAccountType = "result";
@ -45,7 +44,7 @@ const AccountsTable = ({
const typeOptions = [
{
key: UserTypes.PortalAdmin,
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
onClick: () => {
changeGroupType(UserTypes.PortalAdmin);
toggleAllAccounts(false, [], checkedAccountType);

View File

@ -45,7 +45,6 @@ import { Text } from "@docspace/shared/components/text";
import { Box } from "@docspace/shared/components/box";
import { HelpButton } from "@docspace/shared/components/help-button";
import { toastr } from "@docspace/shared/components/toast";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const STEP_LENGTH = 6;
@ -133,7 +132,7 @@ const GoogleWorkspace = ({
i18nKey="TypesAndPrivileges"
ns="Settings"
t={t}
values={{ productName: PRODUCT_NAME }}
values={{ productName: t("Common:ProductName") }}
components={{
1: <strong></strong>,
2: <strong></strong>,
@ -234,7 +233,7 @@ const GoogleWorkspace = ({
<GoogleWrapper>
<Text className="workspace-subtitle">
{t("Settings:AboutDataImport", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>

View File

@ -33,7 +33,6 @@ import PeopleIcon from "PUBLIC_DIR/images/catalog.accounts.react.svg";
import AccountsIcon from "PUBLIC_DIR/images/catalog.accounts.react.svg";
import DocumentsIcon from "PUBLIC_DIR/images/catalog.documents.react.svg";
import RoomsIcon from "PUBLIC_DIR/images/catalog.rooms.react.svg";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const SectionsWrapper = styled.div`
display: flex;
@ -72,7 +71,7 @@ const ImportStep = ({
exportSection={{ sectionName: users, workspace: serviceName }}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: PeopleIcon,
}}
isDisabled
@ -88,7 +87,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: AccountsIcon,
}}
/>
@ -103,7 +102,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -118,7 +117,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -133,7 +132,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Rooms"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: RoomsIcon,
}}
/>

View File

@ -30,7 +30,6 @@ import { Consumer } from "@docspace/shared/utils/context";
import TableView from "./TableView";
import RowView from "./RowView";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const checkedAccountType = "result";
@ -61,7 +60,7 @@ const AccountsTable = (props) => {
{
key: UserTypes.PortalAdmin,
label: t(`Common:PortalAdmin`, {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
onClick: setTypePortalAdmin,
},

View File

@ -36,7 +36,6 @@ import { HelpButton } from "@docspace/shared/components/help-button";
import { Text } from "@docspace/shared/components/text";
import { Trans } from "react-i18next";
import { PRODUCT_NAME } from "@docspace/shared/constants";
export const getStepsData = (
t,
@ -74,7 +73,7 @@ export const getStepsData = (
{
title: t("Settings:SelectUsersWithEmail"),
description: t("Settings:SelectUsersDescriptionNextcloud", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
}),
component: (
@ -88,7 +87,7 @@ export const getStepsData = (
{
title: t("Settings:AddEmails"),
description: t("Settings:AddEmailsDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
}),
component: (
@ -113,7 +112,7 @@ export const getStepsData = (
ns="Settings"
i18nKey="SelectUserTypesDescription"
values={{
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}}
components={{
1: <b />,
@ -129,7 +128,7 @@ export const getStepsData = (
i18nKey="TypesAndPrivileges"
ns="Settings"
t={t}
values={{ productName: PRODUCT_NAME }}
values={{ productName: t("Common:ProductName") }}
components={{
1: <b></b>,
2: <b></b>,
@ -159,7 +158,7 @@ export const getStepsData = (
{
title: t("Settings:DataImport"),
description: t("Settings:ImportSectionDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
}),
component: (
<ImportStep
@ -184,7 +183,7 @@ export const getStepsData = (
{
title: t("Settings:DataImportComplete"),
description: t("Settings:ImportCompleteDescriptionNextcloud", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
}),
component: (

View File

@ -38,7 +38,6 @@ import { toastr } from "@docspace/shared/components/toast";
import { getStepsData } from "./Stepper";
import BreakpointWarning from "SRC_DIR/components/BreakpointWarning";
import SelectFileLoader from "../sub-components/SelectFileLoader";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const NextcloudWrapper = styled.div`
max-width: 700px;
@ -153,7 +152,7 @@ const NextcloudWorkspace = (props) => {
color={theme.isBase ? "#657077" : "#ADADAD"}
>
{t("Settings:AboutDataImport", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>

View File

@ -36,7 +36,6 @@ import RoomsIcon from "PUBLIC_DIR/images/catalog.rooms.react.svg";
import PortfolioIcon from "PUBLIC_DIR/images/catalog.portfolio.react.svg";
import ProjectsIcon from "PUBLIC_DIR/images/catalog.projects.react.svg";
import DocumentsIcon from "PUBLIC_DIR/images/catalog.documents.react.svg";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const Wrapper = styled.div`
display: flex;
@ -79,7 +78,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: AccountsIcon,
}}
isDisabled
@ -95,7 +94,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Accounts"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: AccountsIcon,
}}
/>
@ -111,7 +110,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -127,7 +126,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Documents"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: DocumentsIcon,
}}
/>
@ -143,7 +142,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Rooms"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: RoomsIcon,
}}
/>
@ -153,7 +152,7 @@ const ImportStep = ({
sectionName={t("Common:CommonFiles")}
description={t("Settings:CommonFilesDescription", {
user: user.displayName,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
exportSection={{
sectionName: t("Common:Common"),
@ -162,7 +161,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Rooms"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: RoomsIcon,
}}
/>
@ -178,7 +177,7 @@ const ImportStep = ({
}}
importSection={{
sectionName: t("Common:Rooms"),
workspace: PRODUCT_NAME,
workspace: t("Common:ProductName"),
SectionIcon: RoomsIcon,
}}
/>

View File

@ -30,7 +30,6 @@ import { Consumer } from "@docspace/shared/utils/context";
import TableView from "./TableView";
import RowView from "./RowView";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const checkedAccountType = "result";
@ -45,7 +44,7 @@ const AccountsTable = ({
const typeOptions = [
{
key: UserTypes.PortalAdmin,
label: t("Common:PortalAdmin", { productName: PRODUCT_NAME }),
label: t("Common:PortalAdmin", { productName: t("Common:ProductName") }),
onClick: () => {
changeGroupType(UserTypes.PortalAdmin);
toggleAllAccounts(false, [], checkedAccountType);

View File

@ -44,7 +44,6 @@ import { Text } from "@docspace/shared/components/text";
import { Box } from "@docspace/shared/components/box";
import { HelpButton } from "@docspace/shared/components/help-button";
import { toastr } from "@docspace/shared/components/toast";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const STEP_LENGTH = 6;
@ -131,7 +130,7 @@ const OnlyofficeWorkspace = ({
i18nKey="TypesAndPrivileges"
ns="Settings"
t={t}
values={{ productName: PRODUCT_NAME }}
values={{ productName: t("Common:ProductName") }}
components={{
1: <strong></strong>,
2: <strong></strong>,
@ -232,7 +231,7 @@ const OnlyofficeWorkspace = ({
<WorkspaceWrapper>
<Text className="workspace-subtitle">
{t("Settings:AboutDataImport", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>

View File

@ -42,7 +42,7 @@ import GoogleWorkspaceDarkSvgUrl from "PUBLIC_DIR/images/dark.workspace.google.r
import NextcloudWorkspaceDarkSvgUrl from "PUBLIC_DIR/images/dark.workspace.nextcloud.react.svg?url";
import OnlyofficeWorkspaceDarkSvgUrl from "PUBLIC_DIR/images/dark.workspace.onlyoffice.react.svg?url";
import DataImportLoader from "./sub-components/DataImportLoader";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const DataImport = ({
@ -134,7 +134,7 @@ const DataImport = ({
<WorkspacesContainer>
<Text className="data-import-description">
{t("DataImportDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>

View File

@ -28,7 +28,6 @@ import styled from "styled-components";
import { HelpButton } from "@docspace/shared/components/help-button";
import { Text } from "@docspace/shared/components/text";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const Wrapper = styled.div`
margin: 16px 0;
@ -95,7 +94,9 @@ const UsersInfoBlock = ({
<Wrapper>
{totalUsedUsers > totalLicenceLimit && (
<Text className="license-limit-warning">
{t("Settings:UserLimitExceeded", { productName: PRODUCT_NAME })}
{t("Settings:UserLimitExceeded", {
productName: t("Common:ProductName"),
})}
</Text>
)}
@ -118,7 +119,7 @@ const UsersInfoBlock = ({
tooltipContent={
<Text fontSize="12px">
{t("Settings:LicenseLimitDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
maxLimit: totalLicenceLimit,
})}
</Text>

View File

@ -59,7 +59,6 @@ import { Link } from "@docspace/shared/components/link";
import { getSettingsThirdParty } from "@docspace/shared/api/files";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
import { isManagement } from "@docspace/shared/utils/common";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const { DocumentModuleType, ResourcesModuleType, StorageModuleType } =
BackupStorageType;
@ -470,7 +469,9 @@ class AutomaticBackup extends React.PureComponent {
<StyledAutoBackup isEnableAuto={isEnableAuto}>
<div className="backup_modules-header_wrapper">
<Text className="backup_modules-description settings_unavailable">
{t("AutoBackupDescription", { productName: PRODUCT_NAME })}
{t("AutoBackupDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Link
className="link-learn-more"

View File

@ -34,7 +34,6 @@ import { StyledScheduleComponent } from "../../StyledBackup";
import { AutoBackupPeriod } from "@docspace/shared/enums";
import { HelpButton } from "@docspace/shared/components/help-button";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const { EveryWeekType, EveryMonthType } = AutoBackupPeriod;
const ScheduleComponent = ({
@ -60,7 +59,7 @@ const ScheduleComponent = ({
const { t } = useTranslation("Settings");
const renderHelpContent = () => (
<Text className="schedule_description" fontSize="12px">
{t("AutoSavePeriodHelp", { productName: PRODUCT_NAME })}
{t("AutoSavePeriodHelp", { productName: t("Common:ProductName") })}
</Text>
);

View File

@ -47,7 +47,6 @@ import RoomsModule from "./sub-components/RoomsModule";
import ButtonContainer from "./sub-components/ButtonComponent";
import { StyledRestoreBackup } from "../StyledBackup";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const LOCAL_FILE = "localFile",
BACKUP_ROOM = "backupRoom",
@ -216,7 +215,9 @@ const RestoreBackup = (props) => {
className="restore-backup_warning-description settings_unavailable"
noSelect
>
{t("RestoreBackupWarningText", { productName: PRODUCT_NAME })}
{t("RestoreBackupWarningText", {
productName: t("Common:ProductName"),
})}
</Text>
{!standalone && (
<Text
@ -224,7 +225,7 @@ const RestoreBackup = (props) => {
noSelect
>
{t("RestoreBackupResetInfoWarningText", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
)}

View File

@ -50,7 +50,6 @@ import { StyledBackupList } from "../../../StyledBackup";
import BackupListBody from "./BackupListBody";
import { TenantStatus } from "@docspace/shared/enums";
import styled from "styled-components";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledModalDialog = styled(ModalDialog)`
.restore_footer {
@ -210,11 +209,13 @@ const BackupListModalDialog = (props) => {
const helpContent = () => (
<>
<Text className="restore-backup_warning-description">
{t("RestoreBackupWarningText", { productName: PRODUCT_NAME })}{" "}
{t("RestoreBackupWarningText", {
productName: t("Common:ProductName"),
})}{" "}
{!standalone && (
<Text as="span" className="restore-backup_warning-link">
{t("RestoreBackupResetInfoWarningText", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
)}

View File

@ -34,7 +34,6 @@ import PortalDeletionSection from "./portalDeletion";
import DeleteDataLoader from "./DeleteDataLoader";
import { combineUrl } from "@docspace/shared/utils/combineUrl";
import config from "../../../../../package.json";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const DeleteData = (props) => {
const { t, isNotPaidPeriod, tReady } = props;
@ -48,12 +47,12 @@ const DeleteData = (props) => {
const data = [
{
id: "deletion",
name: t("DeletePortal", { productName: PRODUCT_NAME }),
name: t("DeletePortal", { productName: t("Common:ProductName") }),
content: <PortalDeletionSection />,
},
{
id: "deactivation",
name: t("PortalDeactivation", { productName: PRODUCT_NAME }),
name: t("PortalDeactivation", { productName: t("Common:ProductName") }),
content: <PortalDeactivationSection />,
},
];

View File

@ -37,7 +37,6 @@ import { sendSuspendPortalEmail } from "@docspace/shared/api/portal";
import { isDesktop } from "@docspace/shared/utils";
import { EmployeeActivationStatus } from "@docspace/shared/enums";
import { showEmailActivationToast } from "SRC_DIR/helpers/people-helpers";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PortalDeactivation = (props) => {
const { t, getPortalOwner, owner, currentColorScheme, sendActivationLink } =
@ -49,7 +48,9 @@ const PortalDeactivation = (props) => {
};
useEffect(() => {
setDocumentTitle(t("PortalDeactivation", { productName: PRODUCT_NAME }));
setDocumentTitle(
t("PortalDeactivation", { productName: t("Common:ProductName") }),
);
fetchData();
onCheckView();
window.addEventListener("resize", onCheckView);
@ -85,7 +86,9 @@ const PortalDeactivation = (props) => {
{t("PortalDeactivationDescription")}
</Text>
<Text className="helper">
{t("PortalDeactivationHelper", { productName: PRODUCT_NAME })}
{t("PortalDeactivationHelper", {
productName: t("Common:ProductName"),
})}
</Text>
<ButtonWrapper>
<Button
@ -100,7 +103,7 @@ const PortalDeactivation = (props) => {
<Text fontSize="12px" fontWeight="600">
{t("MainBar:ConfirmEmailHeader", {
email: owner.email,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
<Link
className="request-again-link"

View File

@ -41,7 +41,6 @@ import {
import { isDesktop } from "@docspace/shared/utils";
import { EmployeeActivationStatus } from "@docspace/shared/enums";
import { showEmailActivationToast } from "SRC_DIR/helpers/people-helpers";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const PortalDeletion = (props) => {
const { t, getPortalOwner, owner, currentColorScheme, sendActivationLink } =
@ -57,7 +56,9 @@ const PortalDeletion = (props) => {
};
useEffect(() => {
setDocumentTitle(t("DeletePortal", { productName: PRODUCT_NAME }));
setDocumentTitle(
t("DeletePortal", { productName: t("Common:ProductName") }),
);
fetchData();
onCheckView();
window.addEventListener("resize", onCheckView);
@ -110,7 +111,7 @@ const PortalDeletion = (props) => {
<Text fontSize="12px" fontWeight="600">
{t("MainBar:ConfirmEmailHeader", {
email: owner.email,
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
<Link
className="request-again-link"

View File

@ -37,7 +37,7 @@ import ConfirmWrapper from "../../../../Confirm/ConfirmWrapper";
import ApiSvgUrl from "PUBLIC_DIR/images/settings.api.svg?url";
import ApiDarkSvgUrl from "PUBLIC_DIR/images/settings.api.dark.svg?url";
import { DeviceType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const EmptyContainer = styled(EmptyScreenContainer)`
@ -82,7 +82,7 @@ const Api = (props) => {
/>
}
descriptionText={t("ApiPageDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
headerText={t("ApiPageHeader")}

View File

@ -28,7 +28,7 @@ import React, { useEffect, useRef, useState } from "react";
import { withTranslation } from "react-i18next";
import styled, { css } from "styled-components";
import { useNavigate } from "react-router-dom";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { inject, observer } from "mobx-react";
import { mobile, tablet } from "@docspace/shared/utils/device";
@ -144,8 +144,10 @@ const PortalIntegration = (props) => {
const presetsData = [
{
title: PRODUCT_NAME,
description: t("PortalDescription", { productName: PRODUCT_NAME }),
title: t("Common:ProductName"),
description: t("PortalDescription", {
productName: t("Common:ProductName"),
}),
image: theme.isBase ? PortalImg : PortalImgDark,
handleOnClick: navigateToPortal,
},
@ -181,7 +183,9 @@ const PortalIntegration = (props) => {
},
{
title: t("Common:Custom"),
description: t("CustomDescription", { productName: PRODUCT_NAME }),
description: t("CustomDescription", {
productName: t("Common:ProductName"),
}),
image: theme.isBase ? CustomImg : CustomImgDark,
handleOnClick: navigateToCustom,
},
@ -208,7 +212,7 @@ const PortalIntegration = (props) => {
<SDKContainer>
<CategoryDescription>
<Text className="sdk-description">
{t("SDKDescription", { productName: PRODUCT_NAME })}
{t("SDKDescription", { productName: t("Common:ProductName") })}
</Text>
<Link
color={currentColorScheme?.main?.accent}
@ -222,7 +226,7 @@ const PortalIntegration = (props) => {
<CSP t={t} />
</CategoryDescription>
<CategoryHeader>
{t("SelectModeEmbedding", { productName: PRODUCT_NAME })}
{t("SelectModeEmbedding", { productName: t("Common:ProductName") })}
</CategoryHeader>
<Text lineHeight="20px" color={theme.sdkPresets.secondaryColor}>
{t("InitializeSDK")}

View File

@ -52,7 +52,7 @@ import {
Container,
ControlsSection,
} from "./StyledPresets";
import { PRODUCT_NAME, SDK_SCRIPT_URL } from "@docspace/shared/constants";
import { SDK_SCRIPT_URL } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const DocSpace = (props) => {
@ -114,8 +114,10 @@ const DocSpace = (props) => {
return (
<PresetWrapper
description={t("PortalDescription", { productName: PRODUCT_NAME })}
header={t("CreateSamplePortal", { productName: PRODUCT_NAME })}
description={t("PortalDescription", {
productName: t("Common:ProductName"),
})}
header={t("CreateSamplePortal", { productName: t("Common:ProductName") })}
>
<Container>
<PreviewBlock

View File

@ -89,7 +89,7 @@ import {
SelectedItemsContainer,
CheckboxGroup,
} from "./StyledPresets";
import { PRODUCT_NAME, SDK_SCRIPT_URL } from "@docspace/shared/constants";
import { SDK_SCRIPT_URL } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const Manager = (props) => {
@ -347,8 +347,10 @@ const Manager = (props) => {
return (
<PresetWrapper
description={t("CustomDescription", { productName: PRODUCT_NAME })}
header={t("CreateSamplePortal", { productName: PRODUCT_NAME })}
description={t("CustomDescription", {
productName: t("Common:ProductName"),
})}
header={t("CreateSamplePortal", { productName: t("Common:ProductName") })}
>
<Container>
<PreviewBlock
@ -505,7 +507,7 @@ const Manager = (props) => {
<TooltipContent
title={t("Header")}
description={t("HeaderDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
img={theme.isBase ? HeaderUrl : HeaderDarkUrl}
/>

View File

@ -29,7 +29,6 @@ import { Text } from "@docspace/shared/components/text";
import CodeBlock from "../sub-components/CodeBlock";
import { CategorySubHeader, CodeWrapper } from "../presets/StyledPresets";
import { PRODUCT_NAME } from "@docspace/shared/constants";
export const CodeToInsert = ({ t, theme, codeBlock, config }) => (
<CodeWrapper height="fit-content">
@ -37,14 +36,14 @@ export const CodeToInsert = ({ t, theme, codeBlock, config }) => (
{`HTML ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("HtmlCodeDescription", { productName: PRODUCT_NAME })}
{t("HtmlCodeDescription", { productName: t("Common:ProductName") })}
</Text>
<Textarea value={codeBlock} heightTextArea={153} />
<CategorySubHeader className="copy-window-code">
{`JavaScript ${t("CodeTitle")}`}
</CategorySubHeader>
<Text lineHeight="20px" color={theme.isBase ? "#657077" : "#ADADAD"}>
{t("JavaScriptCodeDescription", { productName: PRODUCT_NAME })}
{t("JavaScriptCodeDescription", { productName: t("Common:ProductName") })}
</Text>
<CodeBlock config={config} />
</CodeWrapper>

View File

@ -40,7 +40,6 @@ import {
ControlsSection,
RowContainer,
} from "../presets/StyledPresets";
import { PRODUCT_NAME } from "@docspace/shared/constants";
export const MainElementParameter = ({
t,
@ -126,7 +125,9 @@ export const MainElementParameter = ({
<TextInput
scale
onChange={setButtonText}
placeholder={t("SelectToPortal", { productName: PRODUCT_NAME })}
placeholder={t("SelectToPortal", {
productName: t("Common:ProductName"),
})}
value={buttonValue}
tabIndex={3}
/>

View File

@ -39,7 +39,6 @@ import { SelectorAddButton } from "@docspace/shared/components/selector-add-butt
import { SelectedItem } from "@docspace/shared/components/selected-item";
import { tablet } from "@docspace/shared/utils";
import Base from "@docspace/shared/themes/base";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const CategoryHeader = styled.div`
margin-top: 24px;
@ -205,10 +204,10 @@ const CSP = ({
return (
<>
<CategoryHeader>
{t("CSPHeader", { productName: PRODUCT_NAME })}
{t("CSPHeader", { productName: t("Common:ProductName") })}
</CategoryHeader>
<Container className="description-holder">
{t("CSPDescription", { productName: PRODUCT_NAME })}
{t("CSPDescription", { productName: t("Common:ProductName") })}
<HelpButton
className="csp-helpbutton"
offsetRight={0}
@ -232,7 +231,9 @@ const CSP = ({
</Text>
</div>
<div className="body-container">
{t("CSPInfoBarDescription", { productName: PRODUCT_NAME })}{" "}
{t("CSPInfoBarDescription", {
productName: t("Common:ProductName"),
})}{" "}
<Link
color={currentColorScheme?.main?.accent}
fontSize="13px"
@ -259,7 +260,9 @@ const CSP = ({
lineHeight="20px"
color={error ? theme?.input.focusErrorBorderColor : "#A3A9AE"}
>
{error ? error : t("CSPUrlHelp", { productName: PRODUCT_NAME })}
{error
? error
: t("CSPUrlHelp", { productName: t("Common:ProductName") })}
</Text>
<ChipsContainer>{getChips(cspDomains)}</ChipsContainer>
</>

View File

@ -31,7 +31,6 @@ import { useTranslation } from "react-i18next";
import { Text } from "@docspace/shared/components/text";
import { Button } from "@docspace/shared/components/button";
import { RectangleSkeleton } from "@docspace/shared/skeletons";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import GithubLight from "PUBLIC_DIR/images/github.light.react.svg";
import GithubDark from "PUBLIC_DIR/images/github.dark.react.svg";
@ -127,7 +126,7 @@ const PluginSDK = ({
fontWeight={400}
lineHeight={"20px"}
>
{t("PluginSDKInstruction", { productName: PRODUCT_NAME })}
{t("PluginSDKInstruction", { productName: t("Common:ProductName") })}
</Text>
<Button
className={"read-instructions-button"}

View File

@ -34,7 +34,6 @@ import { SSLVerification } from "./SSLVerification";
import SecretKeyInput from "./SecretKeyInput";
import { useTranslation } from "react-i18next";
import { toastr } from "@docspace/shared/components/toast";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const ModalDialogContainer = styled(ModalDialog)`
.modal-body {
@ -207,7 +206,9 @@ const WebhookDialog = (props) => {
<StyledWebhookForm onSubmit={onFormSubmit}>
{!isSettingsModal && (
<Hint>
{t("WebhookCreationHint", { productName: PRODUCT_NAME })}
{t("WebhookCreationHint", {
productName: t("Common:ProductName"),
})}
</Hint>
)}
<LabledInput

View File

@ -32,7 +32,6 @@ import { Base } from "@docspace/shared/themes";
import { Link } from "@docspace/shared/components/link";
import { Text } from "@docspace/shared/components/text";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { useTranslation } from "react-i18next";
@ -67,7 +66,7 @@ const WebhookInfo = (props) => {
<InfoWrapper>
<InfoText as="p">
{t("WebhooksInfo", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</InfoText>

View File

@ -38,7 +38,6 @@ import { toastr } from "@docspace/shared/components/toast";
import { SettingsDSConnectSkeleton } from "@docspace/shared/skeletons/settings";
import { DeviceType } from "@docspace/shared/enums";
import { SaveCancelButtons } from "@docspace/shared/components/save-cancel-buttons";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const URL_REGEX = /^https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\/?$/;
const DNS_PLACEHOLDER = `${window.location.protocol}//<docspace-dns-name>/`;
@ -218,7 +217,7 @@ const DocumentService = ({
<Label
htmlFor="internalAdress"
text={t("Settings:DocumentServiceLocationUrlInternal", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
/>
<InputBlock
@ -244,7 +243,7 @@ const DocumentService = ({
<Label
htmlFor="portalAdress"
text={t("Settings:DocumentServiceLocationUrlPortal", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
/>
<InputBlock

View File

@ -35,7 +35,7 @@ import { HelpButton } from "@docspace/shared/components/help-button";
import { FieldContainer } from "@docspace/shared/components/field-container";
//import { ComboBox } from "@docspace/shared/components/combobox";
// import { EmployeeType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import AccessSelector from "SRC_DIR/components/AccessSelector";
import { isMobile } from "@docspace/shared/utils";
import LdapFieldComponent from "./LdapFieldComponent";
@ -220,7 +220,7 @@ const AttributeMapping = (props) => {
</Text>
<HelpButton
tooltipContent={t("LdapUserTypeTooltip", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
/>
</Box>

View File

@ -31,7 +31,7 @@ import { ToggleButton } from "@docspace/shared/components/toggle-button";
import { HelpButton } from "@docspace/shared/components/help-button";
import { Box } from "@docspace/shared/components/box";
import { FieldContainer } from "@docspace/shared/components/field-container";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import LdapFieldComponent from "./LdapFieldComponent";
const FIELD_STYLE = { marginBottom: "0px" };
@ -98,7 +98,7 @@ const GroupMembership = (props) => {
/>
<HelpButton
tooltipContent={t("LdapGroupMembershipTooltip", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
/>
</div>

View File

@ -31,7 +31,6 @@ import { Box } from "@docspace/shared/components/box";
import { Text } from "@docspace/shared/components/text";
import { ToggleButton } from "@docspace/shared/components/toggle-button";
import { Badge } from "@docspace/shared/components/badge";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const borderProp = { radius: "6px" };
@ -101,7 +100,9 @@ const ToggleLDAP = ({
className="settings_unavailable"
noSelect
>
{t("LdapToggleDescription", { productName: PRODUCT_NAME })}
{t("LdapToggleDescription", {
productName: t("Common:ProductName"),
})}
</Text>
</div>
</Box>

View File

@ -30,7 +30,6 @@ import { useTranslation } from "react-i18next";
import { Text } from "@docspace/shared/components/text";
import { SettingsStore } from "@docspace/shared/store/SettingsStore";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
import PluginStore from "SRC_DIR/store/PluginStore";
@ -103,7 +102,9 @@ const PluginPage = ({
/> */}
{withUpload && (
<>
<Text>{t("UploadDescription", { productName: PRODUCT_NAME })}</Text>
<Text>
{t("UploadDescription", { productName: t("Common:ProductName") })}
</Text>
<Dropzone
onDrop={onDrop}
isDisabled={!withUpload}

View File

@ -27,7 +27,6 @@
import React from "react";
import styled from "styled-components";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { Text } from "@docspace/shared/components/text";
import EmptyScreenPluginsUrl from "PUBLIC_DIR/images/empty_screen_plugins.svg?url";
@ -54,7 +53,8 @@ const EmptyScreen = ({ t, theme, withUpload, onDrop }: PluginsEmptyScreen) => {
headerText={t("NoPlugins")}
descriptionText={
<Text>
{withUpload && t("UploadDescription", { productName: PRODUCT_NAME })}
{withUpload &&
t("UploadDescription", { productName: t("Common:ProductName") })}
</Text>
}
style={{ gridColumnGap: "39px" }}

View File

@ -28,8 +28,6 @@ import styled from "styled-components";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import MobileCategoryWrapper from "../../../components/MobileCategoryWrapper";
const StyledWrapper = styled.div`
@ -65,7 +63,7 @@ const MobileView = ({ isSSOAvailable }) => {
organizationName: t("Common:OrganizationName"),
})}
subtitle={t("SpMetadataDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
url="/portal-settings/integration/sso/metadata"

View File

@ -47,7 +47,7 @@ import ConsumerItem from "./sub-components/consumerItem";
import ConsumerModalDialog from "./sub-components/consumerModalDialog";
import ThirdPartyLoader from "./sub-components/thirdPartyLoader";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
const RootContainer = styled(Box)`
@ -254,7 +254,7 @@ class ThirdPartyServices extends React.Component {
/>
<Text>
{t("IntegrationRequest", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>

View File

@ -34,7 +34,6 @@ import { HelpButton } from "@docspace/shared/components/help-button";
import { Avatar } from "@docspace/shared/components/avatar";
import { ColorTheme, ThemeId } from "@docspace/shared/components/color-theme";
import DefaultUserPhoto from "PUBLIC_DIR/images/default_user_photo_size_82-82.png";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledContainer = styled.div`
display: flex;
@ -127,7 +126,9 @@ const PayerInformationContainer = ({
tooltipContent={
<>
<Text isBold>{t("Payer")}</Text>
<Text>{t("PayerDescription", { productName: PRODUCT_NAME })}</Text>
<Text>
{t("PayerDescription", { productName: t("Common:ProductName") })}
</Text>
</>
}
/>
@ -137,18 +138,20 @@ const PayerInformationContainer = ({
const userNotFound = t("UserNotFoundMatchingEmail") + " ";
let invalidEmailDescription = user.isOwner
? t("InvalidEmailWithActiveSubscription", { productName: PRODUCT_NAME })
? t("InvalidEmailWithActiveSubscription", {
productName: t("Common:ProductName"),
})
: t("InvalidEmailWithActiveSubscriptionForAdmin", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
});
if (isNotPaidPeriod || isFreeAfterPaidPeriod) {
invalidEmailDescription = user.isOwner
? t("InvalidEmailWithoutActiveSubscription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})
: t("InvalidEmailWithoutActiveSubscriptionByAdmin", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
});
return userNotFound + invalidEmailDescription;

View File

@ -40,7 +40,6 @@ import PriceCalculation from "./PriceCalculation";
import BenefitsContainer from "./BenefitsContainer";
import ContactContainer from "./ContactContainer";
import PayerInformationContainer from "./PayerInformationContainer";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const StyledBody = styled.div`
max-width: 660px;
@ -148,10 +147,14 @@ const PaymentContainer = (props) => {
<Text isBold>{t("ManagerTypesDescription")}</Text>
<br />
<Text isBold>
{t("Common:PortalAdmin", { productName: PRODUCT_NAME })}
{t("Common:PortalAdmin", {
productName: t("Common:ProductName"),
})}
</Text>
<Text>
{t("AdministratorDescription", { productName: PRODUCT_NAME })}
{t("AdministratorDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<br />
<Text isBold>{t("Common:RoomAdmin")}</Text>
@ -286,7 +289,7 @@ const PaymentContainer = (props) => {
</Trans>{" "}
<Text as="span" fontSize="14px" lineHeight="16px">
{t("GracePeriodActivatedDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
</Text>
</Text>

View File

@ -30,7 +30,7 @@ import { useTranslation } from "react-i18next";
import { Text } from "@docspace/shared/components/text";
import { StyledTitleComponent } from "../StyledComponent";
import { PRODUCT_NAME } from "@docspace/shared/constants";
import { getTwoDotsReplacing } from "../../utils";
const TariffTitleContainer = ({
@ -95,7 +95,7 @@ const TariffTitleContainer = ({
<div className="title">
<Text fontWeight={600} fontSize="14px" as="span">
{t("ActivateTariffDescr", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
organizationName: t("Common:OrganizationName"),
})}
</Text>{" "}

View File

@ -41,7 +41,6 @@ import isEqual from "lodash/isEqual";
import AdmMsgLoader from "../sub-components/loaders/admmsg-loader";
import { DeviceType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const MainContainer = styled.div`
width: 100%;
@ -176,7 +175,9 @@ const AdminMessage = (props) => {
<MainContainer>
<LearnMoreWrapper>
<Text>
{t("AdminsMessageSettingDescription", { productName: PRODUCT_NAME })}
{t("AdminsMessageSettingDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Text fontSize="13px" fontWeight="400" className="learn-subtitle">
<Trans t={t} i18nKey="SaveToApply" />

View File

@ -42,7 +42,6 @@ import { size } from "@docspace/shared/utils";
import { inject, observer } from "mobx-react";
import { Link } from "@docspace/shared/components/link";
import { DeviceType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const AccessPortal = (props) => {
const {
@ -58,7 +57,9 @@ const AccessPortal = (props) => {
} = props;
useEffect(() => {
setDocumentTitle(t("PortalAccess", { productName: PRODUCT_NAME }));
setDocumentTitle(
t("PortalAccess", { productName: t("Common:ProductName") }),
);
}, []);
if (isMobileView) return <MobileView />;
@ -96,7 +97,9 @@ const AccessPortal = (props) => {
<div className="category-item-description">
<Text fontSize="13px" fontWeight="400">
{t("TwoFactorAuthEnableDescription", { productName: PRODUCT_NAME })}
{t("TwoFactorAuthEnableDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Text fontSize="13px" fontWeight="400">
<Trans t={t} i18nKey="TwoFactorAuthSave" />
@ -174,7 +177,9 @@ const AccessPortal = (props) => {
</Text>
<div className="category-item-description">
<Text fontSize="13px" fontWeight="400">
{t("AdminsMessageSettingDescription", { productName: PRODUCT_NAME })}
{t("AdminsMessageSettingDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Text fontSize="13px" fontWeight="400">
<Trans t={t} i18nKey="SaveToApply" />

View File

@ -30,7 +30,6 @@ import { Trans, withTranslation } from "react-i18next";
import { setDocumentTitle } from "SRC_DIR/helpers/utils";
import { MainContainer } from "../StyledSecurity";
import MobileCategoryWrapper from "../../../components/MobileCategoryWrapper";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const MobileView = (props) => {
const { t } = props;
@ -38,7 +37,9 @@ const MobileView = (props) => {
const navigate = useNavigate();
useEffect(() => {
setDocumentTitle(t("PortalAccess", { productName: PRODUCT_NAME }));
setDocumentTitle(
t("PortalAccess", { productName: t("Common:ProductName") }),
);
}, []);
const onClickLink = (e) => {
@ -101,7 +102,7 @@ const MobileView = (props) => {
<MobileCategoryWrapper
title={t("SessionLifetime")}
subtitle={t("SessionLifetimeMobileDescription", {
productName: PRODUCT_NAME,
productName: t("Common:ProductName"),
})}
url="/portal-settings/security/access-portal/lifetime"
onClickLink={onClickLink}

View File

@ -41,7 +41,6 @@ import { SaveCancelButtons } from "@docspace/shared/components/save-cancel-butto
import TfaLoader from "../sub-components/loaders/tfa-loader";
import { DeviceType } from "@docspace/shared/enums";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const MainContainer = styled.div`
width: 100%;
@ -175,7 +174,9 @@ const TwoFactorAuth = (props) => {
<MainContainer>
<LearnMoreWrapper>
<Text fontSize="13px" fontWeight="400">
{t("TwoFactorAuthEnableDescription", { productName: PRODUCT_NAME })}
{t("TwoFactorAuthEnableDescription", {
productName: t("Common:ProductName"),
})}
</Text>
<Link
className="link-learn-more"

View File

@ -32,7 +32,6 @@ import { Consumer } from "@docspace/shared/utils";
import { Table } from "./TableView/TableView";
import AuditRowContainer from "./RowView/AuditRowContainer";
import HistoryMainContent from "../sub-components/HistoryMainContent";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const AuditTrail = (props) => {
const {
@ -89,7 +88,9 @@ const AuditTrail = (props) => {
{securityLifetime && securityLifetime.auditTrailLifeTime && (
<HistoryMainContent
t={t}
subHeader={t("AuditSubheader", { productName: PRODUCT_NAME })}
subHeader={t("AuditSubheader", {
productName: t("Common:ProductName"),
})}
latestText={t("LoginLatestText")}
storagePeriod={t("StoragePeriod")}
saveButtonLabel={t("Common:SaveButton")}

View File

@ -41,7 +41,6 @@ import AuditTrail from "./audit-trail/index.js";
import { resetSessionStorage } from "../../utils";
import { DeviceType } from "@docspace/shared/enums";
import { SECTION_HEADER_HEIGHT } from "@docspace/shared/components/section/Section.constants";
import { PRODUCT_NAME } from "@docspace/shared/constants";
const SecurityWrapper = (props) => {
const { t, loadBaseInfo, resetIsInit, currentDeviceType } = props;
@ -53,7 +52,7 @@ const SecurityWrapper = (props) => {
const data = [
{
id: "access-portal",
name: t("PortalAccess", { productName: PRODUCT_NAME }),
name: t("PortalAccess", { productName: t("Common:ProductName") }),
content: <AccessPortal />,
},
{

Some files were not shown because too many files have changed in this diff Show More