diff options
Diffstat (limited to 'app/assets/javascripts/registry/explorer/constants.js')
-rw-r--r-- | app/assets/javascripts/registry/explorer/constants.js | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/app/assets/javascripts/registry/explorer/constants.js b/app/assets/javascripts/registry/explorer/constants.js index bb311157627..ef72c085972 100644 --- a/app/assets/javascripts/registry/explorer/constants.js +++ b/app/assets/javascripts/registry/explorer/constants.js @@ -1,18 +1,24 @@ -import { __ } from '~/locale'; +import { s__ } from '~/locale'; -export const FETCH_IMAGES_LIST_ERROR_MESSAGE = __( - 'Something went wrong while fetching the packages list.', +export const FETCH_IMAGES_LIST_ERROR_MESSAGE = s__( + 'ContainerRegistry|Something went wrong while fetching the packages list.', ); -export const FETCH_TAGS_LIST_ERROR_MESSAGE = __( - 'Something went wrong while fetching the tags list.', +export const FETCH_TAGS_LIST_ERROR_MESSAGE = s__( + 'ContainerRegistry|Something went wrong while fetching the tags list.', ); -export const DELETE_IMAGE_ERROR_MESSAGE = __('Something went wrong while deleting the image.'); -export const DELETE_IMAGE_SUCCESS_MESSAGE = __('Image deleted successfully'); -export const DELETE_TAG_ERROR_MESSAGE = __('Something went wrong while deleting the tag.'); -export const DELETE_TAG_SUCCESS_MESSAGE = __('Tag deleted successfully'); -export const DELETE_TAGS_ERROR_MESSAGE = __('Something went wrong while deleting the tags.'); -export const DELETE_TAGS_SUCCESS_MESSAGE = __('Tags deleted successfully'); +export const DELETE_IMAGE_ERROR_MESSAGE = s__( + 'ContainerRegistry|Something went wrong while deleting the image.', +); +export const DELETE_IMAGE_SUCCESS_MESSAGE = s__('ContainerRegistry|Image deleted successfully'); +export const DELETE_TAG_ERROR_MESSAGE = s__( + 'ContainerRegistry|Something went wrong while deleting the tag.', +); +export const DELETE_TAG_SUCCESS_MESSAGE = s__('ContainerRegistry|Tag deleted successfully'); +export const DELETE_TAGS_ERROR_MESSAGE = s__( + 'ContainerRegistry|Something went wrong while deleting the tags.', +); +export const DELETE_TAGS_SUCCESS_MESSAGE = s__('ContainerRegistry|Tags deleted successfully'); export const DEFAULT_PAGE = 1; export const DEFAULT_PAGE_SIZE = 10; @@ -26,7 +32,18 @@ export const LIST_KEY_LAST_UPDATED = 'created_at'; export const LIST_KEY_ACTIONS = 'actions'; export const LIST_KEY_CHECKBOX = 'checkbox'; -export const LIST_LABEL_TAG = __('Tag'); -export const LIST_LABEL_IMAGE_ID = __('Image ID'); -export const LIST_LABEL_SIZE = __('Size'); -export const LIST_LABEL_LAST_UPDATED = __('Last Updated'); +export const LIST_LABEL_TAG = s__('ContainerRegistry|Tag'); +export const LIST_LABEL_IMAGE_ID = s__('ContainerRegistry|Image ID'); +export const LIST_LABEL_SIZE = s__('ContainerRegistry|Size'); +export const LIST_LABEL_LAST_UPDATED = s__('ContainerRegistry|Last Updated'); + +export const EXPIRATION_POLICY_ALERT_TITLE = s__( + 'ContainerRegistry|Retention policy has been Enabled', +); +export const EXPIRATION_POLICY_ALERT_PRIMARY_BUTTON = s__('ContainerRegistry|Edit Settings'); +export const EXPIRATION_POLICY_ALERT_FULL_MESSAGE = s__( + 'ContainerRegistry|The retention and expiration policy for this Container Registry has been enabled and will run in %{days}. For more information visit the %{linkStart}documentation%{linkEnd}', +); +export const EXPIRATION_POLICY_ALERT_SHORT_MESSAGE = s__( + 'ContainerRegistry|The retention and expiration policy for this Container Registry has been enabled. For more information visit the %{linkStart}documentation%{linkEnd}', +); |