grafana/public/app/features/search/tempI18nPhrases.ts
Tobias Skarhed 4b047b62a7
NestedFolders: Button for creating new dashboards and and folders (#67260)
* Add CreateNewButton and tests

* Add translation support

* Move reused phrases to temp common file

* Use just a simple button

---------

Co-authored-by: joshhunt <josh@trtr.co>
2023-04-27 11:43:20 +01:00

27 lines
892 B
TypeScript

// Temporary place to collect phrases we reuse between new and old browse/search
// TODO: remove this when new Browse Dashboards UI is no longer feature flagged
import { t } from 'app/core/internationalization';
export function getSearchPlaceholder(includePanels = false) {
return includePanels
? t('search.search-input.include-panels-placeholder', 'Search for dashboards, folders, and panels')
: t('search.search-input.placeholder', 'Search for dashboards and folders');
}
export function getNewDashboardPhrase() {
return t('search.dashboard-actions.new-dashboard', 'New Dashboard');
}
export function getNewFolderPhrase() {
return t('search.dashboard-actions.new-folder', 'New Folder');
}
export function getImportPhrase() {
return t('search.dashboard-actions.import', 'Import');
}
export function getNewPhrase() {
return t('search.dashboard-actions.new', 'New');
}