68608c2bcb 
								
							
								 
							
						 
						
							
							
								
								Fix gen-i18n.js script for .ts files  
							
							... 
							
							
							
							Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> 
							
						 
						
							2020-04-08 21:42:12 +01:00  
				
					
						
							
							
								 
						
							
							
								7dd7417f12 
								
							
								 
							
						 
						
							
							
								
								Enable support for TypeScript in components  
							
							... 
							
							
							
							Includes: compilation, translations, IDE support (use .tsx not .ts), typings, and other build tools.
TypeScript component have to import PropTypes and React with `import * as React from 'react';` 
							
						 
						
							2020-03-11 18:03:43 -06:00  
				
					
						
							
							
								 
						
							
							
								a2b825ba92 
								
							
								 
							
						 
						
							
							
								
								Sort translations by file name  
							
							... 
							
							
							
							This keeps the strings close together and roughly in the same area as the others, and makes it easier to maintain the translation file. 
							
						 
						
							2018-12-05 11:52:10 -07:00  
				
					
						
							
							
								 
						
							
							
								fb262596b2 
								
							
								 
							
						 
						
							
							
								
								Provide more helpful errors when i18n generation fails  
							
							... 
							
							
							
							Also fix TextForEvent.js so it doesn't break the script. Using a variable here is not recognized, so the object has been moved inline instead. 
							
						 
						
							2018-09-27 11:55:57 -06:00  
				
					
						
							
							
								 
						
							
							
								e1394d592a 
								
									
								
							
								 
							
						 
						
							
							
								
								Allow translation tags object to be a variable  
							
							... 
							
							
							
							Don't try to validate the translation tags if it's not an object literal. 
							
						 
						
							2018-09-14 14:11:59 +01:00  
				
					
						
							
							
								 
						
							
							
								9cf7e1b480 
								
							
								 
							
						 
						
							
							
								
								Validate tag replacements in gen-i18n  
							
							
							
						 
						
							2017-11-13 20:20:14 +01:00  
				
					
						
							
							
								 
						
							
							
								8447d15013 
								
							
								 
							
						 
						
							
							
								
								Don't include the |other in the translation value  
							
							
							
						 
						
							2017-10-24 14:26:30 +01:00  
				
					
						
							
							
								 
						
							
							
								93fca8439e 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #1521  from matrix-org/dbkr/geni18n-addplural  
							
							... 
							
							
							
							Fix bug with gen-i18n/js when adding new plurals 
							
						 
						
							2017-10-24 11:15:51 +01:00  
				
					
						
							
							
								 
						
							
							
								46e9d4197a 
								
							
								 
							
						 
						
							
							
								
								Use the 'and' feature!  
							
							
							
						 
						
							2017-10-24 10:21:41 +01:00  
				
					
						
							
							
								 
						
							
							
								2340c1308e 
								
							
								 
							
						 
						
							
							
								
								Fix bug with gen-i18n/js when adding new plurals  
							
							
							
						 
						
							2017-10-23 19:53:17 +01:00  
				
					
						
							
							
								 
						
							
							
								54458f1438 
								
							
								 
							
						 
						
							
							
								
								Actually even out brackets  
							
							
							
						 
						
							2017-10-23 14:02:58 +01:00  
				
					
						
							
							
								 
						
							
							
								8d1aea5b2e 
								
							
								 
							
						 
						
							
							
								
								Misc PR review fixes  
							
							
							
						 
						
							2017-10-23 10:18:29 +01:00  
				
					
						
							
							
								 
						
							
							
								317ad64ae6 
								
							
								 
							
						 
						
							
							
								
								Make the gen-i18n script validate _t calls  
							
							... 
							
							
							
							And throw a massive tantrum if you've messed up your format strings.
Because broken format strings making their way into the app cause it
to throw exceptions. 
							
						 
						
							2017-10-20 18:38:22 +01:00  
				
					
						
							
							
								 
						
							
							
								027a70ffe7 
								
							
								 
							
						 
						
							
							
								
								Add gen-i18n as a 'binary'  
							
							... 
							
							
							
							and add appropriate shebang 
							
						 
						
							2017-10-19 10:51:54 +01:00  
				
					
						
							
							
								 
						
							
							
								1bada070ca 
								
							
								 
							
						 
						
							
							
								
								Make gen-i18n support 'HTML'  
							
							... 
							
							
							
							Where by 'HTML' I mean just run the same regex as riot does over
some text.
Also make it walk multiple paths.
This mostly means it can be used for riot-web. 
							
						 
						
							2017-10-18 19:36:07 +01:00  
				
					
						
							
							
								 
						
							
							
								2bbac903f1 
								
							
								 
							
						 
						
							
							
								
								'base file' is a bit overloaded by weblate  
							
							
							
						 
						
							2017-10-18 14:45:04 +01:00  
				
					
						
							
							
								 
						
							
							
								caa4979e37 
								
							
								 
							
						 
						
							
							
								
								Comment ignoring getTKey returning null  
							
							
							
						 
						
							2017-10-18 14:43:18 +01:00  
				
					
						
							
							
								 
						
							
							
								63a7d37f5a 
								
							
								 
							
						 
						
							
							
								
								commented logging  
							
							
							
						 
						
							2017-10-18 14:41:54 +01:00  
				
					
						
							
							
								 
						
							
							
								a2bfdd8925 
								
							
								 
							
						 
						
							
							
								
								missing saemi  
							
							
							
						 
						
							2017-10-18 14:33:21 +01:00  
				
					
						
							
							
								 
						
							
							
								f759467193 
								
							
								 
							
						 
						
							
							
								
								Get English plural strings from an input file  
							
							
							
						 
						
							2017-10-18 14:30:55 +01:00  
				
					
						
							
							
								 
						
							
							
								11761f535d 
								
							
								 
							
						 
						
							
							
								
								Copyright  
							
							
							
						 
						
							2017-10-18 13:39:04 +01:00  
				
					
						
							
							
								 
						
							
							
								8370c823b6 
								
							
								 
							
						 
						
							
							
								
								Script to generate the translations base file  
							
							... 
							
							
							
							Also replaces the translations base file with the output of the
script. 
							
						 
						
							2017-10-17 19:19:01 +01:00