Skip to content

Commit 2a4924b

Browse files
authored
ci: Sort i18n yaml files alphabetically (#184)
This avoids merge conflicts in i18n files if two diverging branches add a new key to the file.
1 parent 28ec78a commit 2a4924b

File tree

3 files changed

+57
-38
lines changed

3 files changed

+57
-38
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ repos:
2929
- id: end-of-file-fixer
3030
- id: fix-byte-order-marker
3131
- id: trailing-whitespace
32+
- repo: local
33+
hooks:
34+
- id: yaml-sort-i18n
35+
name: Sort i18n YAML files
36+
entry: npx yaml-sort -i
37+
language: system
38+
types: [file]
39+
files: ^i18n/.*\.ya?ml$

i18n/de.yaml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,46 @@
1-
countryselection: Länderauswahl
1+
_operator__list_title: Betreiber mit FIP
2+
_operator__nearby: Angrenzende Betreiber
3+
anchorLink:
4+
copied: Link wurde in die Zwischenablage kopiert
5+
copy: Link zu diesem Abschnitt kopieren
26
country:
3-
one: Land
47
many: Länder
8+
one: Land
59
other: Länder
6-
search-placeholder: Suche
10+
countryselection: Länderauswahl
11+
editPage: Seite bearbeiten
712
footer-love:
8-
text: Made with ♥️ in Frankfurt & Köln
913
aria-label: Made with love in Frankfurt & Köln
10-
menu-open: Menü
11-
menu-close: Schließen
14+
text: Made with ♥️ in Frankfurt & Köln
1215
general: Übergreifendes
13-
information-disclaimer-short: Diese Informationen sind inoffiziell und ohne Gewähr. Es besteht keine rechtliche Verbindung zu FIP oder Bahngesellschaften.
1416
highlight:
1517
important: Wichtige Information
1618
inofficial: Inoffizielle Information
1719
tip: Persönlicher Tipp
20+
home-page-text: FIP Guide Startseite
21+
information-disclaimer-short: >-
22+
Diese Informationen sind inoffiziell und ohne Gewähr. Es besteht keine
23+
rechtliche Verbindung zu FIP oder Bahngesellschaften.
24+
menu-close: Schließen
25+
menu-open: Menü
26+
navigate-to-country: Gehe zu Land
1827
news-headline: Was gibt's Neues?
1928
news-other: Weitere News
20-
_operator__list_title: Betreiber mit FIP
21-
updateDate: Zuletzt aktualisiert
22-
toc_name: Inhalt
23-
_operator__nearby: Angrenzende Betreiber
2429
related:
25-
news: Verwandte News
2630
countries: Verwandte Länder
31+
news: Verwandte News
2732
operators: Verwandte Betreiber
2833
operators-nearby: Angrenzende Betreiber
29-
related-news: Verwandte News
3034
related-countries: Verwandte Länder
35+
related-news: Verwandte News
3136
related-operators: Verwandte Betreiber
32-
editPage: Seite bearbeiten
3337
reportError: Melde ein Fehler
34-
anchorLink:
35-
copy: Link zu diesem Abschnitt kopieren
36-
copied: Link wurde in die Zwischenablage kopiert
38+
search-placeholder: Suche
3739
skipToContent: Zum Inhalt springen
38-
wip: An dieser Seite wird noch gearbeitet und Inhalte können unvollständig sein. Wir freuen uns, wenn du zur Verbesserung dieser Seite beträgst. [Mehr Information auf GitHub](https://github.com/fipguide/fipguide.github.io/wiki/Deutsch).
39-
home-page-text: FIP Guide Startseite
40-
navigate-to-country: Gehe zu Land
40+
toc_name: Inhalt
41+
updateDate: Zuletzt aktualisiert
42+
wip: >-
43+
An dieser Seite wird noch gearbeitet und Inhalte können unvollständig sein.
44+
Wir freuen uns, wenn du zur Verbesserung dieser Seite beträgst. [Mehr
45+
Information auf
46+
GitHub](https://github.com/fipguide/fipguide.github.io/wiki/Deutsch).

i18n/en.yaml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
1-
countryselection: choose country
1+
_operator__list_title: Operators supporting FIP
2+
anchorLink:
3+
copied: Link has been copied to the clipboard
4+
copy: Copy link to this section
25
country:
3-
one: country
46
many: countries
7+
one: country
58
other: countries
6-
search-placeholder: Search
9+
countryselection: choose country
10+
editPage: Edit page
711
footer-love:
8-
text: Made with ♥️ in Frankfurt & Cologne
912
aria-label: Made with love in Frankfurt & Cologne
10-
menu-open: Menu
11-
menu-close: Close
13+
text: Made with ♥️ in Frankfurt & Cologne
1214
general: general
13-
information-disclaimer-short: The information provided is unofficial and without guarantee. There is no legal connection to FIP or railway companies.
1415
highlight:
1516
important: Important Information
1617
inofficial: Unofficial Information
1718
tip: Personal Tip
19+
home-page-text: FIP Guide Home Page
20+
information-disclaimer-short: >-
21+
The information provided is unofficial and without guarantee. There is no
22+
legal connection to FIP or railway companies.
23+
menu-close: Close
24+
menu-open: Menu
25+
navigate-to-country: Navigate to country
1826
news-headline: What's new?
1927
news-other: Other News
20-
_operator__list_title: Operators supporting FIP
21-
updateDate: Last updated
22-
toc_name: Contents
2328
related:
24-
news: Related News
2529
countries: Related Countries
30+
news: Related News
2631
operators: Related Operators
2732
operators-nearby: Neighboring Operators
28-
editPage: Edit page
2933
reportError: Report an error
30-
anchorLink:
31-
copy: Copy link to this section
32-
copied: Link has been copied to the clipboard
34+
search-placeholder: Search
3335
skipToContent: Skip to content
34-
wip: This page is still under construction and content may be incomplete. We would be happy if you contribute to improve this page. [More information on GitHub](https://github.com/fipguide/fipguide.github.io/wiki/English).
35-
home-page-text: FIP Guide Home Page
36-
navigate-to-country: Navigate to country
36+
toc_name: Contents
37+
updateDate: Last updated
38+
wip: >-
39+
This page is still under construction and content may be incomplete. We would
40+
be happy if you contribute to improve this page. [More information on
41+
GitHub](https://github.com/fipguide/fipguide.github.io/wiki/English).

0 commit comments

Comments
 (0)