Skip to content

Latest commit

 

History

History
95 lines (75 loc) · 1.11 KB

migration-guide.md

File metadata and controls

95 lines (75 loc) · 1.11 KB

Migration Guide

This guide targets migration of the po2mo.json configuration to the latest version.

v1.4.0 and below

Breaking Changes:

Renamed Entry files to tasks

Before

{
  "files": [
    {
      "input": "./input.po",
      "output": "./output.mo"
    }
  ]
}

After

{
  "tasks": [
    {
      "input": "./input.po",
      "output": "./output.mo"
    }
  ]
}

Deprecated Wildcard *

Drop the * wildcard to match all PO files inside a directory.

Before

{
  "files": [
    {
      "input": "./locale/ko/*",
      "output": "./locale/ko/*"
    }
  ]
}

After

{
  "tasks": [
    {
      "input": "./locale/ko"
    }
  ]
}

Set recursive to true to match all PO files recursively.

Before

{
  "files": [
    {
      "input": "./locale/**/*",
      "output": "./locale/**/*"
    }
  ]
}

After

{
  "tasks": [
    {
      "input": "./locale",
      "recursive": true
    }
  ]
}