Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename unstable namespace keyset #253

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: '_'});
Loading