Skip to content

Commit

Permalink
fixing il8n for cel steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kgeller committed Oct 7, 2024
1 parent b3a23d1 commit a7a7e8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,75 +12,75 @@ export const ANALYZING = i18n.translate('xpack.integrationAssistant.step.dataStr
});

export const CEL_INPUT_TITLE = i18n.translate(
'xpack.integrationAssistant.step.dataStream.dataStreamTitle',
'xpack.integrationAssistant.step.celInput.celInputTitle',
{
defaultMessage: 'Generate CEL input configuration',
}
);
export const CEL_INPUT_DESCRIPTION = i18n.translate(
'xpack.integrationAssistant.step.dataStream.dataStreamDescription',
'xpack.integrationAssistant.step.celInput.celInputDescription',
{
defaultMessage: 'Upload an OpenAPI spec file to generate a configuration for the CEL input',
}
);

export const API_DEFINITION_LABEL = i18n.translate(
'xpack.integrationAssistant.step.dataStream.apiDefinition.label',
'xpack.integrationAssistant.step.celInput.apiDefinition.label',
{
defaultMessage: 'OpenAPI spec',
}
);

export const API_DEFINITION_DESCRIPTION = i18n.translate(
'xpack.integrationAssistant.step.dataStream.apiDefinition.description',
'xpack.integrationAssistant.step.celInput.apiDefinition.description',
{
defaultMessage: 'Drag and drop a file or browse files.',
}
);

export const API_DEFINITION_DESCRIPTION_2 = i18n.translate(
'xpack.integrationAssistant.step.dataStream.apiDefinition.description2',
'xpack.integrationAssistant.step.celInput.apiDefinition.description2',
{
defaultMessage: 'OpenAPI specification',
}
);

export const API_DEFINITION_ERROR = {
CAN_NOT_READ: i18n.translate(
'xpack.integrationAssistant.step.dataStream.logsSample.errorCanNotRead',
'xpack.integrationAssistant.step.celInput.openapiSpec.errorCanNotRead',
{
defaultMessage: 'Failed to read the logs sample file',
}
),
CAN_NOT_READ_WITH_REASON: (reason: string) =>
i18n.translate(
'xpack.integrationAssistant.step.dataStream.logsSample.errorCanNotReadWithReason',
'xpack.integrationAssistant.step.celInput.openapiSpec.errorCanNotReadWithReason',
{
values: { reason },
defaultMessage: 'An error occurred when reading spec file: {reason}',
}
),
TOO_LARGE_TO_PARSE: i18n.translate(
'xpack.integrationAssistant.step.dataStream.logsSample.errorTooLargeToParse',
'xpack.integrationAssistant.step.celInput.openapiSpec.errorTooLargeToParse',
{
defaultMessage: 'This spec file is too large to parse',
}
),
};

export const PROGRESS_CEL_INPUT_GRAPH = i18n.translate(
'xpack.integrationAssistant.step.dataStream.progress.relatedGraph',
'xpack.integrationAssistant.step.celInput.progress.relatedGraph',
{
defaultMessage: 'Generating CEL input configuration',
}
);

export const GENERATION_ERROR = (progressStep: string) =>
i18n.translate('xpack.integrationAssistant.step.dataStream.generationError', {
i18n.translate('xpack.integrationAssistant.step.celInput.generationError', {
values: { progressStep },
defaultMessage: 'An error occurred during: {progressStep}',
});

export const RETRY = i18n.translate('xpack.integrationAssistant.step.dataStream.retryButtonLabel', {
export const RETRY = i18n.translate('xpack.integrationAssistant.step.celInput.retryButtonLabel', {
defaultMessage: 'Retry',
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@

import { i18n } from '@kbn/i18n';

export const TITLE = i18n.translate('xpack.integrationAssistant.step.review.title', {
export const TITLE = i18n.translate('xpack.integrationAssistant.step.reviewCel.title', {
defaultMessage: 'Review results',
});
export const DESCRIPTION = i18n.translate('xpack.integrationAssistant.step.review.description', {
export const DESCRIPTION = i18n.translate('xpack.integrationAssistant.step.reviewCel.description', {
defaultMessage:
'Review the generated CEL input configuration settings for your integration. These settings will be auto-populated into the integration configuration where editing will be possible.',
});

export const PROGRAM = i18n.translate('xpack.integrationAssistant.step.review.program', {
export const PROGRAM = i18n.translate('xpack.integrationAssistant.step.reviewCel.program', {
defaultMessage: 'The CEL program to be run for each polling',
});
export const STATE = i18n.translate('xpack.integrationAssistant.step.review.state', {
export const STATE = i18n.translate('xpack.integrationAssistant.step.reviewCel.state', {
defaultMessage: 'Initial CEL evaluation state',
});
export const REDACT_VARS = i18n.translate('xpack.integrationAssistant.step.review.redact', {
export const REDACT_VARS = i18n.translate('xpack.integrationAssistant.step.reviewCel.redact', {
defaultMessage: 'Redacted fields',
});

export const SAVE_BUTTON = i18n.translate('xpack.integrationAssistant.step.review.save', {
export const SAVE_BUTTON = i18n.translate('xpack.integrationAssistant.step.reviewCel.save', {
defaultMessage: 'Save',
});

0 comments on commit a7a7e8f

Please sign in to comment.