Skip to content

Commit 133b48f

Browse files
committed
chore(*): Add docs to the old method
1 parent b3d6c24 commit 133b48f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/igniteui-angular/src/lib/core/i18n/resources.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export function getCurrentResourceStrings<T>(defaultEN: T, init = true) {
7474
return normalizedResourceStrings;
7575
}
7676

77+
/**
78+
* Change resource strings for all components globally. The locale is not taken into account and this method should be called when the locale is changed.
79+
* @deprecated Please use the new `registerI18n` and `setCurrentI18n` methods instead.
80+
*/
7781
export function changei18n(resourceStrings: IResourceStrings) {
7882
igxRegisterI18n(resourceStrings, getI18nManager().defaultLocale);
7983
}

0 commit comments

Comments
 (0)