pre-commit hooks
For all hooks, there are two different ways to set input paths, using first
positional arguments inside args
property or the files
property as a
regex.
md2po
The --save
and --quiet
options are passed automatically to md2po
,
so you don’t need to specify them.
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: md2po
args:
- README.md
- -p
- README.es.po
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: md2po
files: ^README\.md
args:
- -p
- README.es.po
See also
po2md
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: po2md
args:
- README.md
- -p
- README.es.po
- -s
- README.es.md
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: po2md
files: ^README\.md
args:
- -p
- README.es.po
- -s
- README.es.md
See also
md2po2md
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: md2po2md
args:
- README.md
- -l
- es
- fr
- -o
- locale/{lang}
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: md2po2md
files: ^README\.md
args: ['-l', 'es', 'fr', '-o', 'locale/{lang}']
See also
mdpo2html
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: mdpo2html
args:
- README.html
- -p
- README.po
- -s
- README.es.html
- repo: https://github.com/mondeja/mdpo
rev: v2.1.3
hooks:
- id: mdpo2html
files: ^README\.html
args:
- -p
- README.po
- -s
- README.es.html
See also