Skip to content
Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 30 Oct 02:32
· 106 commits to master since this release
914a00f

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.