Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/text: first string in catalog returned when the given string is not in the catalog #30924
What version of Go are you using (
To add some color to this issue, the expected behavior (getting back the original string) is how gettext works. I do realize that either way the string we would get back would not be the proper translation, but getting back the original string at least lets you test to see if the string was translated. Getting back the first random translation in the catalog is not a good developer experience. It makes unit testing more challenging and reduces the general usability of this package.