Skip to content

Commit

Permalink
feat: save to download in i18n key
Browse files Browse the repository at this point in the history
  • Loading branch information
RostiMelk committed Apr 3, 2024
1 parent eff8cef commit a1b81b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@sanity/vision/src/components/VisionGui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ export class VisionGui extends PureComponent<VisionGuiProps, VisionGuiState> {
{!!queryResult && (
<DownloadsCard paddingX={4} paddingY={3} sizing="border">
<DownloadsContainer gap={3} align="center">
<Text muted>{t('result.save-result-as')}</Text>
<Text muted>{t('result.download-result-as')}</Text>
<Button
as="a"
download="query-result.json"
Expand Down
4 changes: 2 additions & 2 deletions packages/@sanity/vision/src/i18n/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ const visionLocaleStrings = defineLocalesResources('vision', {
/** Label for the "Query URL" field, shown after executing a query, and allows for copying */
'query.url': 'Query URL',

/** Label for "Save result as" result action */
'result.download-result-as': 'Save result as',
/** Label for "End to End time" information of the fetched query */
'result.end-to-end-time-label': 'End-to-end',
/** Label for "Execution time" information of the fetched query */
'result.execution-time-label': 'Execution',
/** Label for "Result" explorer/view */
'result.label': 'Result',
/** Label for "Save result as" result action */
'result.save-result-as': 'Save result as',
/**
* "Not applicable" message for when there is no Execution time or End to End time information
* available for the query (eg when the query has not been executed, or errored)
Expand Down

0 comments on commit a1b81b8

Please sign in to comment.