Skip to content

Commit c26d614

Browse files
committed
Translation sync script
1 parent a3ccce2 commit c26d614

File tree

18 files changed

+213
-131
lines changed

18 files changed

+213
-131
lines changed

.github/workflows/json.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Validate JSON Syntax
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.json'
7+
pull_request:
8+
paths:
9+
- '**.json'
10+
11+
jobs:
12+
validate-json:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 2
19+
20+
- name: Get changed JSON files
21+
id: changed
22+
run: |
23+
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
24+
base_ref="${{ github.event.pull_request.base.sha }}"
25+
head_ref="${{ github.event.pull_request.head.sha }}"
26+
else
27+
base_ref="${{ github.event.before }}"
28+
head_ref="${{ github.event.after }}"
29+
fi
30+
31+
files=$(git diff --name-only origin/"$base_ref" origin/"$head_ref" -- '*.json')
32+
echo "files<<EOF" >> $GITHUB_OUTPUT
33+
echo "$files" >> $GITHUB_OUTPUT
34+
echo "EOF" >> $GITHUB_OUTPUT
35+
36+
- name: Validate JSON syntax
37+
if: steps.changed.outputs.files != ''
38+
run: |
39+
failed=0
40+
while read -r file; do
41+
if [ -f "$file" ]; then
42+
jq empty "$file" 2>err.log
43+
if [ $? -ne 0 ]; then
44+
echo "::error file=$file::$(<err.log)"
45+
failed=1
46+
fi
47+
fi
48+
done <<< "${{ steps.changed.outputs.files }}"
49+
exit $failed

