Skip to main content

Client constant keys screen

The Client constant keys screen lets you manage the set of shop translation keys that are active for your storefront.

N
Written by Niyaz

Open Client constant keys at the #/client_constant_keys route. The screen manages the set of shop translation keys that are active for the storefront. It has a list view and a catalog picker used to add a key.

Client constant keys list with an expanded translation table

Fields and controls

Client constant keys list

Control

Description

Search

Filters the list by key name as you type.

Add Constant Key

Opens the catalog picker to select a key from the available shop translation keys.

Delete

Removes all selected keys. Select one or more rows with the row checkboxes before selecting Delete.

Sync

Pushes the current build. Select Sync after making changes to apply them to the storefront.

Rows per page

Sets how many rows the table displays at once. The available values are 5, 10, 25, and 50.

List table

The list table has one data column named NAME. Each key row also has a row checkbox and an expander.

Column

Description

NAME

Identifies the translation key, such as CART_NOTIFICATION, and supports sorting.

List translation table

Selecting a key's expander reveals a nested table with one row per language.

Column

Description

LANGUAGE

Identifies the language to which the translation applies and supports sorting.

NAME

Displays the translated text stored for the language; until a translation is supplied, it repeats the key identifier, and it supports sorting.

CREATED AT

Shows when the translation was created and supports sorting.

UPDATED AT

Shows when the translation was last changed and supports sorting.

APPROVED

Shows a checkmark when the translation is approved, stays empty when it is not, and supports sorting.

EDIT

Carries a pencil button that opens the translation for editing.

Create constant key catalog picker

The catalog picker is a searchable, paginated catalog of available shop translation keys. It is not a form and has no input fields to fill in.

Control

Description

Search

Filters the catalog by key name as you type.

Back

Returns to the client constant keys list without adding a key.

Rows per page

Sets how many rows the catalog displays at once. The available values are 5, 10, 25, and 50.

Pagination

Moves between pages of catalog results.

Catalog table

The catalog table has NAME and ACTION columns. An expanded catalog key displays a nested table containing its translations.

Column

Description

NAME

Identifies the translation key, such as SHOP_FORM_INPUT_LABEL_EMAIL, and supports sorting.

ACTION

Provides an apply button for each row. Selecting apply adds that key as a client constant key and returns to the list.

Catalog translation table

Column

Description

LANGUAGE

Identifies the language to which the translation applies and supports sorting.

NAME

Displays the translated text stored for the language; until a translation is supplied, it repeats the key identifier, and it supports sorting.

CREATED AT

Shows when the translation was created and supports sorting.

UPDATED AT

Shows when the translation was last changed and supports sorting.

APPROVED

Shows a checkmark when the translation is approved, stays empty when it is not, and supports sorting.

The catalog picker has no EDIT column, so its translations are read-only until the key is added.

Create constant key catalog with searchable key rows and expanded translations

Related

Did this answer your question?