This should be a long `lang != "" && (err != nil || strings.HasSuffix(...))` instead of two ifs, which would be too long and contrived.  Consequently I'd like if you could extract the multilingual part into a different `func` as we talked earlier.  Otherwise, the logic of handling the `index` because too entangled into the multilingual support code.