Internationalization: Translate TimePickerTitle component (#57909)

This commit is contained in:
Laura Fernández
2022-11-03 16:03:28 +01:00
committed by GitHub
parent 05f630a566
commit 813ebf988d
9 changed files with 56 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ const SearchTitle = ({ term }) => (
Prefer using `<Trans />` for JSX children, and `t()` for props and other javascript usage.
When translating in grafana-ui, import `<Trans />` and `t()` from `src/utils/i18n`.
When translating in grafana-ui, use a relative path to import `<Trans />` and `t()` from `src/utils/i18n`.
Note that our tooling must be able to statically analyse the code to extract the phrase, so the `i18nKey` can not be dynamic. e.g. the following will not work: