Skip to content

Lint against non-string-literals in i18n helpers calls

Translation helpers (__, s__ and n__) should only be called with string-literals so that the strings can be gathered by the bin/rake gettext:regenerate script. We should prevent the helpers from being called with non-string-literals that would be omitted by the rake task.

Re gitlab-org/gitlab#339268 (closed)

Edited by Paul Gascou-Vaillancourt