forked from MapComplete/MapComplete
		
	Allow Record<string, string> as input for Translations.T
This commit is contained in:
		
							parent
							
								
									18399bafb0
								
							
						
					
					
						commit
						03057b2eff
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -42,7 +42,13 @@ export default class Translations {
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    static T(
 | 
					    static T(
 | 
				
			||||||
        t: string | undefined | null | Translation | TypedTranslation<object>,
 | 
					        t:
 | 
				
			||||||
 | 
					            | string
 | 
				
			||||||
 | 
					            | Record<string, string>
 | 
				
			||||||
 | 
					            | undefined
 | 
				
			||||||
 | 
					            | null
 | 
				
			||||||
 | 
					            | Translation
 | 
				
			||||||
 | 
					            | TypedTranslation<object>,
 | 
				
			||||||
        context = undefined
 | 
					        context = undefined
 | 
				
			||||||
    ): TypedTranslation<object> {
 | 
					    ): TypedTranslation<object> {
 | 
				
			||||||
        if (t === undefined || t === null) {
 | 
					        if (t === undefined || t === null) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue