mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
I18n:Mark up phrases for translation on Folder Page (#70801)
* I18n:Mark up phrases for translation on Folder Page * I18n:Mark up phrases for translation on Folder Page, made suggested updates
This commit is contained in:
committed by
GitHub
parent
0259ae2630
commit
9e844b36b2
@@ -4,7 +4,7 @@ import { locationService, reportInteraction } from '@grafana/runtime';
|
|||||||
import { Button, Drawer, Dropdown, Icon, Menu, MenuItem } from '@grafana/ui';
|
import { Button, Drawer, Dropdown, Icon, Menu, MenuItem } from '@grafana/ui';
|
||||||
import { Permissions } from 'app/core/components/AccessControl';
|
import { Permissions } from 'app/core/components/AccessControl';
|
||||||
import { appEvents, contextSrv } from 'app/core/core';
|
import { appEvents, contextSrv } from 'app/core/core';
|
||||||
import { Trans } from 'app/core/internationalization';
|
import { Trans, t } from 'app/core/internationalization';
|
||||||
import { AccessControlAction, FolderDTO } from 'app/types';
|
import { AccessControlAction, FolderDTO } from 'app/types';
|
||||||
import { ShowModalReactEvent } from 'app/types/events';
|
import { ShowModalReactEvent } from 'app/types/events';
|
||||||
|
|
||||||
@@ -86,11 +86,15 @@ export function FolderActionsButton({ folder }: Props) {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const managePermissionsLabel = t('browse-dashboards.folder-actions-button.manage-permissions', 'Manage permissions');
|
||||||
|
const moveLabel = t('browse-dashboards.folder-actions-button.move', 'Move');
|
||||||
|
const deleteLabel = t('browse-dashboards.folder-actions-button.delete', 'Delete');
|
||||||
|
|
||||||
const menu = (
|
const menu = (
|
||||||
<Menu>
|
<Menu>
|
||||||
{canViewPermissions && <MenuItem onClick={() => setShowPermissionsDrawer(true)} label="Manage permissions" />}
|
{canViewPermissions && <MenuItem onClick={() => setShowPermissionsDrawer(true)} label={managePermissionsLabel} />}
|
||||||
{canMoveFolder && <MenuItem onClick={showMoveModal} label="Move" />}
|
{canMoveFolder && <MenuItem onClick={showMoveModal} label={moveLabel} />}
|
||||||
{canDeleteFolder && <MenuItem destructive onClick={showDeleteModal} label="Delete" />}
|
{canDeleteFolder && <MenuItem destructive onClick={showDeleteModal} label={deleteLabel} />}
|
||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": ""
|
"tags-column": ""
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": ""
|
"delete": "",
|
||||||
|
"folder-actions": "",
|
||||||
|
"manage-permissions": "",
|
||||||
|
"move": ""
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "",
|
"clear": "",
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": "Tags"
|
"tags-column": "Tags"
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": "Folder actions"
|
"delete": "Delete",
|
||||||
|
"folder-actions": "Folder actions",
|
||||||
|
"manage-permissions": "Manage permissions",
|
||||||
|
"move": "Move"
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "Clear search and filters",
|
"clear": "Clear search and filters",
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": ""
|
"tags-column": ""
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": ""
|
"delete": "",
|
||||||
|
"folder-actions": "",
|
||||||
|
"manage-permissions": "",
|
||||||
|
"move": ""
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "",
|
"clear": "",
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": ""
|
"tags-column": ""
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": ""
|
"delete": "",
|
||||||
|
"folder-actions": "",
|
||||||
|
"manage-permissions": "",
|
||||||
|
"move": ""
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "",
|
"clear": "",
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": "Ŧäģş"
|
"tags-column": "Ŧäģş"
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": "Főľđęř äčŧįőʼnş"
|
"delete": "Đęľęŧę",
|
||||||
|
"folder-actions": "Főľđęř äčŧįőʼnş",
|
||||||
|
"manage-permissions": "Mäʼnäģę pęřmįşşįőʼnş",
|
||||||
|
"move": "Mővę"
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "Cľęäř şęäřčĥ äʼnđ ƒįľŧęřş",
|
"clear": "Cľęäř şęäřčĥ äʼnđ ƒįľŧęřş",
|
||||||
|
|||||||
@@ -10,7 +10,10 @@
|
|||||||
"tags-column": ""
|
"tags-column": ""
|
||||||
},
|
},
|
||||||
"folder-actions-button": {
|
"folder-actions-button": {
|
||||||
"folder-actions": ""
|
"delete": "",
|
||||||
|
"folder-actions": "",
|
||||||
|
"manage-permissions": "",
|
||||||
|
"move": ""
|
||||||
},
|
},
|
||||||
"no-results": {
|
"no-results": {
|
||||||
"clear": "",
|
"clear": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user