Skip to content

Instantly share code, notes, and snippets.

@malipetek
Last active September 27, 2021 13:40
Show Gist options
  • Save malipetek/5bf2d2901931ee36592e28c130717890 to your computer and use it in GitHub Desktop.
Save malipetek/5bf2d2901931ee36592e28c130717890 to your computer and use it in GitHub Desktop.
multi language schema is great but my client does not need it, I wanted to remove it to declutter section schema

open vscode paste following to find and replace, enable regexp and execute replace all, then execute second one

find: "(name|label|default|category)":\s\{\n(\s*"(?!en).+":\s*".+",?)+

replace: "$1": {

find: ("en":\s*".+"),\n(\s*"(?!en).+":\s*".+",?)+

replace: $1\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment