Skip to content

Commit a6465ee

Browse files
grebaldimarkusguenther
authored andcommitted
TASK: Deprecate I18nRegistry
1 parent d9aeb86 commit a6465ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/neos-ui-i18n/src/registry/I18nRegistry.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import type {LegacyParameters} from './LegacyParameters';
1919

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

22+
/**
23+
* @deprecated Use `import {tranlsate} from '@neos-project/neos-ui-i18n'` instead
24+
*/
2225
export class I18nRegistry extends SynchronousRegistry<unknown> {
2326
/**
2427
* Retrieves a the translation string that is identified by the given
@@ -205,4 +208,7 @@ export class I18nRegistry extends SynchronousRegistry<unknown> {
205208
}
206209
}
207210

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

0 commit comments

Comments
 (0)