From a12ea54f645c1b43a8963365479b948712ab7bb2 Mon Sep 17 00:00:00 2001 From: Wilhelm Behncke Date: Fri, 28 Jun 2024 12:14:19 +0200 Subject: [PATCH] TASK: Deprecate `I18nRegistry` --- packages/neos-ui-i18n/src/registry/I18nRegistry.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/neos-ui-i18n/src/registry/I18nRegistry.ts b/packages/neos-ui-i18n/src/registry/I18nRegistry.ts index 0596fd0289..b97b6ba2fc 100644 --- a/packages/neos-ui-i18n/src/registry/I18nRegistry.ts +++ b/packages/neos-ui-i18n/src/registry/I18nRegistry.ts @@ -19,6 +19,9 @@ import type {LegacyParameters} from './LegacyParameters'; const errorCache: Record = {}; +/** + * @deprecated Use `import {tranlsate} from '@neos-project/neos-ui-i18n'` instead + */ export class I18nRegistry extends SynchronousRegistry { /** * Retrieves a the translation string that is identified by the given @@ -205,4 +208,7 @@ export class I18nRegistry extends SynchronousRegistry { } } +/** + * @deprecated Use `import {tranlsate} from '@neos-project/neos-ui-i18n'` instead + */ export const i18nRegistry = new I18nRegistry('The i18n registry');