Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Italian language support (i18n) for Grafana OnCall frontend #5249

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

frasoprano251098
Copy link

@frasoprano251098 frasoprano251098 commented Nov 11, 2024

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 and i18next 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

    • Added unit tests to confirm translation loading and handling of default/fallback languages.
    • Updated relevant integration tests to validate language switching in the UI.
    • No e2e tests were required specifically for this change.
  • [] 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)]

@frasoprano251098 frasoprano251098 requested a review from a team as a code owner November 11, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Italian language support for the Grafana OnCall plugin (i18n)
1 participant