8000 Add more translations to dashboard and introduce i18n test wrapper by scottcarol · Pull Request #5082 · linkerd/linkerd2 · GitHub
[go: up one dir, main page]

Skip to content

Add more translations to dashboard and introduce i18n test wrapper - #5082

Merged
scottcarol merged 5 commits into
mainfrom
cscott/i18n
Oct 22, 2020
Merged

scottcarol merged 5 commits into
mainfrom
cscott/i18n

Conversation

@scottcarol
Copy link
Copy Markdown
Contributor

Follow-up to #4866

Context: Although the majority of the dashboard text is already wrapped in <Trans> translation components, there are still some forms and help text that need to be wrapped.

This PR adds those translations and introduces an i18n wrapper into the front-end tests so that test files can have access to the translations if needed.

This PR should not change any UI when viewing in English.

Note: The front-end tests are currently only testing the language en but this can be expanded in the future to all existing languages we support.

@scottcarol
scottcarol requested a review from alpeb October 14, 2020 13:44
@scottcarol
scottcarol requested a review from a team as a code owner October 14, 2020 13:44
@scottcarol scottcarol self-assigned this Oct 14, 2020
Comment thread web/app/js/locales/en/messages.json Resolved
@alpeb alpeb left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @scottcarol !

Here's a list of things that I found haven't been translated yet:

  • Running Linkerd db709fd2 (git) at the bottom of the sidebar
  • In the Control Plane section:
    • Title Control Plane
    • The service mesh was successfully installed!
  • When looking at a pod:
    • LIVE CALLS and ROUTE METRICS
    • FROM and TO
    • In the dependency graph, when a pod is unmeshed it's titled with Unmeshed
    • In the popups, the table headers Source and Destination
  • Tap section:
    • Resource, To Resource dropdown titles
    • The Request Details popup contents haven't been translated
  • Top section:
    • Resource dropdown title
  • Top Routes section title
  • Community section title

Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
Comment thread web/app/js/locales/es/messages.json Resolved
@scottcarol
Copy link
Copy Markdown
Contributor Author

@alpeb Thanks for the review! I just pushed changes that should fill in the missing translations you listed in your comment.

@alpeb alpeb left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @scottcarol , I've added some more comments 🙂

Comment thread web/app/js/locales/es/messages.json Outdated
"columnTitleDeployment": "Deployment",
"columnTitleDestination": "Destino",
"columnTitleDirection": "Dirección",
"columnTitleFrom": "DE",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DESDE

Comment thread web/app/js/locales/es/messages.json Outdated
"columnTitleMethod": "Método",
"columnTitleName": "Nombre",
"columnTitleNamespace": "Namespace",
"columnTitleNoTraffic": "No Tráfico",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Hay Tráfico

Comment thread web/app/js/locales/es/messages.json Outdated
"columnTitleSource": "Fuente",
"columnTitleSuccessRate": "Tasa de éxito",
"columnTitleTap": "Tap",
"columnTitleTo": "Á",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HACIA

Comment thread web/app/js/locales/es/messages.json Outdated
"columnTitleSuccessRate": "Tasa de éxito",
"columnTitleTap": "Tap",
"columnTitleTo": "Á",
"columnTitleUnmeshed": "No en la malla de servicios",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ausente en la malla de servicios

Comment thread web/app/js/locales/es/messages.json Outdated
"tableTitleLeafServices": "Servicios Hoja",
"tableTitleOutbound": "Salida",
"tableTitlePods": "Pods",
"tableTitleRequestDetails": "Pedir Detalles",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detalle Solicitudes

@scottcarol
Copy link
Copy Markdown
Contributor Author

@alpeb Thanks, just pushed changes addressing your feedback.

@alpeb alpeb left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! 👍

@scottcarol
scottcarol requested a review from cpretzer October 21, 2020 15:52
@cpretzer cpretzer left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work @scottcarol

:shipit:

@scottcarol
scottcarol merged commit 79893c9 into main Oct 22, 2020
@scottcarol
scottcarol deleted the cscott/i18n branch October 22, 2020 04:25
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.

3 participants

0