Web:InternationalizationCheck Labels should be defined in the resource bundle

Web:InternationalizationCheck is not working correctly. Its not identifying if we have any special characters or two words in the control.

  • Versions used Sonarqube 8.4.2 & 8.9
  • Error observed (Scanning not identifying every similar issue in the system)
  • Steps to reproduce (Add a label text in Span as below, issue reported only for 1st Span value, not for other two Span Values
    Welcome
    Learn Angular
    Add_Dependency)
  • Scanner command used when applicable (
    SET variable=“SampleApp”
    cd %variable%
    “sonar-scanner-cli-3.3.0.1492-windows\bin\sonar-scanner.bat” -Dsonar.scm.provider=git -Dsonar.host.url=http://localhost:9000 -Dsonar.login=790e2dc10220540faa787811d32acdea73e5a572 -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=. -Dsonar.projectVersion=1.0 -Dsonar.projectKey=Sample -Dsonar.typescript.tsconfigPath=tsconfig.json -Dsonar.projectName=Sample -Dsonar.projectBaseDir=%variable%)

Hi @rajeshp ,

Welcome to SonarSource Community! :sonarsource:

Can you show the code that reproduces your error? Also, please update your version of Sonar Scanner CLI, which is now on version 4.6.2.

Joe

Sample-Angular-App.zip (143.6 KB)
Hi Joe,

PFA Angular source code. Sonar Scanner CLI version is 4.6.2.

Thanks

Any update on our ticket?

Thanks

Hi @rajeshp ,

I could not replicate your issue, no issues were raised here:

Can you attach a reproducer with your code or files?

Also, please also try running an Elasticsearch reindex as described here, rescan your project, and check again:

How do I trigger a full ElasticSearch reindex?

Currently, the only way to force a reindex is to:

Stop your server
Remove the contents of the $SQ_HOME/data/es7 directory
Start your server

Before doing this, you should be aware first that processes are in place on the SonarQube side that out-of-sync indices are detected and corrected, and second that a full re-index can be quite lengthy depending on the size of your instance.

Hi Joe,

We have done the Elasticsearch reindex, still we are facing the issue.

Sonarqube Community Edition Version 8.9.2 (build 46101)
Sonarscanner : 4.6.2.2472
Error observed (Scanning not identifying every similar issue in the system)
Command:
SET variable=“C:\Users\Administrator\Desktop\Sample\Sample-Angular-App”
cd %variable%
“C:\sonar-scanner-cli-4.6.2.2472-windows\bin\sonar-scanner.bat” -Dsonar.host.url=http://devops:9000 -Dsonar.login=790e2dc10220540faa787811d32acdea73e5a572 -Dsonar.sourceEncoding=UTF-8 -Dsonar.sources=. -Dsonar.projectVersion=1.0 -Dsonar.projectKey=Sample -Dsonar.typescript.tsconfigPath=tsconfig.json -Dsonar.projectName=Sample -Dsonar.projectBaseDir=%variable%

Hi @rajeshp ,

Can you attach a sample app that has the error so that I can try scanning it myself?

Regards,
Joe

Hi Joe,

I am attaching the sample code.

Thanks
Sample-Angular-App.zip (143.6 KB)

Hi @rajeshp ,

Thanks for the zip file. I scanned that example app but I found no issues regarding Web:InternationalizationCheck:

Can you provide me the same files that you are scanning to reproduce this error? I don’t see any files with the <mat-icon> HTML.