Skip to content

Fix Hindi translation file structure and verify build output#71

Merged
L3P3 merged 3 commits into
masterfrom
copilot/sub-pr-70
Feb 12, 2026
Merged

Fix Hindi translation file structure and verify build output#71
L3P3 merged 3 commits into
masterfrom
copilot/sub-pr-70

Conversation

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

The Hindi translation file had structural inconsistencies preventing correct integration with the build system.

Key structure fixes

  • Split concatenated keys to match reference format (ask_world_deleteask_world_delete_1 + ask_world_delete_2, same for error_conflict and warn_world_remote_missing)
  • Added 4 missing keys: error_world_is_opened, retry, surface_add, surfaces
  • Reordered all 107 keys to match German/English sequence
  • Fixed malformed translations (duplicate character in "yes": ह → हाँ)
  • Corrected spacing in version strings for proper concatenation

Build verification

  • Ran CI=true npm run build to generate all language files
  • Confirmed dist/app-in.js (51KB) and dist/app-in-ssr.html (855 bytes) generated correctly
  • Verified SSR HTML structure matches English (Hindi is LTR, renders correctly without special directionality attributes)

The split key pattern allows dynamic content injection:

locale_ask_world_delete_1 + world_selected.label + locale_ask_world_delete_2
// "वास्तव में दुनिया हटाना चाहते हैं " + "MyWorld" + "?"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: L3P3 <4629449+L3P3@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix hindi translation using german file as reference Fix Hindi translation file structure and key alignment Feb 12, 2026
Copilot AI requested a review from L3P3 February 12, 2026 08:34
Copilot AI changed the title Fix Hindi translation file structure and key alignment Fix Hindi translation file structure and verify build output Feb 12, 2026
@L3P3 L3P3 marked this pull request as ready for review February 12, 2026 09:04
Copilot AI review requested due to automatic review settings February 12, 2026 09:04
@L3P3 L3P3 changed the base branch from hindi-translation to master February 12, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes structural and key-format inconsistencies in the Hindi locale file (locales/in.csv) so it matches the project’s localization/build expectations and can be correctly compiled into language-specific build outputs.

Changes:

  • Split previously single-string interpolation keys into segmented keys (*_1..*_n) to match the concatenation pattern used by the app (e.g., delete confirmation and conflict/warning messages).
  • Added missing locale keys used by the UI (error_world_is_opened, retry, surface_add) and aligned key naming with the existing reference locales.
  • Corrected malformed/incorrect translations and adjusted spacing for version string concatenation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@L3P3 L3P3 merged commit d107a60 into master Feb 12, 2026
7 checks passed
@L3P3 L3P3 deleted the copilot/sub-pr-70 branch February 12, 2026 09:09
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.

4 participants