Skip to content

Releases: seek-oss/vocab

@vocab/[email protected]

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

Patch Changes

@vocab/[email protected]

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

Patch Changes

@vocab/[email protected]

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/[email protected]

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

Patch Changes

@vocab/[email protected]

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/[email protected]

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

Patch Changes

@vocab/[email protected]

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

Patch Changes

@vocab/[email protected]

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

Patch Changes

@vocab/[email protected]

03 May 04:44
01334df
Compare
Choose a tag to compare

Patch Changes

@vocab/[email protected]

03 May 04:44
01334df
Compare
Choose a tag to compare

Patch Changes