department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
280 stars 195 forks source link

Discovery - Investigating i18next Connection Issues in Non-React Environments #77588

Open harshil1793 opened 4 months ago

harshil1793 commented 4 months ago

Description

We have identified a discrepancy in the behavior of i18next between React and vanilla JavaScript environments. While translation functionalities are operating as expected within the React environment, the vanilla JavaScript setup is not working accordingly.

Related previous discovery documentation link: https://vfs.atlassian.net/wiki/spaces/DST/pages/2940370993/Discovery+Translation+support+for+web+components+outside+of+vets-website

Objective

The goal of this discovery issue is to determine the root cause of why i18next is not effectively connecting or initializing in environments outside of React. This will involve reviewing the configuration and setup of i18next, as well as understanding the differences in module resolution and import handling between the React and vanilla JavaScript setups.

Acceptance Criteria

A comprehensive understanding of why i18next is not connecting outside the React environment. Documented findings detailing the differences in setup and configuration that may contribute to the issue. Recommendations for resolving the connection issue for vanilla JavaScript environments.

caw310 commented 4 months ago

Hey team! Please add your planning poker estimate with Zenhub @Andrew565 @ataker @harshil1793 @it-harrison @jamigibbs @micahchiang @nickjg231 @powellkerry @rmessina1010 @rsmithadhoc