Skip to content

Commit 30fe47f

Browse files
authored
Merge pull request #1161 from IFRCGo/feature/new-translations
Add checks for translation migrations
2 parents 840f468 + ac7d5f9 commit 30fe47f

File tree

2 files changed

+163
-1
lines changed

2 files changed

+163
-1
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,39 @@ jobs:
114114
- name: Identify error with translation files
115115
run: pnpm lint:translation
116116

117-
unimported:
117+
translation-migrations:
118+
continue-on-error: true
119+
name: Identify if translation migrations need to be generated
120+
runs-on: ubuntu-latest
121+
defaults:
122+
run:
123+
working-directory: app
124+
needs: [ui]
125+
steps:
126+
- uses: actions/checkout@v4
127+
- name: Install pnpm
128+
uses: pnpm/action-setup@v4
129+
- name: Install Node.js
130+
uses: actions/setup-node@v4
131+
with:
132+
node-version: 20
133+
cache: 'pnpm'
134+
- name: Install dependencies
135+
run: pnpm install
136+
137+
- uses: actions/download-artifact@v4
138+
with:
139+
name: ui-build
140+
path: packages/ui/dist
141+
142+
- name: Identify if translation migrations need to be generated
143+
run: |
144+
if pnpm translatte:generate; then
145+
# The step should fail if generation is possible
146+
exit 1
147+
fi
148+
149+
unused:
118150
name: Identify unused files
119151
runs-on: ubuntu-latest
120152
needs: [ui]
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"parent": "000005-1734686854016.json",
3+
"actions": [
4+
{
5+
"action": "update",
6+
"key": "localUnitHealthFacilityType",
7+
"namespace": "countryNsOverviewContextAndStructure",
8+
"newValue": "Health facility type"
9+
},
10+
{
11+
"action": "update",
12+
"key": "localUnitLocalUnitType",
13+
"namespace": "countryNsOverviewContextAndStructure",
14+
"newValue": "Local unit type"
15+
},
16+
{
17+
"action": "update",
18+
"key": "exportTableButtonLabel",
19+
"newKey": "exportButtonLabel",
20+
"namespace": "exportButton"
21+
},
22+
{
23+
"action": "update",
24+
"key": "exportTableDownloadingButtonLabel",
25+
"newKey": "exportDownloadingButtonLabel",
26+
"namespace": "exportButton"
27+
},
28+
{
29+
"action": "add",
30+
"key": "dateOfOperation",
31+
"namespace": "operationalLearning",
32+
"value": "Date of Operation"
33+
},
34+
{
35+
"action": "add",
36+
"key": "organizationTypesLabel",
37+
"namespace": "operationalLearning",
38+
"value": "Organization Type"
39+
},
40+
{
41+
"action": "add",
42+
"key": "organizationTypesLabelPlaceholder",
43+
"namespace": "operationalLearning",
44+
"value": "All Organization Types"
45+
},
46+
{
47+
"action": "add",
48+
"key": "perLearningTypesLabel",
49+
"namespace": "operationalLearning",
50+
"value": "Learning Type"
51+
},
52+
{
53+
"action": "add",
54+
"key": "perLearningTypesLabelPlaceholder",
55+
"namespace": "operationalLearning",
56+
"value": "All Learning Type"
57+
},
58+
{
59+
"action": "remove",
60+
"key": "dateOfLearning",
61+
"namespace": "operationalLearning"
62+
},
63+
{
64+
"action": "update",
65+
"key": "filterComponentLabel",
66+
"namespace": "operationalLearning",
67+
"newValue": "PER Component"
68+
},
69+
{
70+
"action": "remove",
71+
"key": "backToEventsLabel",
72+
"namespace": "riskImminentEventMap"
73+
},
74+
{
75+
"action": "remove",
76+
"key": "eventDetailsStartedOn",
77+
"namespace": "riskImminentEvents"
78+
},
79+
{
80+
"action": "remove",
81+
"key": "eventStartOnLabel",
82+
"namespace": "riskImminentEvents"
83+
},
84+
{
85+
"action": "remove",
86+
"key": "meteoSwissEventDetailsStartedOnLabel",
87+
"namespace": "riskImminentEvents"
88+
},
89+
{
90+
"action": "remove",
91+
"key": "meteoSwissEventDetailsUpdatedAtLabel",
92+
"namespace": "riskImminentEvents"
93+
},
94+
{
95+
"action": "remove",
96+
"key": "wfpEventDetailsPublishedOn",
97+
"namespace": "riskImminentEvents"
98+
},
99+
{
100+
"action": "update",
101+
"key": "eventListViewDetails",
102+
"namespace": "riskImminentEvents",
103+
"newValue": "View / Hide Details"
104+
},
105+
{
106+
"action": "update",
107+
"key": "gdacsEventViewDetails",
108+
"namespace": "riskImminentEvents",
109+
"newValue": "View / Hide Details"
110+
},
111+
{
112+
"action": "update",
113+
"key": "meteoSwissEventListViewDetails",
114+
"namespace": "riskImminentEvents",
115+
"newValue": "View / Hide Details"
116+
},
117+
{
118+
"action": "update",
119+
"key": "wfpEventListViewDetails",
120+
"namespace": "riskImminentEvents",
121+
"newValue": "View / Hide Details"
122+
},
123+
{
124+
"action": "update",
125+
"key": "healthDetails",
126+
"namespace": "surgeCatalogueHealth",
127+
"newValue": "The IFRC and its member National Societies have a network of personnel, equipment and approaches to prevent, detect and respond to health needs in emergencies, including both clinical and public health Emergency Response Units. These health response tools prevent and treat illness and improve health and dignity for communities affected by slow- and sudden-onset disasters or outbreaks. Deployable health capacities can support inter-agency health coordination, overall strategic direction for health, implementation of community- and clinic-based health interventions, and provide critical lifesaving services to communities, in support of government health systems and services."
128+
}
129+
]
130+
}

0 commit comments

Comments
 (0)