Uploaded image for project: 'Atlassian Internationalization'
  1. Atlassian Internationalization
  2. I18N-4365

People and teams are not loading language strings correct on server-side

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • Confluence Cloud
    • None
    • ALL Languages

      Visit: https://at-perfpm.jira-dev.com/wiki/home?NO_SPA=1 

      Teams is not translated.

       

      This is because people-and-teams had their own IntlProvider that loads translations in a useEffect hook. This hook is no-op on the server-side. Thus falling back to English.

      Platform components should not make their own providers. Instead they should just add the strings to product which would be handled automatically https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/confluence/next/packages/i18n/src/messages.ts

              5ea989f9aff3 Qiang Zeng
              rading Ran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: