A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Microsoft/tslint-microsoft-contrib/issues/95 below:

no-unlocalized-strings · Issue #95 · microsoft/tslint-microsoft-contrib · GitHub

Create a rule to find instances of unlocalized strings.

An unlocalized string is defined as:

Options:

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4