3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Commit Graph

203 Commits

Author SHA1 Message Date
Josh Hunt
54aaaf169f
Internationalization: Mark up more of Dashboard Variables and Browse/Search Dashboards ()
* Extract dirty translations from main

* Translate some variable phrases

* Translate nav bar

* Translate search/browse

* Fix header returning null

* Translate search results type

* fix test
2023-02-23 10:46:07 +00:00
Josh Hunt
504eabbe80
Navigation: Ensure command palette is correctly translated ()
* Navigation: Translate nav tree in store

* Remove usage of getNavTitle

* properly translate children

* add pubdash translation

* remove extraneous calls to translation in PageHeader

* empty commit

* correctly allow subtitle to be overrwitten (thank you tests!)

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-02-08 13:15:37 +00:00
Josh Hunt
5564b93e2f
CommandPalette: Move quick add actions to top level ()
* Move quick actions to top level

* Change quick action verb to "Create"

* create to 'new'

* fix comment

* update translations

* undo changing alerting
2023-02-07 16:10:43 +00:00
Gilles De Mey
702fd0f9e8
Docs: Update wording / text and copy ()
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2023-01-30 15:26:21 +00:00
Josh Hunt
d51e7ec7ef
Preferences: Add theme preference to match system theme ()
* user essentials mob! 🔱

lastFile:pkg/api/preferences.go

* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:packages/grafana-data/src/types/config.ts

* user essentials mob! 🔱

lastFile:public/app/core/services/echo/utils.test.ts

* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:public/views/index-template.html

* user essentials mob! 🔱

* Restore currentUser.lightTheme for backwards compat

* fix types

* Apply suggestions from code review

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* cleanup

* cleanup

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-01-30 10:51:51 +01:00
Josh Hunt
6c990b461e
SupportBundles: Feature flag + access control navtree item ()
* SupportBundles: Feature flag + access control navtree item

* remove translation
2023-01-27 20:04:04 +00:00
Ashley Harrison
1ef7cfda3f
Navigation: more command palette tweaks ()
* update placeholder text, only create search keybindings if topNavCommandPalette is disabled

* make search input wider
2023-01-27 16:21:48 +00:00
Torkel Ödegaard
504fec46d2
CommandPalette: Design tweaks and design fixes ()
* Command palette design tweaks start

* Fix some item styling issues

* Updated placeholder

* Style fixes

* Fix gradient border pos issue, and heading padding

* Fix header top margin

* Restore padding

* Update

* Change to md modal
2023-01-25 10:38:33 +01:00
Torkel Ödegaard
38d3d1c02b
Profile: Rename profile page from preferences to profile ()
* Rename preferences to Profile

* Fixed tests and ran i18 extract
2023-01-24 09:32:49 +01:00
Josh Hunt
665f85cd7e
CommandPalette: Minor usability improvements () 2023-01-16 18:33:46 +00:00
Alexa V
0eeeeef08b
PanelChrome: Refactor and refine items next to title ()
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Polina Boneva <13227501+polibb@users.noreply.github.com>
Co-authored-by: polinaboneva <polina.boneva@grafana.com>
2023-01-16 15:56:39 +00:00
TaitChan
a1d33c63c8
Internationalization: Translate page headers and Search dashboard actions ()
* Fix: PageHeader & PageHeaderTabs & NavBarItem & DashboardActions & PanelMenu is displayed in default_language ()

* I18N: update strings ()

Co-authored-by: TaitChan <1441645821@qq.coom>
2023-01-13 14:33:42 +00:00
Armand Grillet
331fa686e0
Preferences: Changed 'Edit profile' to 'Profile' ()
* Changed 'Edit profile' to 'Profile'

The profile is not always editable, e.g. when it is synec via OAuth,
and all the other sections of the preferences are titled without a
verb.

* Fix frontend test
2023-01-13 09:59:11 +01:00
Alex Khomenko
078f2d4481
Admin: Remove navigation subheaders ()
* Admin: Remove navigation subheaders

