-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Translate Spaces component #24411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate Spaces component #24411
Conversation
💔 Build Failed |
💔 Build Failed |
|
retest |
💔 Build Failed |
| > | ||
| Manage spaces | ||
| <FormattedMessage | ||
| id="xpack.spaces.managementSpacesButton.manageSpacesButton" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
managementSpacesButton => manageSpacesButton
manageSpacesButton => manageSpacesButtonLabel
| toastNotifications.addDanger({ | ||
| title: 'Unable to change your Space', | ||
| text: 'please try again later', | ||
| title: i18n.translate('xpack.spaces.lib.spacesManagement.unableChangeSpaceTitle', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please be more attentive. spacesManagement => spacesManager
unableChangeSpaceTitle => unableToChangeSpaceWarningTitle
| title: i18n.translate('xpack.spaces.lib.spacesManagement.unableChangeSpaceTitle', { | ||
| defaultMessage: 'Unable to change your Space', | ||
| }), | ||
| text: i18n.translate('xpack.spaces.lib.spacesManagement.retryChangeLaterTitle', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacesManagement => spacesManager
retryChangeLaterTitle => unableToChangeSpaceWarningDescription
| } | ||
|
|
||
| export class ConfirmDeleteModal extends Component<Props, State> { | ||
| export class ConfirmDeleteModalUI extends Component<Props, State> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove export
| You are about to delete your current space {name}. You will be redirected to choose a | ||
| different space if you continue. | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.confirmDeleteButton.redirectTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirmDeleteButton => confirmDeleteModal
💔 Build Failed |
| The settings on this page apply to the <strong>{props.space.name}</strong> space, unless | ||
| otherwise specified. | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.advancedSettingsSubtitle.settingsOnThisPageTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{message} => {spaceName}
settingsOnThisPageTitle => applyingSettingsOnPageToSpaceDescription
| You are about to delete your current space {name}. You will be redirected to choose a | ||
| different space if you continue. | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.confirmDeleteModal.redirectTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redirectTitle => redirectAfterDeletingCurrentSpaceWarningMessage
| <EuiModalHeaderTitle data-test-subj="confirmModalTitleText"> | ||
| Delete space {`'${space.name}'`} | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.confirmDeleteModal.confirmDeletingButtonLabel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confirmDeletingButtonLabel => confirmDeleteSpaceButtonLabel
| Deleting a space permanently removes the space and{' '} | ||
| <strong>all of its contents</strong>. You can't undo this action. | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.confirmDeleteModal.permanentlyRemovingAllSpacesTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
permanentlyRemovingAllSpacesTitle => deletingSpaceWarningMessage
| allContents: ( | ||
| <strong> | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.management.confirmDeleteModal.allContentsTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allContentsTitle => allContentsText
| id: 'xpack.spaces.view.management.spacesGrid.spacesGridPage.deleteNameTitle', | ||
| defaultMessage: 'Delete', | ||
| }), | ||
| description: intl.formatMessage({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above
| no spaces found{' '} | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.navControl.spacesMenu.noSpacesFoundTitle" | ||
| defaultMessage=" no spaces found " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check that spaces you added around no spaces found are displayed. If no, use {' '} like it was done before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tibmt Has this been checked?
| <p>You can change your space at anytime.</p> | ||
| <p> | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.spaceSelector.spaceSelector.youCanChangeSpaceAnytimeTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
youCanChangeSpaceAnytimeTitle => changingSpaceDescription
| > | ||
| No spaces match search criteria | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.spaceSelector.spaceSelector.noSpacesMatchSearchTitle" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noSpacesMatchSearchTitle => noSpacesMatchSearchCriteriaDescription
| className="spaceSelector__searchField" | ||
| placeholder="Find a space" | ||
| placeholder={intl.formatMessage({ | ||
| id: 'xpack.spaces.view.spaceSelector.spaceSelector.findSpaceTitle', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again. it is placeholder, not title.
findSpaceTitle => findSpacePlaceholder
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
|
this PR is blocked by #24527 |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
|
retest |
💔 Build Failed |
joshdover
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just checking in on a couple of the comments Pavel left.
| { | ||
| name: 'Edit', | ||
| description: 'Edit this space.', | ||
| name: intl.formatMessage({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this and the two below still need to be updated?
| no spaces found{' '} | ||
| <FormattedMessage | ||
| id="xpack.spaces.view.navControl.spacesMenu.noSpacesFoundTitle" | ||
| defaultMessage=" no spaces found " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tibmt Has this been checked?
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
* Translate Spaces component * fix one little error * update Spaces component * update translation of Spaces components * Update snapshots * update Space translation - intl type * update Space translation - remove view/views id namespace * rename ids * use testing helper functions instead of shallow, render, mount from enzyme * fix unit tests * fix ts path for enzyme test helpers * fix path to enzyme helpers test functions * Update snapshots * fix path to enzyme test helpers * Remove unused dependency.
* Translate Spaces component * fix one little error * update Spaces component * update translation of Spaces components * Update snapshots * update Space translation - intl type * update Space translation - remove view/views id namespace * rename ids * use testing helper functions instead of shallow, render, mount from enzyme * fix unit tests * fix ts path for enzyme test helpers * fix path to enzyme helpers test functions * Update snapshots * fix path to enzyme test helpers * Remove unused dependency.
💚 Build Succeeded |
Translation of Spaces component