message: Fix translation of flag-enabled extensions
  Follow-up for fix of BZ
diff: import * as React from 'react';
  -import { TFunction } from 'i18next';
  import { Extension, LoadedExtension } from '@console/dynamic-plugin-sdk/src/types';
  import { isTranslatableString, translateExtensionDeep } from './extension-i18n';
  import useTranslationExt from './useTranslationExt';
  @@ -16,10 +15,10 @@ const useTranslatedExtensions = <E extends Extension>(
  extensions: LoadedExtension<E>[],
  ): typeof extensions => {
  const { t } = useTranslationExt();
  - // TODO: Drop ref and start using useEffect when we are not mutating extensions
  - const lastTRef = React.useRef<TFunction>(null);
  - if (t !== lastTRef.current) {
  + React.useMemo(
  + // Mutate "extensions" parameter only if changed (i.e. a flag-enabled or translations changed)
  + () =>
  extensions.forEach((e) => {
  const UID = e.uid;
  translateExtensionDeep(
  @@ -43,9 +42,9 @@ const useTranslatedExtensions = <E extends Extension>(
  obj[key] = t(translationKeyMap[UID][path]);
  },
  );
  - });
  - lastTRef.current = t;
  - }
  + }),
  + [t, extensions],
  + );
  return extensions;
  };
  