i18n4go icon indicating copy to clipboard operation
i18n4go copied to clipboard

checkup does not capture translation strings in variables that have been reinitialized

Open Aerex opened this issue 8 months ago • 0 comments

Context

The checkup command cannot find a string translation in a variable that has been reinitialized.

For example, assume the all.en_US.json translation file contain the message IDs: Hello World and Hello World!! and the following code snippet is given.

message := "Hello World"

fmt.Println(T(message))

message = "Hello World!!"

If a user runs checkup on the code it will state that Hello World!! is found in all.en_US.json but not in code.

Aerex avatar Jun 03 '24 17:06 Aerex