Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vocab pull use translation of custom key #165

Merged

Conversation

jasoncheng-jora
Copy link
Collaborator

@jasoncheng-jora jasoncheng-jora commented Oct 20, 2023

Context

We want to map translations using custom keys instead of default keys

Todos

  • When doing a vocab pull, we are getting a list of translations from Phrase. If a local translation has a custom global-key key, we map the translation using the custom key instead of the default key.
  • On global keys collide, throw error

@jasoncheng-jora jasoncheng-jora requested a review from a team as a code owner October 20, 2023 01:18
@changeset-bot
Copy link

changeset-bot bot commented Oct 20, 2023

🦋 Changeset detected

Latest commit: ec6f464

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@vocab/phrase Minor
@vocab/core Minor
@vocab/cli Patch
@vocab/react Patch
@vocab/types Patch
@vocab/webpack Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Collaborator

@adriankencana adriankencana left a comment

Choose a reason for hiding this comment

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

Looks good @jasoncheng-jora. There are some common changes we've done but in different files or on different lines. Let's merge yours in to our feature branch first, and then I'll pull the changes from it and consolidate the changes.

@jasoncheng-jora jasoncheng-jora merged commit 41532d9 into global-key-support Oct 20, 2023
4 checks passed
@jasoncheng-jora jasoncheng-jora deleted the Vocab-pull-use-translation-of-custom-key branch October 20, 2023 02:44
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