From ea930d59e246cef2d31ab6d854544445eba9f56b Mon Sep 17 00:00:00 2001 From: SanjalKatiyar Date: Mon, 5 Feb 2024 15:05:06 +0530 Subject: [PATCH] Fix i18n NS ref in shared + publish new version --- packages/shared/package.json | 2 +- packages/shared/src/details-page/datetime.ts | 4 +--- packages/shared/src/text-inputs/password-input.tsx | 8 +------- yarn.lock | 2 +- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/shared/package.json b/packages/shared/package.json index 08903bc45..92282b257 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,7 +1,7 @@ { "name": "@odf-console/shared", "description": "ODF console shared code.", - "version": "0.0.0-beta12", + "version": "0.0.0-beta13", "license": "Apache-2.0", "private": false, "main": "src/index.ts", diff --git a/packages/shared/src/details-page/datetime.ts b/packages/shared/src/details-page/datetime.ts index 4b98038f0..0b48e0041 100644 --- a/packages/shared/src/details-page/datetime.ts +++ b/packages/shared/src/details-page/datetime.ts @@ -109,9 +109,7 @@ export const fromNow = (dateTime: string | Date, now?: Date, options?) => { const d = new Date(dateTime); const ms = now.getTime() - d.getTime(); - const justNow = i18n.t('plugin__odf-console~Just now', { - ns: 'plugin__odf-console', - }); + const justNow = i18n.t('Just now'); // If the event occurred less than one minute in the future, assume it's clock drift and show "Just now." if (!options?.omitSuffix && ms < 60000 && ms > maxClockSkewMS) { diff --git a/packages/shared/src/text-inputs/password-input.tsx b/packages/shared/src/text-inputs/password-input.tsx index b768c709d..0f3bfe475 100644 --- a/packages/shared/src/text-inputs/password-input.tsx +++ b/packages/shared/src/text-inputs/password-input.tsx @@ -28,13 +28,7 @@ const PasswordInput: React.FC = ({ onChange={onChange} isRequired={isRequired} /> - +