From 292d420caac31688bf84ff9b6dee82fafdc55fee Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Thu, 18 Jul 2024 18:48:09 +0400 Subject: [PATCH] Rebranding: move PRODUCT_NAME to Common.json --- i18next/common.babel | 132 ++++++++++++++++++ packages/client/src/Shell.jsx | 3 +- .../components/Article/MainButton/index.js | 7 +- .../EmptyContainer/RootFolderContainer.js | 7 +- .../EmptyViewContainer.helpers.tsx | 7 +- .../src/components/FilesSelector/utils.ts | 6 +- .../GlobalEvents/ChangeUserTypeEvent.js | 5 +- .../src/components/MainBar/ConfirmEmailBar.js | 3 +- .../src/components/MainBar/QuotasBar.js | 7 +- .../components/RoomsSelectorInput/index.js | 3 +- .../dialogs/ChangePortalOwnerDialog/index.js | 18 +-- .../dialogs/ChangePricingPlanDialog/index.js | 3 +- .../dialogs/ChangeStorageQuotaDialog/index.js | 9 +- .../dialogs/ChangeUserStatusDialog/index.js | 11 +- .../dialogs/ChangeUserTypeDialog/index.js | 5 +- .../PrivacyLimitationsWarning.js | 3 +- .../sub-components/ThirdPartyStorage/index.js | 3 +- .../dialogs/DeleteGroupDialog/index.js | 5 +- .../dialogs/DeleteOwnerProfileDialog/index.js | 5 +- .../dialogs/DeletePluginDialog/index.js | 3 +- .../dialogs/DeletePortalDialog/index.js | 3 +- .../sub-components/BodyComponent.js | 7 +- .../dialogs/PortalRenamingDialog/index.js | 3 +- .../dialogs/PreparationPortalDialog/index.js | 3 +- .../components/panels/AddUsersPanel/index.tsx | 5 +- .../panels/ChangeRoomOwnerPanel/index.js | 5 +- .../panels/EmbeddingPanel/index.tsx | 4 +- .../sub-components/ExternalLinks.js | 5 +- .../InvitePanel/sub-components/InfoBar.js | 3 +- .../InvitePanel/sub-components/InviteInput.js | 9 +- .../panels/InvitePanel/utils/index.js | 5 +- .../client/src/pages/About/AboutContent.js | 3 +- .../sub-components/GreetingUserContainer.js | 3 +- .../Confirm/sub-components/changeOwner.js | 5 +- .../Confirm/sub-components/changePhone.js | 5 +- .../Confirm/sub-components/continuePortal.js | 5 +- .../Confirm/sub-components/createUser.js | 3 +- .../sub-components/deactivatePortal.js | 5 +- .../Confirm/sub-components/profileRemove.js | 3 +- .../Confirm/sub-components/removePortal.js | 5 +- .../Confirm/sub-components/tfaActivation.js | 3 +- .../InfoPanel/Body/views/Accounts/index.js | 6 +- .../Home/InfoPanel/Body/views/Members/User.js | 5 +- .../InsideGroup/RowView/userContent.js | 3 +- .../InsideGroup/TableView/TableRow.js | 9 +- .../People/RowView/userContent.js | 2 +- .../AccountsBody/People/TableView/TableRow.js | 9 +- .../src/pages/Home/Section/Filter/index.js | 13 +- .../Layout/Article/Body/index.js | 5 +- .../categories/common/Branding/MobileView.js | 3 +- .../common/Branding/additionalResources.js | 3 +- .../Customization/language-and-time-zone.js | 9 +- .../common/Customization/portal-renaming.js | 7 +- .../categories/common/branding.js | 3 +- .../Stepper/ImportStep/index.js | 11 +- .../AccountsTable/index.js | 3 +- .../data-import/GoogleWorkspace/index.js | 5 +- .../Stepper/ImportStep/index.js | 11 +- .../AccountsTable/index.js | 3 +- .../NextCloudWorkspace/Stepper/index.js | 13 +- .../data-import/NextCloudWorkspace/index.js | 3 +- .../Stepper/ImportStep/index.js | 17 ++- .../AccountsTable/index.js | 3 +- .../data-import/OnlyofficeWorkspace/index.js | 5 +- .../categories/data-import/index.js | 4 +- .../sub-components/UsersInfoBlock.js | 7 +- .../backup/auto-backup/index.js | 5 +- .../sub-components/ScheduleComponent.js | 3 +- .../backup/restore-backup/index.js | 7 +- .../sub-components/backup-list/index.js | 7 +- .../categories/delete-data/index.js | 5 +- .../delete-data/portalDeactivation.js | 11 +- .../categories/delete-data/portalDeletion.js | 7 +- .../categories/developer-tools/Api/index.js | 4 +- .../developer-tools/JavascriptSDK/index.js | 16 ++- .../JavascriptSDK/presets/DocSpace.js | 8 +- .../JavascriptSDK/presets/Manager.js | 10 +- .../sub-components/CodeToInsert.js | 5 +- .../sub-components/MainElementParameter.js | 5 +- .../JavascriptSDK/sub-components/csp.js | 13 +- .../developer-tools/PluginSDK/index.js | 3 +- .../Webhooks/sub-components/WebhookDialog.js | 5 +- .../Webhooks/sub-components/WebhookInfo.js | 3 +- .../integration/DocumentService/index.js | 5 +- .../LDAP/sub-components/AttributeMapping.js | 4 +- .../LDAP/sub-components/GroupMembership.js | 4 +- .../LDAP/sub-components/ToggleLDAP.js | 5 +- .../categories/integration/Plugins/index.tsx | 5 +- .../Plugins/sub-components/EmptyScreen.tsx | 4 +- .../integration/SingleSignOn/MobileView.js | 4 +- .../ThirdPartyServicesSettings/index.js | 4 +- .../SaaS/PayerInformationContainer.js | 15 +- .../payments/SaaS/PaymentContainer.js | 11 +- .../sub-components/TariffTitleContainer.js | 4 +- .../security/access-portal/adminMessage.js | 5 +- .../security/access-portal/index.js | 13 +- .../security/access-portal/mobileView.js | 7 +- .../categories/security/access-portal/tfa.js | 5 +- .../categories/security/audit-trail/index.js | 5 +- .../categories/security/index.js | 3 +- .../storage-management/Statistics.js | 3 +- .../sub-components/MobileQuotas.js | 9 +- .../sub-components/QuotaPerItem.js | 7 +- .../utils/getStepDescription.js | 18 ++- .../PortalSettings/utils/settingsTree.js | 4 +- .../src/pages/PortalUnavailable/index.js | 11 +- .../sub-components/DailyFeedContainer.js | 5 +- .../sub-components/UsefulTipsContainer.js | 6 +- packages/client/src/pages/Wizard/index.js | 9 +- .../src/store/AccountsContextOptionsStore.js | 5 +- .../client/src/store/ContextOptionsStore.js | 13 +- packages/client/src/store/PeopleStore.js | 5 +- .../src/components/GreetingContainer.tsx | 4 +- packages/login/src/components/Invalid.tsx | 3 +- .../sub-components/EmailContainer.tsx | 3 +- .../sub-components/ConfigurationSection.tsx | 7 +- .../dialogs/CreatePortalDialog/index.tsx | 7 +- .../dialogs/DeletePortalDialog/index.tsx | 8 +- .../components/beta-badge/BetaBadge.tsx | 5 +- .../components/errors/AccessRestricted.tsx | 5 +- .../components/errors/ErrorUnavailable.tsx | 5 +- .../shared/components/share/Share.helpers.ts | 5 +- packages/shared/constants/index.ts | 2 - .../shared/pages/PreparationPortal/index.tsx | 3 +- .../Files/FilesSelector.constants.ts | 3 +- packages/shared/selectors/People/index.tsx | 3 +- packages/shared/utils/common.ts | 7 +- public/locales/ar-SA/Common.json | 1 + public/locales/az/Common.json | 1 + public/locales/bg/Common.json | 1 + public/locales/cs/Common.json | 1 + public/locales/de/Common.json | 1 + public/locales/el-GR/Common.json | 1 + public/locales/en/Common.json | 1 + public/locales/es/Common.json | 1 + public/locales/fi/Common.json | 1 + public/locales/fr/Common.json | 1 + public/locales/hy-AM/Common.json | 1 + public/locales/it/Common.json | 1 + public/locales/ja-JP/Common.json | 1 + public/locales/ko-KR/Common.json | 1 + public/locales/lo-LA/Common.json | 1 + public/locales/lv/Common.json | 1 + public/locales/nl/Common.json | 1 + public/locales/pl/Common.json | 1 + public/locales/pt-BR/Common.json | 1 + public/locales/pt/Common.json | 1 + public/locales/ro/Common.json | 1 + public/locales/ru/Common.json | 1 + public/locales/si/Common.json | 1 + public/locales/sk/Common.json | 1 + public/locales/sl/Common.json | 1 + public/locales/sr-Cyrl-RS/Common.json | 1 + public/locales/sr-Latn-RS/Common.json | 1 + public/locales/tr/Common.json | 1 + public/locales/uk-UA/Common.json | 1 + public/locales/vi/Common.json | 1 + public/locales/zh-CN/Common.json | 1 + 158 files changed, 549 insertions(+), 366 deletions(-) diff --git a/i18next/common.babel b/i18next/common.babel index 91a6d202ba..5c98e9f5a0 100644 --- a/i18next/common.babel +++ b/i18next/common.babel @@ -43054,6 +43054,138 @@ + + ProductName + + + + + + ar-SA + false + + + az-Latn-AZ + false + + + bg-BG + false + + + cs-CZ + false + + + de-DE + false + + + el-GR + false + + + en-US + false + + + es-ES + false + + + fi-FI + false + + + fr-FR + false + + + hy-AM + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + lo-LA + false + + + lv-LV + false + + + nl-NL + false + + + pl-PL + false + + + pt-BR + false + + + pt-PT + false + + + ro-RO + false + + + ru-RU + false + + + si-SI + false + + + sk-SK + false + + + sl-SI + false + + + sr-Cyrl-RS + false + + + sr-Latn-RS + false + + + tr-TR + false + + + uk-UA + false + + + vi-VN + false + + + zh-CN + false + + + Profile diff --git a/packages/client/src/Shell.jsx b/packages/client/src/Shell.jsx index ccd26b81a0..bf0165745d 100644 --- a/packages/client/src/Shell.jsx +++ b/packages/client/src/Shell.jsx @@ -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: () => { diff --git a/packages/client/src/components/Article/MainButton/index.js b/packages/client/src/components/Article/MainButton/index.js index 2674fbfde0..6f1f4e0afb 100644 --- a/packages/client/src/components/Article/MainButton/index.js +++ b/packages/client/src/components/Article/MainButton/index.js @@ -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", diff --git a/packages/client/src/components/EmptyContainer/RootFolderContainer.js b/packages/client/src/components/EmptyContainer/RootFolderContainer.js index e5c10e9707..fa37ff7efc 100644 --- a/packages/client/src/components/EmptyContainer/RootFolderContainer.js +++ b/packages/client/src/components/EmptyContainer/RootFolderContainer.js @@ -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(); diff --git a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx index 7e63ed303a..347a66dc23 100644 --- a/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx +++ b/packages/client/src/components/EmptyContainer/sub-components/EmptyViewContainer/EmptyViewContainer.helpers.tsx @@ -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 diff --git a/packages/client/src/components/FilesSelector/utils.ts b/packages/client/src/components/FilesSelector/utils.ts index 1e1a17719a..084c8f4660 100644 --- a/packages/client/src/components/FilesSelector/utils.ts +++ b/packages/client/src/components/FilesSelector/utils.ts @@ -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) diff --git a/packages/client/src/components/GlobalEvents/ChangeUserTypeEvent.js b/packages/client/src/components/GlobalEvents/ChangeUserTypeEvent.js index 6d5da7bf5b..f06686be51 100644 --- a/packages/client/src/components/GlobalEvents/ChangeUserTypeEvent.js +++ b/packages/client/src/components/GlobalEvents/ChangeUserTypeEvent.js @@ -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": diff --git a/packages/client/src/components/MainBar/ConfirmEmailBar.js b/packages/client/src/components/MainBar/ConfirmEmailBar.js index 4c60b48f28..27f4e0dd35 100644 --- a/packages/client/src/components/MainBar/ConfirmEmailBar.js +++ b/packages/client/src/components/MainBar/ConfirmEmailBar.js @@ -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 = ({ diff --git a/packages/client/src/components/MainBar/QuotasBar.js b/packages/client/src/components/MainBar/QuotasBar.js index 220a2ff1a5..7414faca8f 100644 --- a/packages/client/src/components/MainBar/QuotasBar.js +++ b/packages/client/src/components/MainBar/QuotasBar.js @@ -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 = ({ You can remove the unnecessary files or You can archived the unnecessary rooms or { 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) => { diff --git a/packages/client/src/components/dialogs/ChangePortalOwnerDialog/index.js b/packages/client/src/components/dialogs/ChangePortalOwnerDialog/index.js index 66e1806b3e..eb5b62bfcd 100644 --- a/packages/client/src/components/dialogs/ChangePortalOwnerDialog/index.js +++ b/packages/client/src/components/dialogs/ChangePortalOwnerDialog/index.js @@ -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 = ({ - {t("NewPortalOwner", { productName: PRODUCT_NAME })} + {t("NewPortalOwner", { productName: t("Common:ProductName") })} - {t("ChangeInstruction", { productName: PRODUCT_NAME })} + {t("ChangeInstruction", { productName: t("Common:ProductName") })} @@ -228,7 +230,7 @@ const ChangePortalOwnerDialog = ({ - {t("PortalOwnerCan", { productName: PRODUCT_NAME })} + {t("PortalOwnerCan", { productName: t("Common:ProductName") })} {ownerRights?.map((item) => ( diff --git a/packages/client/src/components/dialogs/ChangePricingPlanDialog/index.js b/packages/client/src/components/dialogs/ChangePricingPlanDialog/index.js index 26d2f22960..bd78a132b7 100644 --- a/packages/client/src/components/dialogs/ChangePricingPlanDialog/index.js +++ b/packages/client/src/components/dialogs/ChangePricingPlanDialog/index.js @@ -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 {{ usersCount: managersCount }} admins/power users, and current number of such users in your - {{ productName: PRODUCT_NAME }} is + {{ productName: t("Common:ProductName") }} is {{ currentUsersCount: addedManagersCount }} diff --git a/packages/client/src/components/dialogs/ChangeStorageQuotaDialog/index.js b/packages/client/src/components/dialogs/ChangeStorageQuotaDialog/index.js index 2529946f0c..66ad2a3dc2 100644 --- a/packages/client/src/components/dialogs/ChangeStorageQuotaDialog/index.js +++ b/packages/client/src/components/dialogs/ChangeStorageQuotaDialog/index.js @@ -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) => { {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"), + })} {!isDisableQuota && ( )}{" "} - {t("ChangeUserTypeMessageWarning", { productName: PRODUCT_NAME })} + {t("ChangeUserTypeMessageWarning", { + productName: t("Common:ProductName"), + })} diff --git a/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/IsPrivateParam/PrivacyLimitationsWarning.js b/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/IsPrivateParam/PrivacyLimitationsWarning.js index 478f2826b9..d774603bdc 100644 --- a/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/IsPrivateParam/PrivacyLimitationsWarning.js +++ b/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/IsPrivateParam/PrivacyLimitationsWarning.js @@ -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 }) => {
{t("MakeRoomPrivateLimitationsWarningDescription", { - productName: PRODUCT_NAME, + productName: t("Common:ProductName"), })}
{t("Common:LearnMore")}
diff --git a/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/ThirdPartyStorage/index.js b/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/ThirdPartyStorage/index.js index d50f9e29e3..382029fd13 100644 --- a/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/ThirdPartyStorage/index.js +++ b/packages/client/src/components/dialogs/CreateEditRoomDialog/sub-components/ThirdPartyStorage/index.js @@ -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 ? ( {t("ThirdPartyStorageRoomAdminNoStorageAlert", { - productName: PRODUCT_NAME, + productName: t("Common:ProductName"), })} ) : ( diff --git a/packages/client/src/components/dialogs/DeleteGroupDialog/index.js b/packages/client/src/components/dialogs/DeleteGroupDialog/index.js index cbd93e5743..b2a62c0bdb 100644 --- a/packages/client/src/components/dialogs/DeleteGroupDialog/index.js +++ b/packages/client/src/components/dialogs/DeleteGroupDialog/index.js @@ -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) => { {hasMoreGroups ? t("DeleteDialog:DeleteAllGroupDescription", { - productName: PRODUCT_NAME, + productName: t("Common:ProductName"), }) : t("DeleteDialog:DeleteGroupDescription", { - productName: PRODUCT_NAME, + productName: t("Common:ProductName"), groupName, })} diff --git a/packages/client/src/components/dialogs/DeleteOwnerProfileDialog/index.js b/packages/client/src/components/dialogs/DeleteOwnerProfileDialog/index.js index 2da696246c..9bd2fc6775 100644 --- a/packages/client/src/components/dialogs/DeleteOwnerProfileDialog/index.js +++ b/packages/client/src/components/dialogs/DeleteOwnerProfileDialog/index.js @@ -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 { {t("DeleteProfileTitle")} - {t("DeleteOwnerRestrictionText", { productName: PRODUCT_NAME })} + {t("DeleteOwnerRestrictionText", { + productName: t("Common:ProductName"), + })} diff --git a/packages/client/src/components/dialogs/DeletePluginDialog/index.js b/packages/client/src/components/dialogs/DeletePluginDialog/index.js index 1f27b227b7..193f294b1a 100644 --- a/packages/client/src/components/dialogs/DeletePluginDialog/index.js +++ b/packages/client/src/components/dialogs/DeletePluginDialog/index.js @@ -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) => { > {t("DeletePluginTitle")} - {t("DeletePluginDescription", { productName: PRODUCT_NAME })} + {t("DeletePluginDescription", { productName: t("Common:ProductName") })}