You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
Create a rule to find instances of unlocalized strings.
An unlocalized string is defined as:
A double-quoted string (single-quoted strings are assumed to be technical)
and, not passed to a localization function
Options:
localization-function - the string name of a localization function. For example, "localize".
localization-expression - the string text of a localization expression. For example, "nls.localize"
Examples:
// assume localization-function is "localize"
localize("Title"); // ok (localization function used)
nls.localize("Title"); // ok (localization function used)
var title = 'Title'; // ok (not double quotes)
var title = "Title"; // violation
l10n("title"); // violation
nls.l10n("Title"); // violation
// assume localization-expression is "nls.localize"
nls.localize("Title"); // ok (localization function used)
xxx.localize('Title'); // ok (not double quotes)
xxx.localize("Title"); // violation
localize("Title"); // violation
nls.l10n("Title"); // violation