Skip to content

Update ExportData.tsx#7646

Closed
irbian wants to merge 1 commit intoTerriaJS:mainfrom
irbian:patch-1
Closed

Update ExportData.tsx#7646
irbian wants to merge 1 commit intoTerriaJS:mainfrom
irbian:patch-1

Conversation

@irbian
Copy link
Copy Markdown
Contributor

@irbian irbian commented Jun 5, 2025

i18n a fixed value

Test me

Go to dataset preview page and ensure "Export data" changes with each language

Checklist

  • Unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/. (No relevant documentation)
  • I've updated CHANGES.md with what I changed. (No relevant changes)
  • I've provided instructions in the PR description on how to test this PR.

i18n a fixed value
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jun 5, 2025

CLA assistant check
All committers have signed the CLA.

<div className={Styles.metadata}>
<button onClick={this.exportDataClicked.bind(this, catalogItem)}>
Export data
{this.props.t("workbench.exportData")}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to create a new translation key e.g. description.exportData or preview.exportData to better reason on where it is used. Also, the value of this translation key is Export, and the expected string in the UI is Export data.

@zoran995 zoran995 closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants