---
title: Updates to error codes for translationsRegister - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/updates-to-error-codes-for-translationsregister
  md: >-
    https://shopify.dev/changelog/updates-to-error-codes-for-translationsregister.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2022-03-15T12:02:47-04:00'
  postedAt: '2022-03-31T00:00:00-04:00'
  updatedAt: '2024-02-02T10:05:04-05:00'
  effectiveAt: '2022-03-31T00:00:00-04:00'
---

March 31, 2022

Tags:

* API

# Updates to error codes for translationsRegister

Although the `INVALID_LOCALE_FOR_SHOP` error code was introduced in the 2020-07 version, it has never been used to represent a `locale` field related error when calling the `translationsRegister` mutation.

As of GraphQL Admin API version 2022-04, the `INVALID_LOCALE_FOR_SHOP` error code is used to represent all errors related to the `locale field` on the `Translation` object.

Previous verions will still use the `INVALID_CODE` error code to represent errors related to the locale field.
