Skip to content

ASC apply round 7 — zh-Hant-TW still LOCALE_INVALID, try zh-Hant (no region) #37

Closed

Description

@wei18

Round 7 progressed: en-US was accepted (1× POST → 201). But zh-Hant-TW rejected with LOCALE_INVALID. Per Apple's ASC locale catalog, Game Center likely accepts zh-Hant (no region suffix) for Traditional Chinese.

Fix (1-line)

Packages/SudokuKit/Sources/ASCRegister/Config.swift ascLocaleCode(for:):

  • zh-Hant → zh-Hant-TW ❌
  • zh-Hant → zh-Hant ✓ (drop region suffix)

Possibly the same for zh-Hans (zh-Hans-CN may also be wrong → zh-Hans).

Update ConfigLocaleMappingTests assertions to match.

Discovery

swift run ASCRegister apply 2026-05-20 round 7. en-US accepted, zh-Hant-TW rejected on the next localization POST.
EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions