diff --git a/ui/component/tagsSearch/view.jsx b/ui/component/tagsSearch/view.jsx index a9bebd656..0f9919f34 100644 --- a/ui/component/tagsSearch/view.jsx +++ b/ui/component/tagsSearch/view.jsx @@ -5,7 +5,7 @@ import Tag from 'component/tag'; import { setUnion, setDifference } from 'util/set-operations'; import I18nMessage from 'component/i18nMessage'; import analytics from 'analytics'; -import { CONTROL_TAGS, INTERNAL_TAGS } from 'constants/tags'; +import { CONTROL_TAGS, INTERNAL_TAGS, INTERNAL_TAG_PREFIX } from 'constants/tags'; type Props = { tagsPassedIn: Array, @@ -242,6 +242,7 @@ export default function TagsSearch(props: Props) { blockWrap={false} label={__( t + .replace(INTERNAL_TAG_PREFIX, '') .split('-') .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) .join(' ') diff --git a/ui/constants/tags.js b/ui/constants/tags.js index 0fdd4b6e4..0a24ffa62 100644 --- a/ui/constants/tags.js +++ b/ui/constants/tags.js @@ -13,6 +13,8 @@ export const DEFAULT_FOLLOWED_TAGS = [ 'technology', ]; +export const INTERNAL_TAG_PREFIX = 'c:'; + export const DISABLE_COMMENTS_TAG = 'c:disable-comments'; export const DISABLE_SUPPORT_TAG = 'disable-support'; export const PREFERENCE_EMBED = 'c:preference-embed';