lang/ar.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@
191191
"togglePlayMentionSound": "تشغيل صوت الإشارة",
192192
"chatHistoryLimit": {
193193
"values": {
194+
"0": "غير محدود",
194195
"25": "25",
195196
"50": "50",
196197
"100": "100",
197198
"250": "250",
198199
"500": "500",
199200
"1000": "1000",
200-
"2500": "2500",
201-
"0": "غير محدود"
201+
"2500": "2500"
202202
}
203203
},
204204
"mapChatHistoryLimit": {
@@ -368,9 +368,9 @@
368368
"unlockStatus": {
369369
"label": "حالة الفتح:&nbsp;",
370370
"values": {
371-
"all": "جميع",
372371
"0": "مقفل",
373372
"1": "مفتوح",
373+
"all": "جميع",
374374
"recentUnlock": "Recently Unlocked"
375375
}
376376
},
@@ -532,15 +532,15 @@
532532
"submit": "Submit",
533533
"fields": {
534534
"reason": {
535-
"title": "Reason",
536-
"placeholder": "Custom reason (max 50 characters)",
537535
"1": "Slurs, harmful or inappropriate language",
538536
"2": "Harassment, bullying, stalking",
539537
"3": "Inappropriate names",
540538
"4": "Ban evasion",
541539
"5": "Cheating, abusing exploits",
542540
"6": "Underage player",
543541
"7": "Spam",
542+
"title": "Reason",
543+
"placeholder": "Custom reason (max 50 characters)",
544544
"other": "Other (specify)"
545545
}
546546
}
@@ -619,7 +619,8 @@
619619
"tsushin": "Yume Tsushin (يومي توشين)",
620620
"nostalgic": "nostAlgic (حنين)",
621621
"if": "If",
622-
"unaccomplished": "Unaccomplished"
622+
"unaccomplished": "Unaccomplished",
623+
"fog": "FOG"
623624
},
624625
"leavePage": "هل أنت متأكد أنك تريد مغادرة الصفحة؟ سيتم فقد أي تقدم غير محفوظ في اللعبة",
625626
"logout": "هل أنت متأكد أنك تريد تسجيل الخروج؟",
@@ -932,11 +933,11 @@
932933
"toggleTracked": "Toggle Location Tracking",
933934
"availableUntilDate": "متاح حتى\n{DATE}",
934935
"types": {
935-
"-1": "رحلة استكشافية مجانية",
936936
"0": "يومي",
937937
"1": "أسبوعي",
938938
"2": "نهاية الاسبوع",
939-
"3": "خاص"
939+
"3": "خاص",
940+
"-1": "رحلة استكشافية مجانية"
940941
},
941942
"expRanks": {
942943
"0": "مبتدئ",
@@ -1032,8 +1033,8 @@
10321033
}
10331034
},
10341035
"subCategories": {
1035-
"all": "الكل",
10361036
"2": "(all effects) جميع التأثيرات",
1037+
"all": "الكل",
10371038
"nasu": "NASU",
10381039
"rby": "Red Blue Yellow (Mini Game B)",
10391040
"rby_ex": "Red Blue Yellow (Mini Game B) - EX نسخة",

lang/de.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@
191191
"togglePlayMentionSound": "Erwähnungssound abspielen",
192192
"chatHistoryLimit": {
193193
"values": {
194+
"0": "Unbegrenzt",
194195
"25": "25",
195196
"50": "50",
196197
"100": "100",
197198
"250": "250",
198199
"500": "500",
199200
"1000": "1000",
200-
"2500": "2500",
201-
"0": "Unbegrenzt"
201+
"2500": "2500"
202202
}
203203
},
204204
"mapChatHistoryLimit": {
@@ -368,9 +368,9 @@
368368
"unlockStatus": {
369369
"label": "Status:&nbsp;",
370370
"values": {
371-
"all": "Alle",
372371
"0": "Gesperrte",
373372
"1": "Freigeschaltete",
373+
"all": "Alle",
374374
"recentUnlock": "Zuletzt freigeschaltet"
375375
}
376376
},
@@ -532,15 +532,15 @@
532532
"submit": "Übergeben",
533533
"fields": {
534534
"reason": {
535-
"title": "Grund",
536-
"placeholder": "Sonstiger Grund (maximal 50 Zeichen)",
537535
"1": "Beleidigungen oder gewaltsame Formulierungen",
538536
"2": "Missbrauch, Belästigung, Stalking",
539537
"3": "Unangemessener Name",
540538
"4": "Ban ausgewichen",
541539
"5": "Cheaten, benutzen von Exploits",
542540
"6": "Minderjähriger Spieler",
543541
"7": "Spam",
542+
"title": "Grund",
543+
"placeholder": "Sonstiger Grund (maximal 50 Zeichen)",
544544
"other": "Sonstiges (begründen)"
545545
}
546546
}
@@ -933,11 +933,11 @@
933933
"toggleTracked": "Standort-Tracking togglen",
934934
"availableUntilDate": "Verfügbar bis\n{DATE}",
935935
"types": {
936-
"-1": "Freie Expedition",
937936
"0": "Täglich",
938937
"1": "Wöchendlich",
939938
"2": "Wochenende",
940-
"3": "Spezial"
939+
"3": "Spezial",
940+
"-1": "Freie Expedition"
941941
},
942942
"expRanks": {
943943
"0": "Novize",
@@ -1033,8 +1033,8 @@
10331033
}
10341034
},
10351035
"subCategories": {
1036-
"all": "Alle",
10371036
"2": "Alle Effekte",
1037+
"all": "Alle",
10381038
"nasu": "NASU",
10391039
"rby": "Rot Blau Gelb (Mini Game B)",
10401040
"rby_ex": "Rot Blau Gelb (Mini Game B) - EX Version",

lang/en.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,14 @@
191191
"togglePlayMentionSound": "Play Mention Sound",
192192
"chatHistoryLimit": {
193193
"values": {
194+
"0": "Unlimited",
194195
"25": "25",
195196
"50": "50",
196197
"100": "100",
197198
"250": "250",
198199
"500": "500",
199200
"1000": "1000",
200-
"2500": "2500",
201-
"0": "Unlimited"
201+
"2500": "2500"
202202
}
203203
},
204204
"mapChatHistoryLimit": {
@@ -368,9 +368,9 @@
368368
"unlockStatus": {
369369
"label": "Unlock Status:&nbsp;",
370370
"values": {
371-
"all": "All",
372371
"0": "Locked",
373372
"1": "Unlocked",
373+
"all": "All",
374374
"recentUnlock": "Recently Unlocked"
375375
}
376376
},
@@ -402,8 +402,8 @@
402402
"selectPreset": "Select Preset",
403403
"presetName": "Preset {{index}}"
404404
},
405-
"title": "Manage Save Data",
406405
"save": {
406+
"title": "Manage Save Data",
407407
"reload": "Save Changes and Reload",
408408
"info": "For importing saves, if the last time saved was while using a translation on RPG_RT, the game will display errors until you save once again on EasyRPG without any active translation."
409409
},
@@ -532,15 +532,15 @@
532532
"submit": "Submit",
533533
"fields": {
534534
"reason": {
535-
"title": "Reason",
536-
"placeholder": "Custom reason (max 50 characters)",
537535
"1": "Slurs, harmful or inappropriate language",
538536
"2": "Harassment, bullying, stalking",
539537
"3": "Inappropriate names",
540538
"4": "Ban evasion",
541539
"5": "Cheating, abusing exploits",
542540
"6": "Underage player",
543541
"7": "Spam",
542+
"title": "Reason",
543+
"placeholder": "Custom reason (max 50 characters)",
544544
"other": "Other (specify)"
545545
}
546546
}
@@ -933,11 +933,11 @@
933933
"toggleTracked": "Toggle Location Tracking",
934934
"availableUntilDate": "Available Until\n{DATE}",
935935
"types": {
936-
"-1": "Free Expedition",
937936
"0": "Daily",
938937
"1": "Weekly",
939938
"2": "Weekend",
940-
"3": "Special"
939+
"3": "Special",
940+
"-1": "Free Expedition"
941941
},
942942
"expRanks": {
943943
"0": "Novice",
@@ -1033,8 +1033,8 @@
10331033
}
10341034
},
10351035
"subCategories": {
1036-
"all": "All",
10371036
"2": "All Effects",
1037+
"all": "All",
10381038
"nasu": "NASU",
10391039
"rby": "Red Blue Yellow (Mini Game B)",
10401040
"rby_ex": "Red Blue Yellow (Mini Game B) - EX Version",

lang/eo.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@
172172
"screenshotSettings": "Ekrankopioj",
173173
"notificationSettings": "Sciigoj",
174174
"accountSettings": "Konto",
175-
"engineSettings": "Engine (F1)"
175+
"engineSettings": "Engine (F1)",
176+
"cacheSettings": "Cache"
176177
},
177178
"blocklist": {
178179
"title": "Listo de Blokitoj",
@@ -190,14 +191,14 @@
190191
"togglePlayMentionSound": "Ludi Sonon de Mencio",
191192
"chatHistoryLimit": {
192193
"values": {
194+
"0": "Senlima",
193195
"25": "25",
194196
"50": "50",
195197
"100": "100",
196198
"250": "250",
197199
"500": "500",
198200
"1000": "1000",
199-
"2500": "2500",
200-
"0": "Senlima"
201+
"2500": "2500"
201202
}
202203
},
203204
"mapChatHistoryLimit": {
@@ -367,9 +368,9 @@
367368
"unlockStatus": {
368369
"label": "Malŝlosa Stato:&nbsp;",
369370
"values": {
370-
"all": "Ĉiuj",
371371
"0": "Ŝlosita(j)",
372372
"1": "Malŝlosita(j)",
373+
"all": "Ĉiuj",
373374
"recentUnlock": "Lastatempe Malŝlosita(j)"
374375
}
375376
},
@@ -531,15 +532,15 @@
531532
"submit": "Submit",
532533
"fields": {
533534
"reason": {
534-
"title": "Reason",
535-
"placeholder": "Custom reason (max 50 characters)",
536535
"1": "Slurs, harmful or inappropriate language",
537536
"2": "Harassment, bullying, stalking",
538537
"3": "Inappropriate names",
539538
"4": "Ban evasion",
540539
"5": "Cheating, abusing exploits",
541540
"6": "Underage player",
542541
"7": "Spam",
542+
"title": "Reason",
543+
"placeholder": "Custom reason (max 50 characters)",
543544
"other": "Other (specify)"
544545
}
545546
}
@@ -932,11 +933,11 @@
932933
"toggleTracked": "Toggle Location Tracking",
933934
"availableUntilDate": "Disponebla Ĝis\n{DATE}",
934935
"types": {
935-
"-1": "Libera Ekspedicio",
936936
"0": "Tage",
937937
"1": "Semajne",
938938
"2": "Semajnfine",
939-
"3": "Speciala"
939+
"3": "Speciala",
940+
"-1": "Libera Ekspedicio"
940941
},
941942
"expRanks": {
942943
"0": "Novulo",
@@ -1032,8 +1033,8 @@
10321033
}
10331034
},
10341035
"subCategories": {
1035-
"all": "Ĉiuj",
10361036
"2": "Ĉiuj Efikoj",
1037+
"all": "Ĉiuj",
10371038
"nasu": "NASU",
10381039
"rby": "Ruĝa Blua Flava (Ludeto B)",
10391040
"rby_ex": "Ruĝa Blua Flava (Ludeto B) - Versio EX",

0 commit comments

Comments
 (0)