Mention that translation helpers should only be called with string literals
- Follows up on gitlab-org/frontend/eslint-plugin!56 (comment 667338673)
In gitlab-org/frontend/eslint-plugin#41 (closed) and gitlab-org/frontend/eslint-plugin#43 (closed), we've added ESLint rules to prevent translations helpers from being called with anything else than strign literals in Js and Vue files. Violating this rule might prevent the gettext:regenerate
script from collecting the strings to make them available for translation. Let's also document this caveat in https://docs.gitlab.com/ee/development/i18n/externalization.html.
Edited by Paul Gascou-Vaillancourt