Add CLI option to enable alphabetical sorting of extracted keys
This commit is contained in:
		
				
					committed by
					
						 Kim Biesbjerg
						Kim Biesbjerg
					
				
			
			
				
	
			
			
			
						parent
						
							94e6416c76
						
					
				
				
					commit
					c18b7dc9c7
				
			| @@ -79,4 +79,10 @@ describe('StringCollection', () => { | ||||
| 		expect(collection.intersect(newCollection).values).to.deep.equal({ red: 'rød', blue: 'blå' }); | ||||
| 	}); | ||||
|  | ||||
| 	it('should sort translations in alphabetical order', () => { | ||||
| 		collection = new TranslationCollection({ red: 'rød', green: 'grøn', blue: 'blå' }); | ||||
| 		collection = collection.sort(); | ||||
| 		expect(collection.keys()).deep.equal(['blue', 'green', 'red']); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user