Skip to content

Releases: seek-oss/vocab

@vocab/cli@1.4.0

30 Oct 02:32
914a00f
Compare
Choose a tag to compare

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/webpack@1.2.3

25 May 06:07
f171113
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [09b7179]:
    • @vocab/core@1.4.0

@vocab/types@1.3.2

25 May 06:07
f171113
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [09b7179]:
    • @vocab/core@1.4.0

@vocab/react@1.1.7

25 May 06:07
f171113
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [09b7179]:
    • @vocab/core@1.4.0

@vocab/phrase@1.2.8

25 May 06:07
f171113
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [09b7179]:
    • @vocab/core@1.4.0

@vocab/core@1.4.0

25 May 06:07
f171113
Compare
Choose a tag to compare

Minor Changes

  • 09b7179 #154 Thanks @askoufis! - Add TranslationKeys type

    The TranslationKeys type can be used to get a string literal union of all the translation keys used in a translation file.

    EXAMPLE USAGE

    // .vocab/en.translations.json
    {
      "Hello": {
        "message": "Hello"
      },
      "Goodbye": {
        "message": "Goodbye"
      }
    }

    After running vocab compile:

    import type { TranslationKeys } from '@vocab/core';
    import translations from './.vocab';
    
    // 'Hello' | 'Goodbye'
    type Keys = TranslationKeys<typeof translations>;

@vocab/cli@1.3.7

25 May 06:07
f171113
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [09b7179]:
    • @vocab/core@1.4.0
    • @vocab/phrase@1.2.8

@vocab/phrase@1.2.7

11 May 00:42
76e7f1a
Compare
Choose a tag to compare

Patch Changes

  • 45cd995 #152 Thanks @askoufis! - Upload translations in a separate file per language

    Fixes a regression introduced when support for Phrase tags was added.
    Part of adding support for tags involved swapping to uploading translations in a CSV file instead of a JSON file.
    This had the unintended (and undocumented) side-effect of creating missing languages in the target Phrase project.
    This is unnecessary in the case where the language doesn't actually have any translations and/or derives its translations from a parent language.
    Only languages that actually have translations (i.e. they have messages defined in a translations.json file) will be created in the target Phrase project.

@vocab/cli@1.3.6

11 May 00:42
76e7f1a
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [45cd995]:
    • @vocab/phrase@1.2.7

@vocab/phrase@1.2.6

04 May 05:19
7252a40
Compare
Choose a tag to compare

Patch Changes