diff --git a/packages/cli/lang/en.lyaml b/packages/cli/lang/en.lyaml index 2b8d094d3..99554784e 100644 --- a/packages/cli/lang/en.lyaml +++ b/packages/cli/lang/en.lyaml @@ -952,9 +952,10 @@ en: feedbackHeader: "We'd love to hear your feedback!" feedbackMessage: "How are you liking the new projects and developer tools? \n > Run `{{#yellow}}hs feedback{{/yellow}}` to let us know what you think!\n" showPlatformVersionWarning: - noPlatformVersion: "No platformVersion found in hsproject.json. Falling back to version \"{{ defaultVersion }}\"." - noPlatformVersionAlt: "No platformVersion found in hsproject.json. Falling back to default version." - deprecatedVersion: "Projects with platformVersion 2023.1 or unspecified versions will no longer be supported on" + docsLink: "Projects platform versioning (BETA)" + noPlatformVersion: "No platformVersion found in hsproject.json. Falling back to version \"{{ defaultVersion }}\". Starting Mar 31, 2024, projects without a specified version will no longer be supported. To update your project to the latest version, see {{ docsLink }}." + noPlatformVersionAlt: "No platformVersion found in hsproject.json. Falling back to default version. Starting Mar 31, 2024, projects without a specified version will no longer be supported. To update your project to the latest version, see {{ docsLink }}." + deprecatedVersion: "Starting Mar 31, 2024, projects with platformVersion 2023.1 or unspecified versions will no longer be supported. It's recommended that you update your project to the latest version. For more info, see {{ docsLink }}." ui: betaTag: "{{#bold}}[BETA]{{/bold}}" betaWarning: diff --git a/packages/cli/lib/projects.js b/packages/cli/lib/projects.js index 8bcc0a1d9..0da9e360f 100644 --- a/packages/cli/lib/projects.js +++ b/packages/cli/lib/projects.js @@ -870,6 +870,10 @@ const createProjectComponent = async ( const showPlatformVersionWarning = async (accountId, projectConfig) => { const platformVersion = projectConfig.platformVersion; + const docsLink = uiLink( + i18n(`${i18nKey}.showPlatformVersionWarning.docsLink`), + 'https://developers.hubspot.com/docs/platform/developer-projects-setup' + ); if (!platformVersion) { try { @@ -878,13 +882,16 @@ const showPlatformVersionWarning = async (accountId, projectConfig) => { logger.warn( i18n(`${i18nKey}.showPlatformVersionWarning.noPlatformVersion`, { defaultVersion, + docsLink, }) ); logger.log(''); } catch (e) { logger.log(''); logger.warn( - i18n(`${i18nKey}.showPlatformVersionWarning.noPlatformVersionAlt`) + i18n(`${i18nKey}.showPlatformVersionWarning.noPlatformVersionAlt`, { + docsLink, + }) ); logger.log(''); logger.debug(e.error); @@ -892,7 +899,9 @@ const showPlatformVersionWarning = async (accountId, projectConfig) => { } else if (platformVersion === '2023.1') { logger.log(''); logger.warn( - i18n(`${i18nKey}.showPlatformVersionWarning.deprecatedVersion`) + i18n(`${i18nKey}.showPlatformVersionWarning.deprecatedVersion`, { + docsLink, + }) ); logger.log(''); }