Skip to content

Commit

Permalink
TASK: Deprecate I18nRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi authored and markusguenther committed Dec 13, 2024
1 parent e3ddaf9 commit 5154124
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/neos-ui-i18n/src/registry/I18nRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import type {LegacyParameters} from './LegacyParameters';

const errorCache: Record<string, boolean> = {};

/**
* @deprecated Use `import {tranlsate} from '@neos-project/neos-ui-i18n'` instead
*/
export class I18nRegistry extends SynchronousRegistry<unknown> {
/**
* Retrieves a the translation string that is identified by the given
Expand Down Expand Up @@ -205,4 +208,7 @@ export class I18nRegistry extends SynchronousRegistry<unknown> {
}
}

/**
* @deprecated Use `import {tranlsate} from '@neos-project/neos-ui-i18n'` instead
*/
export const i18nRegistry = new I18nRegistry('The i18n registry');

0 comments on commit 5154124

Please sign in to comment.