Skip to content

fix: move i18n languages to public folder #681

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

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

danditomaso
Copy link
Collaborator

Description

This PR follows the i18n best practices and moves all translation files into a sub dir within the public directory. All references have been updated to refer to this new location including github actions.

Related Issues

An issue occurred during our latest pre-release where translations were not available correctly copied into the distribution.

Changes Made

  • Moved all translation into public folder
  • Updated all github actions to reflect new folder location

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 19:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR moves i18n translation files to the public directory to follow best practices and fixes issues with translations not being properly copied into the distribution. Key changes include updating paths in configuration files, adjusting import statements, and revising file path references in GitHub workflows and documentation.

Reviewed Changes

Copilot reviewed 10 out of 180 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vite.config.ts Updated the destination path for translation files
src/pages/Messages.tsx Added an extra CSS class for correct flex layout
src/index.tsx Updated the import path for the i18n configuration
src/i18n-config.ts Modified loadPath to reflect the new translation file location
src/core/hooks/useLang.ts Adjusted import to use the new alias for i18n config
src/core/connection Updated subproject commit
src/components/LanguageSwitcher.tsx Updated import to use the new alias for i18n config
crowdin.yml Updated source and translation file paths
CONTRIBUTING_I18N_DEVELOPER_GUIDE.md Revised file reference to match the new translation location
.github/workflows/crowdin-upload-sources.yml Updated file paths for monitoring JSON translation files

Copy link

vercel bot commented Jun 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web-test ✅ Ready (Inspect) Visit Preview Jun 25, 2025 7:44pm

@danditomaso danditomaso changed the title fix: move i18n languages for best practices fix: move i18n languages to public folder Jun 25, 2025
@danditomaso danditomaso merged commit 85ee074 into meshtastic:main Jun 25, 2025
3 checks passed
@danditomaso danditomaso deleted the fix/move-i18n-folder branch June 25, 2025 20:21
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.

1 participant