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

Version Packages #171

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Version Packages #171

merged 1 commit into from
Oct 30, 2023

Conversation

seek-oss-ci
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@vocab/cli@1.4.0

Minor Changes

  • 161d698 #170 Thanks @jasoncheng-jora! - Error on no translation for global key

    By default, vocab pull will not error if a translation is missing in Phrase for a translation with a global key.
    If you want to throw an error in this situation, pass the --error-on-no-global-key-translation flag:

    EXAMPLE USAGE:

    vocab pull --error-on-no-global-key-translation

Patch Changes

  • Updated dependencies [161d698, 161d698]:
    • @vocab/phrase@1.3.0
    • @vocab/core@1.5.0

@vocab/core@1.5.0

Minor Changes

  • 161d698 #170 Thanks @jasoncheng-jora! - vocab push and vocab pull can support global keys mapping. When you want certain translations to use a specific/custom key in Phrase, add the globalKey to the structure.

    EXAMPLE USAGE:

    // translations.json
    {
      "Hello": {
        "message": "Hello",
        "globalKey": "hello"
      },
      "Goodbye": {
        "message": "Goodbye",
        "globalKey": "app.goodbye.label"
      }
    }

    In the above example,

    • vocab push will push the hello and app.goodbye.label keys to Phrase.
    • vocab pull will pull translations from Phrase and map them to the hello and app.goodbye.label keys.

@vocab/phrase@1.3.0

Minor Changes

  • 161d698 #170 Thanks @jasoncheng-jora! - vocab push and vocab pull can support global keys mapping. When you want certain translations to use a specific/custom key in Phrase, add the globalKey to the structure.

    EXAMPLE USAGE:

    // translations.json
    {
      "Hello": {
        "message": "Hello",
        "globalKey": "hello"
      },
      "Goodbye": {
        "message": "Goodbye",
        "globalKey": "app.goodbye.label"
      }
    }

    In the above example,

    • vocab push will push the hello and app.goodbye.label keys to Phrase.
    • vocab pull will pull translations from Phrase and map them to the hello and app.goodbye.label keys.
  • 161d698 #170 Thanks @jasoncheng-jora! - Add an optional errorOnNoGlobalKeyTranslation flag to pull function. If set to true, it will error if a translation is missing in Phrase for a translation with a global key.

    EXAMPLE USAGE:

    import { pull } from '@vocab/phrase';
    
    const vocabConfig = {
      devLanguage: 'en',
      language: ['en', 'fr'],
    };
    
    await pull(
      { branch: 'myBranch', errorOnNoGlobalKeyTranslation: true },
      vocabConfig,
    );

Patch Changes

  • Updated dependencies [161d698]:
    • @vocab/core@1.5.0

@vocab/react@1.1.8

Patch Changes

  • Updated dependencies [161d698]:
    • @vocab/core@1.5.0

@vocab/types@1.3.3

Patch Changes

  • Updated dependencies [161d698]:
    • @vocab/core@1.5.0

@vocab/webpack@1.2.4

Patch Changes

  • Updated dependencies [161d698]:
    • @vocab/core@1.5.0

@seek-oss-ci seek-oss-ci requested a review from a team as a code owner October 30, 2023 02:27
@askoufis askoufis merged commit 914a00f into master Oct 30, 2023
4 checks passed
@askoufis askoufis deleted the changeset-release/master branch October 30, 2023 02:32
jahredhope pushed a commit that referenced this pull request Jul 11, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.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.

None yet

2 participants