Skip to content

Comments

fix(i18n): implement robust translation fallback system for all locales#248

Merged
thebentern merged 1 commit intomeshtastic:mainfrom
dzienisz:feat/fallback-to-english-instead-of-keys
Sep 18, 2025
Merged

fix(i18n): implement robust translation fallback system for all locales#248
thebentern merged 1 commit intomeshtastic:mainfrom
dzienisz:feat/fallback-to-english-instead-of-keys

Conversation

@dzienisz
Copy link
Contributor

@dzienisz dzienisz commented Sep 18, 2025

Description

Implement robust translation fallback system for all locales to ensure users always see meaningful text instead of translation keys. This PR fixes the issue where raw translation keys like 'dfu.error_connection_title' were being displayed to users when Polish translations were missing or when the i18n system failed in Pinia store contexts.

Before (Polish language with missing translations)
Screenshot 2025-09-18 at 22 29 09

After (Polish language with missing translations and fallback to english)
Screenshot 2025-09-18 at 22 26 45

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Documentation update
  • Other (please describe):

Testing

  • I have tested these changes locally
  • I have added/updated tests as appropriate
  • All existing tests pass

Hardware Model Acceptance Policy

New Hardware Model Acceptance Policy

Due to limited availability and ongoing support, new Hardware Models will only be accepted from Meshtastic Backers and Partners. The Meshtastic team reserves the right to make exceptions to this policy.

Alternative for Community Contributors

You are welcome to use one of the existing DIY hardware models in your PlatformIO environment and create a pull request in the firmware project. Please note the following conditions:

  • The device will not be officially supported by the core Meshtastic team.
  • The device will not appear in the Web Flasher or Github release assets.
  • You will be responsible for ongoing maintenance and support.
  • Community-contributed / DIY hardware models are considered experimental and will likely have limited or no testing.

Getting Official Support

To have your hardware model officially supported and included in the Meshtastic ecosystem, consider becoming a Meshtastic Backer or Partner. Visit meshtastic.com for more information about partnership opportunities.


Protected Files Notice

The following files are protected and changes to them will be automatically rejected:

  • public/data/hardware-list.json - Auto-generated Hardware definitions (additionally see policy above)
  • types/resources.ts - Auto-generated resource definitions
  • i18n/locales/** - Translation files (managed via Crowdin)

@vercel
Copy link

vercel bot commented Sep 18, 2025

@dzienisz is attempting to deploy a commit to the Meshtastic Team on Vercel.

A member of the Team first needs to authorize it.

@dzienisz dzienisz changed the title feat: add i18n translation for reload button and configure Vue i18n settings i18n: Implement translation fallback system with store method fixes Sep 18, 2025
@dzienisz dzienisz changed the title i18n: Implement translation fallback system with store method fixes fix(i18n): implement robust translation fallback system for all locales Sep 18, 2025
@dzienisz dzienisz force-pushed the feat/fallback-to-english-instead-of-keys branch from 7cf72bb to 8117d6d Compare September 18, 2025 20:35
@dzienisz
Copy link
Contributor Author

@thebentern I needed to add actions.reload to not see a key (it was hardcoded) but I can also remove it and somebody can add it in CrowdIn

@thebentern thebentern merged commit a3ae22e into meshtastic:main Sep 18, 2025
0 of 3 checks passed
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.

2 participants