i18n4go
i18n4go copied to clipboard
checkup does not capture translation strings in variables that have been reinitialized
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.