Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d121f8a

Browse files
committed
Allow country names to be translated
Signed-off-by: Aaron Raimist <[email protected]>
1 parent a7e6d8e commit d121f8a

File tree

3 files changed

+501
-250
lines changed

3 files changed

+501
-250
lines changed

src/components/views/auth/CountryDropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class CountryDropdown extends React.Component {
123123
const options = displayedCountries.map((country) => {
124124
return <div className="mx_CountryDropdown_option" key={country.iso2}>
125125
{ this._flagImgForIso2(country.iso2) }
126-
{ country.name } (+{ country.prefix })
126+
{ _t(country.name) } (+{ country.prefix })
127127
</div>;
128128
});
129129

src/i18n/strings/en_EN.json

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,255 @@
117117
"Unable to enable Notifications": "Unable to enable Notifications",
118118
"This email address was not found": "This email address was not found",
119119
"Your email address does not appear to be associated with a Matrix ID on this Homeserver.": "Your email address does not appear to be associated with a Matrix ID on this Homeserver.",
120+
"United Kingdom": "United Kingdom",
121+
"United States": "United States",
122+
"Afghanistan": "Afghanistan",
123+
"Åland Islands": "Åland Islands",
124+
"Albania": "Albania",
125+
"Algeria": "Algeria",
126+
"American Samoa": "American Samoa",
127+
"Andorra": "Andorra",
128+
"Angola": "Angola",
129+
"Anguilla": "Anguilla",
130+
"Antarctica": "Antarctica",
131+
"Antigua & Barbuda": "Antigua & Barbuda",
132+
"Argentina": "Argentina",
133+
"Armenia": "Armenia",
134+
"Aruba": "Aruba",
135+
"Australia": "Australia",
136+
"Austria": "Austria",
137+
"Azerbaijan": "Azerbaijan",
138+
"Bahamas": "Bahamas",
139+
"Bahrain": "Bahrain",
140+
"Bangladesh": "Bangladesh",
141+
"Barbados": "Barbados",
142+
"Belarus": "Belarus",
143+
"Belgium": "Belgium",
144+
"Belize": "Belize",
145+
"Benin": "Benin",
146+
"Bermuda": "Bermuda",
147+
"Bhutan": "Bhutan",
148+
"Bolivia": "Bolivia",
149+
"Bosnia": "Bosnia",
150+
"Botswana": "Botswana",
151+
"Bouvet Island": "Bouvet Island",
152+
"Brazil": "Brazil",
153+
"British Indian Ocean Territory": "British Indian Ocean Territory",
154+
"British Virgin Islands": "British Virgin Islands",
155+
"Brunei": "Brunei",
156+
"Bulgaria": "Bulgaria",
157+
"Burkina Faso": "Burkina Faso",
158+
"Burundi": "Burundi",
159+
"Cambodia": "Cambodia",
160+
"Cameroon": "Cameroon",
161+
"Canada": "Canada",
162+
"Cape Verde": "Cape Verde",
163+
"Caribbean Netherlands": "Caribbean Netherlands",
164+
"Cayman Islands": "Cayman Islands",
165+
"Central African Republic": "Central African Republic",
166+
"Chad": "Chad",
167+
"Chile": "Chile",
168+
"China": "China",
169+
"Christmas Island": "Christmas Island",
170+
"Cocos (Keeling) Islands": "Cocos (Keeling) Islands",
171+
"Colombia": "Colombia",
172+
"Comoros": "Comoros",
173+
"Congo - Brazzaville": "Congo - Brazzaville",
174+
"Congo - Kinshasa": "Congo - Kinshasa",
175+
"Cook Islands": "Cook Islands",
176+
"Costa Rica": "Costa Rica",
177+
"Croatia": "Croatia",
178+
"Cuba": "Cuba",
179+
"Curaçao": "Curaçao",
180+
"Cyprus": "Cyprus",
181+
"Czech Republic": "Czech Republic",
182+
"Côte d’Ivoire": "Côte d’Ivoire",
183+
"Denmark": "Denmark",
184+
"Djibouti": "Djibouti",
185+
"Dominica": "Dominica",
186+
"Dominican Republic": "Dominican Republic",
187+
"Ecuador": "Ecuador",
188+
"Egypt": "Egypt",
189+
"El Salvador": "El Salvador",
190+
"Equatorial Guinea": "Equatorial Guinea",
191+
"Eritrea": "Eritrea",
192+
"Estonia": "Estonia",
193+
"Ethiopia": "Ethiopia",
194+
"Falkland Islands": "Falkland Islands",
195+
"Faroe Islands": "Faroe Islands",
196+
"Fiji": "Fiji",
197+
"Finland": "Finland",
198+
"France": "France",
199+
"French Guiana": "French Guiana",
200+
"French Polynesia": "French Polynesia",
201+
"French Southern Territories": "French Southern Territories",
202+
"Gabon": "Gabon",
203+
"Gambia": "Gambia",
204+
"Georgia": "Georgia",
205+
"Germany": "Germany",
206+
"Ghana": "Ghana",
207+
"Gibraltar": "Gibraltar",
208+
"Greece": "Greece",
209+
"Greenland": "Greenland",
210+
"Grenada": "Grenada",
211+
"Guadeloupe": "Guadeloupe",
212+
"Guam": "Guam",
213+
"Guatemala": "Guatemala",
214+
"Guernsey": "Guernsey",
215+
"Guinea": "Guinea",
216+
"Guinea-Bissau": "Guinea-Bissau",
217+
"Guyana": "Guyana",
218+
"Haiti": "Haiti",
219+
"Heard & McDonald Islands": "Heard & McDonald Islands",
220+
"Honduras": "Honduras",
221+
"Hong Kong": "Hong Kong",
222+
"Hungary": "Hungary",
223+
"Iceland": "Iceland",
224+
"India": "India",
225+
"Indonesia": "Indonesia",
226+
"Iran": "Iran",
227+
"Iraq": "Iraq",
228+
"Ireland": "Ireland",
229+
"Isle of Man": "Isle of Man",
230+
"Israel": "Israel",
231+
"Italy": "Italy",
232+
"Jamaica": "Jamaica",
233+
"Japan": "Japan",
234+
"Jersey": "Jersey",
235+
"Jordan": "Jordan",
236+
"Kazakhstan": "Kazakhstan",
237+
"Kenya": "Kenya",
238+
"Kiribati": "Kiribati",
239+
"Kosovo": "Kosovo",
240+
"Kuwait": "Kuwait",
241+
"Kyrgyzstan": "Kyrgyzstan",
242+
"Laos": "Laos",
243+
"Latvia": "Latvia",
244+
"Lebanon": "Lebanon",
245+
"Lesotho": "Lesotho",
246+
"Liberia": "Liberia",
247+
"Libya": "Libya",
248+
"Liechtenstein": "Liechtenstein",
249+
"Lithuania": "Lithuania",
250+
"Luxembourg": "Luxembourg",
251+
"Macau": "Macau",
252+
"Macedonia": "Macedonia",
253+
"Madagascar": "Madagascar",
254+
"Malawi": "Malawi",
255+
"Malaysia": "Malaysia",
256+
"Maldives": "Maldives",
257+
"Mali": "Mali",
258+
"Malta": "Malta",
259+
"Marshall Islands": "Marshall Islands",
260+
"Martinique": "Martinique",
261+
"Mauritania": "Mauritania",
262+
"Mauritius": "Mauritius",
263+
"Mayotte": "Mayotte",
264+
"Mexico": "Mexico",
265+
"Micronesia": "Micronesia",
266+
"Moldova": "Moldova",
267+
"Monaco": "Monaco",
268+
"Mongolia": "Mongolia",
269+
"Montenegro": "Montenegro",
270+
"Montserrat": "Montserrat",
271+
"Morocco": "Morocco",
272+
"Mozambique": "Mozambique",
273+
"Myanmar": "Myanmar",
274+
"Namibia": "Namibia",
275+
"Nauru": "Nauru",
276+
"Nepal": "Nepal",
277+
"Netherlands": "Netherlands",
278+
"New Caledonia": "New Caledonia",
279+
"New Zealand": "New Zealand",
280+
"Nicaragua": "Nicaragua",
281+
"Niger": "Niger",
282+
"Nigeria": "Nigeria",
283+
"Niue": "Niue",
284+
"Norfolk Island": "Norfolk Island",
285+
"North Korea": "North Korea",
286+
"Northern Mariana Islands": "Northern Mariana Islands",
287+
"Norway": "Norway",
288+
"Oman": "Oman",
289+
"Pakistan": "Pakistan",
290+
"Palau": "Palau",
291+
"Palestine": "Palestine",
292+
"Panama": "Panama",
293+
"Papua New Guinea": "Papua New Guinea",
294+
"Paraguay": "Paraguay",
295+
"Peru": "Peru",
296+
"Philippines": "Philippines",
297+
"Pitcairn Islands": "Pitcairn Islands",
298+
"Poland": "Poland",
299+
"Portugal": "Portugal",
300+
"Puerto Rico": "Puerto Rico",
301+
"Qatar": "Qatar",
302+
"Romania": "Romania",
303+
"Russia": "Russia",
304+
"Rwanda": "Rwanda",
305+
"Réunion": "Réunion",
306+
"Samoa": "Samoa",
307+
"San Marino": "San Marino",
308+
"Saudi Arabia": "Saudi Arabia",
309+
"Senegal": "Senegal",
310+
"Serbia": "Serbia",
311+
"Seychelles": "Seychelles",
312+
"Sierra Leone": "Sierra Leone",
313+
"Singapore": "Singapore",
314+
"Sint Maarten": "Sint Maarten",
315+
"Slovakia": "Slovakia",
316+
"Slovenia": "Slovenia",
317+
"Solomon Islands": "Solomon Islands",
318+
"Somalia": "Somalia",
319+
"South Africa": "South Africa",
320+
"South Georgia & South Sandwich Islands": "South Georgia & South Sandwich Islands",
321+
"South Korea": "South Korea",
322+
"South Sudan": "South Sudan",
323+
"Spain": "Spain",
324+
"Sri Lanka": "Sri Lanka",
325+
"St. Barthélemy": "St. Barthélemy",
326+
"St. Helena": "St. Helena",
327+
"St. Kitts & Nevis": "St. Kitts & Nevis",
328+
"St. Lucia": "St. Lucia",
329+
"St. Martin": "St. Martin",
330+
"St. Pierre & Miquelon": "St. Pierre & Miquelon",
331+
"St. Vincent & Grenadines": "St. Vincent & Grenadines",
332+
"Sudan": "Sudan",
333+
"Suriname": "Suriname",
334+
"Svalbard & Jan Mayen": "Svalbard & Jan Mayen",
335+
"Swaziland": "Swaziland",
336+
"Sweden": "Sweden",
337+
"Switzerland": "Switzerland",
338+
"Syria": "Syria",
339+
"São Tomé & Príncipe": "São Tomé & Príncipe",
340+
"Taiwan": "Taiwan",
341+
"Tajikistan": "Tajikistan",
342+
"Tanzania": "Tanzania",
343+
"Thailand": "Thailand",
344+
"Timor-Leste": "Timor-Leste",
345+
"Togo": "Togo",
346+
"Tokelau": "Tokelau",
347+
"Tonga": "Tonga",
348+
"Trinidad & Tobago": "Trinidad & Tobago",
349+
"Tunisia": "Tunisia",
350+
"Turkey": "Turkey",
351+
"Turkmenistan": "Turkmenistan",
352+
"Turks & Caicos Islands": "Turks & Caicos Islands",
353+
"Tuvalu": "Tuvalu",
354+
"U.S. Virgin Islands": "U.S. Virgin Islands",
355+
"Uganda": "Uganda",
356+
"Ukraine": "Ukraine",
357+
"United Arab Emirates": "United Arab Emirates",
358+
"Uruguay": "Uruguay",
359+
"Uzbekistan": "Uzbekistan",
360+
"Vanuatu": "Vanuatu",
361+
"Vatican City": "Vatican City",
362+
"Venezuela": "Venezuela",
363+
"Vietnam": "Vietnam",
364+
"Wallis & Futuna": "Wallis & Futuna",
365+
"Western Sahara": "Western Sahara",
366+
"Yemen": "Yemen",
367+
"Zambia": "Zambia",
368+
"Zimbabwe": "Zimbabwe",
120369
"Sign In or Create Account": "Sign In or Create Account",
121370
"Use your account or create a new one to continue.": "Use your account or create a new one to continue.",
122371
"Create Account": "Create Account",

0 commit comments

Comments
 (0)