Skip to content

feat: add locale management commands#66

Merged
angeloashmore merged 1 commit intomainfrom
aa/locale-commands
Mar 24, 2026
Merged

feat: add locale management commands#66
angeloashmore merged 1 commit intomainfrom
aa/locale-commands

Conversation

@angeloashmore
Copy link
Member

@angeloashmore angeloashmore commented Mar 24, 2026

Resolves: #17

Description

Add prismic locale commands for managing repository locales: add, list, remove, and set-master. Locales are managed via the Prismic internal API.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1


Note

Medium Risk
Adds new CLI commands that mutate repository locale configuration via an internal API; mistakes or API changes could impact repo settings and user workflows.

Overview
Adds a new locale client (src/clients/locale.ts) and a prismic locale command group with add, list, remove, and set-master, wired into the top-level CLI router.

The commands call the internal locale API to fetch locales, upsert a locale (optionally setting master and custom name), delete a locale, and validate/set the master locale with user-friendly error messages.

Extends E2E coverage with new serial locale tests, adds locale test helpers to test/prismic.ts, and updates Vitest to run *.serial.test.ts in a dedicated non-concurrent project to avoid shared-repo state conflicts.

Written by Cursor Bugbot for commit 2339750. This will update automatically on new commits. Configure here.

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

Add `prismic locale add|list|remove|set-master` commands for managing
repository locales via the Prismic internal API. Includes serial test
configuration in vitest for tests that mutate shared state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@angeloashmore angeloashmore marked this pull request as ready for review March 24, 2026 23:30
@angeloashmore angeloashmore merged commit b3507fb into main Mar 24, 2026
12 checks passed
@angeloashmore angeloashmore deleted the aa/locale-commands branch March 24, 2026 23:38
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.

Re-enable locale management commands

1 participant