Skip to content

Begin Nepali localization - #1205

Draft
AJT14-cmd wants to merge 2 commits into
wordplaydev:mainfrom
AJT14-cmd:nepali-locale
Draft

Begin Nepali localization#1205
AJT14-cmd wants to merge 2 commits into
wordplaydev:mainfrom
AJT14-cmd:nepali-locale

Conversation

@AJT14-cmd

Copy link
Copy Markdown

Context

Begins the Nepali (ne-NP) localization. The term and token
sections are manually translated. Other entries retain their $?
English fallback text and still require translation and review.

Related issues

  • Related Issue # 1204

Verification

  • Ran Prettier on ne-NP.json
  • Ran the locale verifier
  • All 2,870 unit tests pass

Checklist

  • Translate term and token in ne-NP.json
  • Translate remaining locale sections
  • Translate tutorial
  • Add emoji annotations
  • Translate how-to content

amyjko added a commit that referenced this pull request Jun 29, 2026
First full Claude translation of Nepali: locale strings, complete + quick
tutorials, 27 how-tos, and CLDR-derived emoji names. Validated: $?=0 across
locale and both tutorials, no marker accumulation. Glossary words and embedded
how-to code came back in English (Claude's tendency for Nepali technical
vocabulary, not a pipeline defect) and are left for the human Nepali translator
to refine. (#1204, #1205)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
tiaL-ops pushed a commit to tiaL-ops/wordplay that referenced this pull request Jul 2, 2026
…etadata

Make emoji generation part of the translation run, and remove the one-off
LocaleToCLDR map by deriving CLDR annotation codes from canonical language
metadata.

- start.ts now generates a locale's {locale}-emojis.json in-process during a
  translate/override run (best-effort; a CLDR/network failure warns and the run
  continues), so a new/updated locale gets emojis without a separate step.
- Convert scripts/generate-emojis.mjs → src/util/verify-locales/generateEmojis.ts:
  a typed module that imports SupportedLocales + getCLDRCandidates directly
  (no regex-parsing, no hardcoded map), writes via writeFormatted (Prettier-clean,
  write-if-changed), and exports generateEmojisForLocale + a CLI entry.
- LanguageCode.ts: add `cldr` (base override, tl→fil) and `cldrByRegion` (script
  overrides, zh→zh_Hant for TW/HK/MO) to LanguageMetadata, plus getCLDRCandidates
  that derives the per-locale candidate list. This also fixes locales the hand
  map had missed/mistyped (sv-SE, bn-BD, id-ID, ro-RO, pt-PT) which silently fell
  back to English emoji names.
- Enable Nepali (ne-NP) in DraftLocales (wordplaydev#1204/wordplaydev#1205).
- npm: locales-emojis → tsx; delete the old .mjs.

Co-Authored-By: Claude Opus 4.8 (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.

1 participant