Skip to content

Commit

Permalink
Fix unprefixed i18n identifiers in visTypeVega plugin (#8406) (#8475)
Browse files Browse the repository at this point in the history
* Fix unprefixed i18n identifiers in visTypeVega plugin



* Changeset file for PR #8406 created/updated

---------



(cherry picked from commit 6f8710f)

Signed-off-by: Miki <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent 3fb549d commit 200986a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/8406.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fix:
- Fix unprefixed i18n identifiers in visTypeVega plugin ([#8406](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8406))
8 changes: 4 additions & 4 deletions src/plugins/vis_type_vega/public/data_model/search_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,21 @@ export class SearchAPI {
private getPPLRawResponseInspectorStats(response: RawPPLStrategySearchResponse['rawResponse']) {
const stats: RequestStatistics = {};
stats.hitsTotal = {
label: i18n.translate('data.search.searchSource.hitsTotalLabel', {
label: i18n.translate('visTypeVega.search.searchSource.hitsTotalLabel', {
defaultMessage: 'Hits (total)',
}),
value: `${response.total}`,
description: i18n.translate('data.search.searchSource.hitsTotalDescription', {
description: i18n.translate('visTypeVega.search.searchSource.hitsTotalDescription', {
defaultMessage: 'The number of documents that match the query.',
}),
};

stats.hits = {
label: i18n.translate('data.search.searchSource.hitsLabel', {
label: i18n.translate('visTypeVega.search.searchSource.hitsLabel', {
defaultMessage: 'Hits',
}),
value: `${response.size}`,
description: i18n.translate('data.search.searchSource.hitsDescription', {
description: i18n.translate('visTypeVega.search.searchSource.hitsDescription', {
defaultMessage: 'The number of documents returned by the query.',
}),
};
Expand Down

0 comments on commit 200986a

Please sign in to comment.