Skip to content

Add localization support to genpage skill#44

Open
akshay-viz wants to merge 4 commits intomainfrom
feature/genpage-localization-support
Open

Add localization support to genpage skill#44
akshay-viz wants to merge 4 commits intomainfrom
feature/genpage-localization-support

Conversation

@akshay-viz
Copy link
Contributor

Adds multi-language support so generated components include language detection, translations, RTL layout, and user format settings when the environment has multiple configured languages.

  • SKILL.md: detect languages via pac model list-languages in Step 2, include localization in Step 4 plan, reference localization rules in Step 7 code generation
  • genpage-rules-reference.md: add full Localization section with language detection boilerplate, translation dictionary + t() helper, RTL support for Arabic/Hebrew, usersettings formatting helpers, and LCID reference table

Adds multi-language support so generated components include language
detection, translations, RTL layout, and user format settings when the
environment has multiple configured languages.

- SKILL.md: detect languages via `pac model list-languages` in Step 2,
  include localization in Step 4 plan, reference localization rules in
  Step 7 code generation
- genpage-rules-reference.md: add full Localization section with language
  detection boilerplate, translation dictionary + t() helper, RTL support
  for Arabic/Hebrew, usersettings formatting helpers, and LCID reference
  table

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@akshay-viz akshay-viz requested a review from a team as a code owner March 5, 2026 19:19
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
akshay-viz and others added 2 commits March 5, 2026 13:59
- Use retrieveRow with current user ID instead of queryTable for
  usersettings fetch (matches AIBuilder's CoderAgent pattern)
- Add anti-pattern examples for currency/number formatting to prevent
  common LLM mistakes (hardcoded $, hardcoded currency codes)
- Add note to keep date/currency formats out of translations dictionary

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The server resolves LCIDs dynamically via CultureInfo, and the agent
gets real LCID data from pac model list-languages output. The static
table was redundant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

3 participants