forked from MapComplete/MapComplete
		
	Enable all languages in translators mode
This commit is contained in:
		
							parent
							
								
									86d9047e5e
								
							
						
					
					
						commit
						a037d04577
					
				
					 3 changed files with 25 additions and 8 deletions
				
			
		|  | @ -66,10 +66,6 @@ export default class UserRelatedState extends ElementsState { | |||
|             } | ||||
|         }); | ||||
|          | ||||
|         QueryParameters.GetBooleanQueryParameter("fs-translation-mode",false,"If set, will show the translation buttons") | ||||
|             .addCallbackAndRunD(tr => Locale.showLinkToWeblate.setData(Locale.showLinkToWeblate.data || tr)) | ||||
| 
 | ||||
| 
 | ||||
|         this.changes = new Changes(this, layoutToUse?.isLeftRightSensitive() ?? false) | ||||
| 
 | ||||
| 
 | ||||
|  | @ -126,6 +122,9 @@ export default class UserRelatedState extends ElementsState { | |||
|                 if (layoutToUse === undefined) { | ||||
|                     return; | ||||
|                 } | ||||
|                 if(Locale.showLinkToWeblate.data){ | ||||
|                     return true; // Disable auto switching as we are in translators mode
 | ||||
|                 } | ||||
|                 if (this.layoutToUse.language.indexOf(currentLanguage) < 0) { | ||||
|                     console.log( | ||||
|                         "Resetting language to", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue