lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Align demo apps to a consistent set of locales

Open siddhesh1051 opened this issue 1 year ago • 6 comments

Issue: Locales/language options in all demo apps are inconsistent

  • Problem: The supported locales were inconsistent across demo apps.
    • react-router-app: only de, en, es, fr
    • adonisjs: only en, es
    • next-app: ar, de, en, es, fr, ja, ko, ru, zh
  • Impact: Confusing DX; switching between demos produced different locale behavior and missing translations during build.

Proposed fix

  • Standardize all demos to the same set as next-app: ar, de, en, es, fr, ja, ko, ru, zh.

  • All demos declare the same targetLocales in their compiler config.

  • UI LocaleSwitchers expose the same set of locales.

  • No manual edits to dictionaries; they are compiler-generated at build/dev.

siddhesh1051 avatar Oct 29 '25 20:10 siddhesh1051

@sumitsaurabh927 Noticed this inconsistency, I have worked on the issue, Linking the PR, Hope it helps

siddhesh1051 avatar Oct 29 '25 20:10 siddhesh1051

#1325

siddhesh1051 avatar Oct 29 '25 20:10 siddhesh1051

Thanks for the PR @siddhesh1051 but from now on, please wait to get assigned to an issue first before working on it.

That way your work doesn't amount to nothing in the issue isn't accepted for whatever reason.

If you feel like pushing a PR because you want to be the first one to contribute and are afraid that somebody else will add a PR to your issue, please keep this in mind:

Image

sumitsaurabh927 avatar Oct 31 '25 19:10 sumitsaurabh927

Thanks for the clarification @sumitsaurabh927 🙏 I completely understand now — I’ll make sure to wait for assignment before starting work on any issue going forward. For this one, I had opened the issue myself and went ahead with the fix to validate the approach early. If you feel the issue and PR are valid, please assign it to me for now. Otherwise, happy to close it if it’s not needed.

Cheers ✌️

siddhesh1051 avatar Nov 01 '25 10:11 siddhesh1051

@davidturnbull review pls 🙏

sumitsaurabh927 avatar Nov 03 '25 19:11 sumitsaurabh927

We've just discussed this with the team and decided that having to keep a synchronized list of locales across all the demo apps would create an unnecessary maintenance for the team in the long run. Closing.

maxprilutskiy avatar Nov 10 '25 07:11 maxprilutskiy