meta: Add translation ordering pre commit check
This commit is contained in:
@@ -7,3 +7,10 @@ repos:
|
|||||||
rev: v3.1.0a1
|
rev: v3.1.0a1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reuse
|
- id: reuse
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: ordered_translations
|
||||||
|
name: "Check translation ordering"
|
||||||
|
language: script
|
||||||
|
files: translations/.*
|
||||||
|
entry: ./check-translation-ordering.sh
|
||||||
|
|||||||
7
check-translation-ordering.sh
Executable file
7
check-translation-ordering.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
jq -S --tab < translations/en_us.json | diff translations/en_us.json -
|
||||||
Reference in New Issue
Block a user