* Admin: Fix tests
2023-01-13 08:32:09 +02:00
Josh Hunt
5d725d22ad
CommandPalette: Search for dashboards using API ()
* CommandPalette: Search for dashboards using API

* Fix ordering of dashboards

* Put recent + search dashboards in root list, refactor actions into hook

* limit recent dashboards to 5

* search debounce to 200ms

* update priorities

* extract i18n
2023-01-10 14:59:32 +00:00
Josh Hunt
a26d4c90b2
I18N: Fail i18n:extract on warnings + update strings ()
* I18N: Fail i18n:extract on warnings

* I18N: Fix onboarding page title

* extract all strings

* move t reassign outside of function
2023-01-04 15:28:07 +00:00
Alex Khomenko
c3d13a0e2f
Admin: Combine org and admin user pages ()
* Admin: Add unified users page

* Admin: Combine admin and org components

* Admin: Add combined route

* Admin: Show combined page in nav

* Admin: Update translation

* Admin: Update description

* Admin: Update description on backend

* Admin: Update translations

* Admin: Use dynamic imports
2022-11-30 15:24:53 +02:00
Josh Hunt
f180bb46f8
I18n: Translate Dashboard Starred notification () 2022-11-23 13:12:33 +01:00
Josh Hunt
c02f2321c1
I18n: Fix variables not interpolating with pseudo localisation ()
* I18n: Don't pseudolocalise string variables

* clean up
2022-11-23 10:32:20 +00:00
Laura Fernández
8f567d57fa
Internationalization: Translate ViewJSONmodal and ClipboardButton () 2022-11-21 17:37:53 +01:00
Josh Hunt
5978dc138e
Nav: Split Admin into three sections for new IA ()
* start to split admin into two sections

* most of new admin nav implemented

* landing pages

* hide admin for non-admins

* update admin redirects if not topnav

* clean up

* updated IA for admin (still WIP)

* move plugin pages into correct admin sections

* fix backend unit test

* move correlations into the correct section

* add translations for admin sections

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-11-18 15:11:59 +00:00
Laura Fernández
f2cb248d93
Internationalization: Translate 'Hide / show legend' of PanelHeaderMenuItem () 2022-11-16 13:06:04 +01:00
Laura Fernández
515440979b
Internationalization: Translate ShareSnapshot label () 2022-11-16 13:04:51 +01:00
Laura Fernández
3f63ca06c3
Internationalization: Translate NavBar - 'Search dashboard' menu item () 2022-11-16 13:02:29 +01:00
Laura Fernández
3cedcdedbd
Internationalization: Translate VariableInput and VariableOptions components () 2022-11-15 17:30:33 +01:00
Laura Fernández
dd0d034796
Internationalization: Translate RefreshPicker component () 2022-11-14 17:47:15 +01:00
Laura Fernández
67bd0d5537
Internationalization: Translate TimeRangePicker component () 2022-11-14 17:16:34 +01:00
Laura Fernández
96d70c37bd
Internationalization: Translate TimeZonePicker component () 2022-11-08 17:25:35 +01:00
Laura Fernández
d0f173665f
Internationalization: Translate TimePickerContent component () 2022-11-08 16:30:03 +01:00
Laura Fernández
3790e105e5
Internationalization: Translate TimePickerFooter component () 2022-11-08 15:56:19 +01:00
Laura Fernández
c1d677c174
Internationalization: Translate TimeRangeContent component () 2022-11-08 14:55:50 +01:00
Laura Fernández
e5d4d00c1f
Internationalization: Translate CalendarFooter component () 2022-11-07 14:42:20 +01:00
Laura Fernández
b7efd46e2d
Internationalization: Translate TimeRangeList component () 2022-11-04 12:21:46 +01:00
Laura Fernández
813ebf988d
Internationalization: Translate TimePickerTitle component () 2022-11-03 16:03:28 +01:00
Josh Hunt
fc75076b72
I18n: Show languages in local names ()
* I18n: Show languages in local names

* fixed test
2022-10-21 05:29:03 -04:00
Ashley Harrison
8846778f9b
fix title of config node () 2022-10-12 16:37:14 +01:00
Josh Hunt
b7d969baf1
I18n: Improve tooling ()
* Delete en-US.json before extracting strings so it's always up to date

* Add 'comment' to message jsons

* Enable Pseudo-locale option only in dev mode

* don't load english messages

* fix package.json

* fix
2022-10-12 07:51:16 -04:00
Josh Hunt
719769ee7c
I18n: Add Chinese (Simplified) ()
* Prevent _old.json files from being created

* Add contrib docs for adding new locale

* add chinese (simplified)
2022-10-12 06:12:46 -04:00
Ashley Harrison
8348f486d9
Navigation: Make sure topnav is translated ()
* initial translation progress

* more nav translations

* add subtitle translations

* more specific gitignore path

* fix unit tests
2022-10-11 11:45:58 +01:00
kay delaney
0696cd3549
i18n: Fix unnecessary ampersand escaping () 2022-10-10 11:56:28 -04:00
Josh Hunt
5361efc225
I18n: Migrate to I18next ()
* Switch from lingui from i18next

* Change lingui messages to i18next messages

* Change lingui messages to i18next messages (grafana-ui)

* Init i18n for tests
2022-10-06 16:34:04 +01:00
Josh Hunt
615d86d902
Docs: Clarify contributions for translations ()
* Docs: Clarify contributions for translations

* add comment to messages.po files
2022-09-27 10:21:23 -04:00
Ryan McKinley
2db6a199b8
Preferences: Support setting any dashboard as home, not just the starred ones () 2022-08-26 12:40:40 -04:00
Joao Silva
a84873a52b
i18n: Translates the Share Panel modal () 2022-08-04 16:43:49 +01:00
eledobleefe
42e92665f3
Internationalisation: Translate the Share modal () 2022-07-22 13:01:57 +02:00
Joao Silva
e3567c21d1
Internationalisation: Translates RefreshPicker and the dashboard toolbar () 2022-07-20 17:28:32 +01:00
Joao Silva
57273d4846
Internationalisation: Translates "Inspect panel" drawer () 2022-07-15 14:38:14 +01:00
eledobleefe
e565f69711
Internationalisation: Translates the panel header menu () 2022-07-14 11:09:58 +02:00
Ashley Harrison
ee3f4f1709
Navigation: Display Starred dashboards in the Navbar ()
* remove feature toggle, add empty state and fix bug with initial starring

* Extract empty message into lingui

* remove full stop

* add empty message in the backend

* remove unused import

* translate starred + empty starred states

* betterer changes
2022-06-27 15:41:00 +01:00
Polina Boneva
496c2e26f4
I18n: User and Org Preferences allow change of Language ()
* add locale selection settings under preferences; Alpha feature toggle;

* extract components' ids for internationalisation references

* migrate OrgDetailsPage tests from Enzyme to RTL

* test locale selection in shared preferences

* fix OrgDetailsPage needing a fetch polyfill; "Real fetch shouldn't be being hit." - Josh

* remove snapshot

* remove snapshot
2022-06-23 11:20:31 +03:00
Peter Holmberg
e3a51a4aa8
Alerting: Add legacy indicator to navbar ()
* update id and add translation key

* remove logs
2022-05-25 15:30:37 +02:00
Josh Hunt
c6ce629fd8
I18n: Translate navigation items ()
* I18n: Translate navigation items

* improve comment, remove console.log

* update mock macros

* Mark up all phrases for translation

* added deprecate text comment, moved translations to a seperate file

* use TestProvider in NavBarItem

* use TestProvider in nav tests

* remove text deprecation comment

* update translations
2022-01-31 03:41:58 +01:00
Josh Hunt
36983d8d3b
Chore: Mark up User Profile page for translation ()
* Mark up User profile page for translation

* Extract new messages

* updated selectors

* update selectors

* wip TestProvider

* update tests

* fix field labels

* extract new messages

* don't store date objects in redux state

* don't store date objects in redux state
2022-01-17 16:58:49 +00:00