---
title: TranslationKeyExists
description: Identifies references to translation keys that don't exist.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/translation-key-exists
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/translation-key-exists.md
api_name: liquid
---

# Translation​Key​Exists

Identifies references to translations that don't exist.

***

## Examples

The following examples contain code snippets that either fail or pass this check.

### ✗ Fail

## locales/en.default.json

```json
{
  "greetings": "Hello, world!",
  "general": {
    "close": "Close"
  }
}
```

## templates/index.liquid

```liquid
{{ 'notfound'  | t }}
```

### ✓ Pass

## locales/en.default.json

```json
{
  "greetings": "Hello, world!",
  "general": {
    "close": "Close"
  }
}
```

## templates/index.liquid

```liquid
{{ 'greetings'  | t }}
{{ 'general.close'  | t }}
```

***

## Options

The following example contains the default configuration for this check:

```yaml
TranslationKeyExists:
enabled: true
severity: error
```

| Parameter | Description |
| - | - |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](https://shopify.dev/themes/tools/theme-check/configuration#check-severity) of the check. |

***

## Disabling this check

Disabling this check isn't recommended.

***
