Browse Source
			
			
			Feature/add hint for community language support (#2793)
			
				* Add hint
* Update changelog
			
			
				pull/2799/head
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					2 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 4 changed files with 
26 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/client/src/app/components/user-account-settings/user-account-settings.component.ts
				
 
			
				- 
					
					
					 
					apps/client/src/app/components/user-account-settings/user-account-settings.html
				
 
			
				- 
					
					
					 
					apps/client/src/app/components/user-account-settings/user-account-settings.scss
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Added | 
					 | 
					 | 
					### Added | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Added support to edit the currency of asset profiles with `MANUAL` data source in the asset profile details dialog of the admin control panel | 
					 | 
					 | 
					- Added support to edit the currency of asset profiles with `MANUAL` data source in the asset profile details dialog of the admin control panel | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Added a hint for the community languages in the user settings | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Changed | 
					 | 
					 | 
					### Changed | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -93,6 +93,10 @@ export class UserAccountSettingsComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.update(); | 
					 | 
					 | 
					    this.update(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  public isCommunityLanguage() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    return !(this.language === 'de' || this.language === 'en'); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public onChangeUserSetting(aKey: string, aValue: string) { | 
					 | 
					 | 
					  public onChangeUserSetting(aKey: string, aValue: string) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.dataService | 
					 | 
					 | 
					    this.dataService | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .putUserSetting({ [aKey]: aValue }) | 
					 | 
					 | 
					      .putUserSetting({ [aKey]: aValue }) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -46,6 +46,18 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          <div class="align-items-center d-flex mb-2"> | 
					 | 
					 | 
					          <div class="align-items-center d-flex mb-2"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <div class="pr-1 w-50"> | 
					 | 
					 | 
					            <div class="pr-1 w-50"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              <div i18n>Language</div> | 
					 | 
					 | 
					              <div i18n>Language</div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              <div | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                *ngIf="isCommunityLanguage()" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                class="hint-text text-muted" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                i18n | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              > | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                If a translation is missing, kindly support us in extending it | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                <a | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                  href="https://github.com/ghostfolio/ghostfolio/blob/main/apps/client/src/locales/messages.{{language}}.xlf" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                  target="_blank" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                  >here</a | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                >. | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					              </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            </div> | 
					 | 
					 | 
					            </div> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <div class="pl-1 w-50"> | 
					 | 
					 | 
					            <div class="pl-1 w-50"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              <mat-form-field appearance="outline" class="w-100 without-hint"> | 
					 | 
					 | 
					              <mat-form-field appearance="outline" class="w-100 without-hint"> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -2,6 +2,15 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  color: rgb(var(--dark-primary-text)); | 
					 | 
					 | 
					  color: rgb(var(--dark-primary-text)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  display: block; | 
					 | 
					 | 
					  display: block; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  a { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    color: rgba(var(--palette-primary-500), 1); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    font-weight: 500; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    &:hover { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      color: rgba(var(--palette-primary-300), 1); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  .hint-text { | 
					 | 
					 | 
					  .hint-text { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    font-size: 90%; | 
					 | 
					 | 
					    font-size: 90%; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    line-height: 1.2; | 
					 | 
					 | 
					    line-height: 1.2; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |