Skip to content

feat: hi locale#459

Merged
hmbanan666 merged 3 commits into
mainfrom
hi-locale
Jan 20, 2026
Merged

feat: hi locale#459
hmbanan666 merged 3 commits into
mainfrom
hi-locale

Conversation

@hmbanan666

@hmbanan666 hmbanan666 commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Снимок экрана 2026-01-20 в 14 16 42
Снимок экрана 2026-01-20 в 14 18 00


Summary by cubic

Adds full Hindi (hi-IN) locale across the app and content, enabling a complete Hindi storefront experience. Updates configs, schema, and tests; supported locales now 11+.

  • New Features
    • UI i18n: added hi-IN dictionary, wired into i18n.config, and exposed in Nuxt locale selector.
    • Channel/content: Hindi for pickup/delivery terms, payment methods, footer/legal, contacts, cities.
    • Catalog: Hindi names, descriptions, options, and badges for burgers, salads, soups, snacks, hot meals, and desserts.
    • Menu & options: Hindi for categories and default menu titles; marketing tagline texts localized.
    • Platform: added 'hi' to LocaleSchema and availableLocales; added INR to CurrencyCodeSchema; README updated; unit test for hi locale added.

Written for commit c322071. Summary will update on new commits.

Summary by CodeRabbit

  • New Features

    • Added Hindi (हिंदी) locale across the app: UI, menus, product catalog, channels, and checkout; Hindi now selectable in language settings.
    • Added INR as a supported currency.
  • Documentation

    • README updated to list Hindi and reflect 11+ supported locales.
  • Tests

    • Added unit test coverage for the Hindi locale.

✏️ Tip: You can customize this high-level summary in your review settings.

@hmbanan666 hmbanan666 self-assigned this Jan 20, 2026
@coderabbitai

coderabbitai Bot commented Jan 20, 2026

Copy link
Copy Markdown

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

Adds comprehensive Hindi (hi / hi-IN) localization across schema, UI i18n, Nuxt config, server options/menu/channel/product data, README, and a unit test. No public API or runtime control-flow changes; changes are primarily data and configuration additions.

Changes

Cohort / File(s) Summary
Documentation
README.md
Updated supported locales count and Multi-language feature to reflect Hindi addition (11+ locales).
Schema
packages/food-schema/src/types/common.ts
Added INR to CurrencyCodeSchema and hi to LocaleSchema.
Frontend i18n
packages/ui/i18n/i18n.config.ts, packages/ui/i18n/locales/hi-IN.ts, packages/ui/nuxt.config.ts
Added new hi-IN locale file, registered hi in i18n messages, and added Hindi to Nuxt i18n locales.
Frontend tests
packages/ui/test/unit/locales.test.ts
Added import and test asserting hi locale is importable and contains expected keys.
Server options & menu
apps/essence/server/services/options.ts, apps/essence/server/services/menu.ts
Included hi in availableLocales and added Hindi translations for selectorTitle/selectorDescription and menu/category titles.
Server channel config
apps/essence/server/services/channel.ts
Added Hindi translations across channel metadata: payment titles, pickup/delivery labels, links/footer, warehouse names/addresses, and city entries.
Server product data
apps/essence/server/services/data/products/*
.../burgers.ts, .../desserts.ts, .../hotMeals.ts, .../salads.ts, .../snacks.ts, .../soups.ts
Added hi translations for product titles, descriptions, variant names, portions, and badges across product categories (data-only changes).

Sequence Diagram(s)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • feat: el locale (greek) #455 — Adds a new locale across the same set of files (README, server data, schema, i18n config, nuxt config, and tests).
  • feat: it locale #456 — Parallel locale addition touching LocaleSchema, i18n config, nuxt locales, options, and server product/menu translations.
  • feat: fr locale #443 — Similar code-level changes adding a locale across i18n, schema, server data, and README.

Suggested labels

2.x

Poem

🐰 नमस्ते — मैंने भाषाओं में उछला,
नए शब्द जोड़े, हर मेन्यू में झलका,
बर्गर, सूप, मिठाई अब हिंदी में भी बोले,
चमकते तारों सा हर पेज मुस्काए बोले! 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: hi locale' directly and concisely describes the main change—adding Hindi locale support across the entire application.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cubic-dev-ai cubic-dev-ai Bot 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.

1 issue found across 15 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="apps/essence/server/services/data/products/desserts.ts">

<violation number="1" location="apps/essence/server/services/data/products/desserts.ts:257">
P2: Hindi translation says "whole pizza" instead of "whole pie", which mislabels the product for hi locale. Use a pie translation to match the product title.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread apps/essence/server/services/data/products/desserts.ts Outdated

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/essence/server/services/data/products/desserts.ts`:
- Around line 255-258: Replace the incorrect Hindi translation value 'संपूर्ण
पिज्जा' for the object with locale: 'hi' (the translation entry for the "Whole
pie" product) with the correct phrase 'पूरी पाई' so the label reads "Whole pie"
in Hindi; locate the translation object where locale: 'hi' and value: 'संपूर्ण
पिज्जा' and update the value to 'पूरी पाई'.

Comment on lines +255 to +258
{
locale: 'hi',
value: 'संपूर्ण पिज्जा',
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's locate and examine the desserts.ts file
find . -name "desserts.ts" -type f

Repository: nextorders/food

Length of output: 115


🏁 Script executed:

# Check the file size and read the relevant section
wc -l apps/essence/server/services/data/products/desserts.ts

Repository: nextorders/food

Length of output: 117


🏁 Script executed:

# Read the context around lines 255-258
sed -n '250,265p' apps/essence/server/services/data/products/desserts.ts

Repository: nextorders/food

Length of output: 403


🏁 Script executed:

# Read the broader context around this section to understand the product
sed -n '240,280p' apps/essence/server/services/data/products/desserts.ts

Repository: nextorders/food

Length of output: 943


🌐 Web query:

meaning of 'संपूर्ण पिज्जा' in Hindi

💡 Result:

"संपूर्ण पिज्जा" का अर्थ है "पूरा पिज्जा" या "एक पूरा/सम्पूर्ण पिज्जा"। [1][2]

Sources:
[1] Collins Hindi-English Dictionary — "संपूर्ण" = entire, complete.
[2] Wikipedia — "Pizza" (common noun for the food item).


🌐 Web query:

Hindi translation for "whole pie" or "entire pie"

💡 Result:

  • Whole/entire pie — पूरी पाई (also सारी पाई)
  • More formal: संपूर्ण पाई

Note: पाई is feminine in Hindi, so use feminine forms (पूरी / सारी).
Example: "I ate the whole pie." → "मैंने पूरी पाई खा ली।"


Fix Hindi translation for "Whole pie" label.

The current Hindi value 'संपूर्ण पिज्जा' translates to "whole pizza" instead of "whole pie." The product label should use 'पूरी पाई' for the correct translation.

Suggested fix
-        value: 'संपूर्ण पिज्जा',
+        value: 'पूरी पाई',
🤖 Prompt for AI Agents
In `@apps/essence/server/services/data/products/desserts.ts` around lines 255 -
258, Replace the incorrect Hindi translation value 'संपूर्ण पिज्जा' for the
object with locale: 'hi' (the translation entry for the "Whole pie" product)
with the correct phrase 'पूरी पाई' so the label reads "Whole pie" in Hindi;
locate the translation object where locale: 'hi' and value: 'संपूर्ण पिज्जा' and
update the value to 'पूरी पाई'.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/essence/server/services/data/products/desserts.ts`:
- Around line 188-191: The Hindi variant string "2 स्लाइस" is inconsistent with
the earlier translation "टुकड़ा"; update the locale entry that currently reads
locale: 'hi', value: '2 स्लाइस' to use the correct Hindi plural "2 टुकड़े" so it
matches the singular "टुकड़ा" used elsewhere (and scan the surrounding variants
in desserts.ts for other transliteration vs. translation inconsistencies and
normalize them to the Hindi words).
♻️ Duplicate comments (1)
apps/essence/server/services/data/products/desserts.ts (1)

255-258: LGTM - previous translation issue resolved.

The "Whole pie" translation is now correctly "संपूर्ण पाई" instead of the previously flagged "संपूर्ण पिज्जा" (whole pizza).

Comment thread apps/essence/server/services/data/products/desserts.ts
@hmbanan666 hmbanan666 merged commit f2240f8 into main Jan 20, 2026
8 checks passed
@hmbanan666 hmbanan666 deleted the hi-locale branch January 20, 2026 14:08
@hmbanan666 hmbanan666 added the 2.x label Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant