Internationalisation: Manual mark up following review (#107625)

* mark up and add confirmText to lint rule

* mark up and add ariaLabel to lint rule

* add confirmText to propertiesToCheck

* mark up and add body to propsToCheck

* mark up latest

* mark up 'Dashboard saved'

* mark up filterbyvalue options

* mark up tooltip options

* mark up and add lint rules for noOptionsMessage/loadingMessage

* mark up 'Convert field type'

* mark up placeholderText/noOptionsMessage

* mark up run query

* mark up variable editor fields

* mark up week start options

* mark up dashboard link options

* mark up prom options

* mark up builder/code toggles

* make CI happy

* kick CI
This commit is contained in:
Ashley Harrison
2025-07-07 16:43:19 +01:00
committed by GitHub
parent a2a28b207c
commit 31b71f79dd
99 changed files with 953 additions and 297 deletions
@@ -28,11 +28,6 @@ export interface QueryHeaderProps {
queryRowFilter: QueryRowFilter;
}
const editorModes = [
{ label: 'Builder', value: EditorMode.Builder },
{ label: 'Code', value: EditorMode.Code },
];
export function QueryHeader({
db,
dialect,
@@ -51,6 +46,14 @@ export function QueryHeader({
const htmlId = useId();
const editorModes = [
{
label: t('grafana-sql.components.query-header.editor-modes.label-builder', 'Builder'),
value: EditorMode.Builder,
},
{ label: t('grafana-sql.components.query-header.editor-modes.label-code', 'Code'), value: EditorMode.Code },
];
const onEditorModeChange = useCallback(
(newEditorMode: EditorMode) => {
if (newEditorMode === EditorMode.Code) {