We are using ng-hcapthca in angular application to support different languages. When i open directly with the url with supporting language, the application is opened with captcha in respective language. But when i tried to change the hcaptcha language programatically by using [hl]="changeLanguage()" or [languageCode]="changeLanguage()" methods it is not working, and showing same language.
<ng-hcaptcha formControlName="hcaptcha" [hl]="changeLanguage()" or [languageCode]="changeLanguage()">
changeLanguage() { if(this.language === 'th') { return 'th' }
From the above example the language variable i am getting as thai language ('th') but it is not loading with 'thai' language. it is still showing english language in my application as it is previously loaded.
Could you please let me know how can we do programmatically update the captcha language