RoyLee1224 commented on PR #51166: URL: https://github.com/apache/airflow/pull/51166#issuecomment-2921555317
Regarding the `i18next-http-backend` implementation in PR #51123, just a friendly reminder that to allow it to handle lazy loading, we'll likely want to move the translation files (the `locales` folder) to the `public` directory. After this adjustment, our directory structure might look something like this: ``` ui/ ├── public/ <-- move the translation files to public │ ├── locales/ │ ├── en/ │ │ ├── common.json │ │ └── dashboard.json │ ├── de/ │ │ ├── common.json │ │ └── dashboard.json │ └── other languages... │ ├── src/ │ ├── components/ │ │ └── ... │ │ │ ├── main.tsx │ ├─i18n/ │ └── config.ts <-- implement i18next-http-backend here │ ``` So we'd need to update the `rules/i18n.js` configuration accordingly. Just wanted to share this thought and see if this is already part of the plan :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org