Skip to content

feat(CLI): Support locale_mapping on push #SCD-863#1088

Open
jablan wants to merge 12 commits intomainfrom
scd-863-add-language-mapping-push
Open

feat(CLI): Support locale_mapping on push #SCD-863#1088
jablan wants to merge 12 commits intomainfrom
scd-863-add-language-mapping-push

Conversation

@jablan
Copy link
Copy Markdown
Collaborator

@jablan jablan commented Apr 7, 2026

Apply locale_mapping (custom named locales interpolated using <locale_name> in the file names) also on push.

@jablan jablan changed the title feat(CLI): Support locale_mapping on push #SCD-863 feat(CLI): Support locale_mapping on push #SCD-863 Apr 7, 2026
@jablan jablan marked this pull request as ready for review April 7, 2026 08:19
@jablan jablan requested a review from Copilot April 7, 2026 08:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for using locale_mapping during phrase push, enabling users to keep local locale identifiers in filenames while still uploading to the correct remote locales.

Changes:

  • Introduces shared helpers to apply locale mapping (remote → local) and reverse mapping (local → remote).
  • Applies reverse locale mapping during push locale-file discovery.
  • Adds a comprehensive CLI integration spec suite for push, including a new locale_mapping scenario.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
clients/cli/spec/push_spec.rb Adds integration specs covering push behavior, including locale_mapping.
clients/cli/cmd/internal/shared.go Adds mapping helper functions used by pull/push placeholder handling.
clients/cli/cmd/internal/push.go Applies reverse locale mapping when building locale files for push.
clients/cli/cmd/internal/push_source.go Plumbs LocaleMapping into sources and applies reverse mapping to locale fields.
clients/cli/cmd/internal/pull_target.go Switches pull placeholder replacement to use the new shared mapping helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants