feat: Add Italian language support (i18n) for Grafana OnCall frontend #5249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does
This PR introduces partial Italian language support for the Grafana OnCall plugin by implementing i18n (internationalization) in the frontend components. To achieve this, I used the
react-i18next
andi18next
libraries, which streamline the translation process and allow easy future additions of other languages if required.Which issue(s) this PR closes
Closes #5248
Implementation Details
This PR includes the initial setup for Italian translations, with integration into several components within the Grafana OnCall frontend. The following files have been updated to support i18n:
grafana-plugin/src/components/CursorPagination/CursorPagination.tsx
grafana-plugin/src/components/Tutorial/Tutorial.tsx
grafana-plugin/src/containers/RemoteFilters/RemoteFilters.tsx
grafana-plugin/src/pages/incident/Incident.helpers.tsx
grafana-plugin/src/pages/incidents/Incidents.tsx
grafana-plugin/src/pages/incidents/parts/SilenceSelect.tsx
These files now incorporate
react-i18next
hooks for language management, and relevant strings have been extracted and translated into Italian within the i18n configuration.Checklist
[] Unit, integration, and e2e tests updated
[] Documentation added (or
pr:no public docs
PR label added if not required)[] Release notes label added (see labels prefixed w/
release:
). These labels dictate how your PR will show up in the autogenerated release notes.Related Issue
[Issue #5248 - Add Italian language support for the Grafana OnCall plugin (i18n)]