diff --git a/public/app/features/browse-dashboards/components/NewFolderForm.tsx b/public/app/features/browse-dashboards/components/NewFolderForm.tsx index 9a426df9d1a..835fc20514a 100644 --- a/public/app/features/browse-dashboards/components/NewFolderForm.tsx +++ b/public/app/features/browse-dashboards/components/NewFolderForm.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Button, Input, Form, Field, HorizontalGroup } from '@grafana/ui'; +import { Trans, t } from 'app/core/internationalization'; import { validationSrv } from '../../manage-dashboards/services/ValidationSrv'; @@ -29,12 +30,14 @@ export function NewFolderForm({ onCancel, onConfirm }: Props) { } }; + const fieldNameLabel = t('browse-dashboards.new-folder-form.name-label', 'Folder name'); + return (
onConfirm(form.folderName)}> {({ register, errors }) => ( <> @@ -48,9 +51,11 @@ export function NewFolderForm({ onCancel, onConfirm }: Props) { + - )} diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 4ca7563c22d..da7e2a9b153 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "", "move": "" }, + "new-folder-form": { + "cancel-label": "", + "create-label": "", + "name-label": "" + }, "no-results": { "clear": "", "text": "" diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index e6de8de84e0..a5f0d4e7712 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "Manage permissions", "move": "Move" }, + "new-folder-form": { + "cancel-label": "Cancel", + "create-label": "Create", + "name-label": "Folder name" + }, "no-results": { "clear": "Clear search and filters", "text": "No results found for your query." diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index e2b089bd445..b9f70e753f8 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "", "move": "" }, + "new-folder-form": { + "cancel-label": "", + "create-label": "", + "name-label": "" + }, "no-results": { "clear": "", "text": "" diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index bcdceac212a..4e34f1ee088 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "", "move": "" }, + "new-folder-form": { + "cancel-label": "", + "create-label": "", + "name-label": "" + }, "no-results": { "clear": "", "text": "" diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index a84c2203331..584cb5364b5 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "Mäʼnäģę pęřmįşşįőʼnş", "move": "Mővę" }, + "new-folder-form": { + "cancel-label": "Cäʼnčęľ", + "create-label": "Cřęäŧę", + "name-label": "Főľđęř ʼnämę" + }, "no-results": { "clear": "Cľęäř şęäřčĥ äʼnđ ƒįľŧęřş", "text": "Ńő řęşūľŧş ƒőūʼnđ ƒőř yőūř qūęřy." diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index 7cee00ecc5f..6e5d60048a5 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -38,6 +38,11 @@ "manage-permissions": "", "move": "" }, + "new-folder-form": { + "cancel-label": "", + "create-label": "", + "name-label": "" + }, "no-results": { "clear": "", "text": ""