Skip to content

Commit

Permalink
fix: rename unstable namespace keyset (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGenius authored Dec 24, 2024
1 parent b855931 commit 1d5052a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/unstable/Stories/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {addComponentKeysets} from '@gravity-ui/uikit/i18n';

import {NAMESPACE} from '../../../utils/cn';
import {UNSTABLE_NAMESPACE} from '../../../utils/cn';

import en from './en.json';
import ru from './ru.json';

export const i18n = addComponentKeysets({en, ru}, `${NAMESPACE}stories`);
export const i18n = addComponentKeysets({en, ru}, `${UNSTABLE_NAMESPACE}stories`);
1 change: 1 addition & 0 deletions src/components/utils/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {withNaming} from '@bem-react/classname';
export type CnMods = Record<string, string | boolean | undefined>;

export const NAMESPACE = 'gc-';
export const UNSTABLE_NAMESPACE = 'gcu-';

export const cn = withNaming({e: '__', m: '_', v: '_'});
export const block = withNaming({n: NAMESPACE, e: '__', m: '_', v: '_'});

0 comments on commit 1d5052a

Please sign in to comment.