# Imported Tags Ignored by txjs-cli

**URL:** <https://community.transifex.com/t/imported-tags-ignored-by-txjs-cli/3002>\
**Category:** Developers\
**Tags:** tx-client\
**Created:** [August 15, 2022, 1:09am UTC](https://community.transifex.com/t/imported-tags-ignored-by-txjs-cli/3002 "2022-08-15T01:09:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aarr0n](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/aarr0n/32/2335_2.png) [@aarr0n](https://community.transifex.com/u/aarr0n)\
**Post date:** [August 15, 2022, 1:09am UTC](https://community.transifex.com/t/imported-tags-ignored-by-txjs-cli/3002/1 "2022-08-15T01:09:14Z")

</div>

I’ve a use case where I’m wanting to store tags in a constant and import / use that in different components, but its not being recognised by `txjs-cli`.

When I run `txjs-cli push` the tags are not present in the output (using the `verbose` argument) and they don’t appear in Transifex. But, if I define the `const` within the component file the tags are registered.

## This does not work

**constants.ts**

```ts
export const MY_TAGS = 'tag1,tag2'

```

**component.tsx**

```tsx
import { T } from '@transifex/react'
import { MY_TAGS } from './constants.ts'
// ...
<T _str="EXAMPLE" _tags={MY_TAGS} />

```

## This does work

**component.tsx**

```tsx
import { T } from '@transifex/react'

const MY_TAGS = 'tag1,tag2'

// ...
<T _str="EXAMPLE" _tags={MY_TAGS} />

```

---

<div class="post-metadata">

**Author:** ![chrisb](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.transifex.com/chrisb/32/2377_2.png) [@chrisb](https://community.transifex.com/u/chrisb)\
**Post date:** [August 23, 2022, 2:13pm UTC](https://community.transifex.com/t/imported-tags-ignored-by-txjs-cli/3002/2 "2022-08-23T14:13:17Z")

</div>

Hello dear Aaron ,

Thank you for contacting us.

So unfortunately the parser for JSX is not recognizing imports as variables (there is no dynamic evaluation of the imported const). No values can be retrieved from the parsed tree of objects. So at the moment we do not support this functionality.

Kind regards  
Christos
