Skip to content

Commit

Permalink
Add ppl
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Feb 20, 2024
1 parent e5c1a64 commit 9900ca8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export function QueryLanguageSwitcher(props: Props) {
const sqlLabel = i18n.translate('data.query.queryBar.sqlLanguageName', {
defaultMessage: 'SQL',
});
const pplLabel = i18n.translate('data.query.queryBar.pplLanguageName', {
defaultMessage: 'PPL',
});

const languageOptions: EuiComboBoxOptionOption[] = [
{
Expand All @@ -64,6 +67,12 @@ export function QueryLanguageSwitcher(props: Props) {
// TODO: add option to disable if SQL is not supported
// disabled: true,
},
{
label: pplLabel,
value: 'ppl',
// TODO: add option to disable if PPL is not supported
// disabled: true,
},
];

const selectedLanguage = {
Expand Down

0 comments on commit 9900ca8

Please sign in to comment.