Namespace: l10n

l10n

Source:

Methods

(static) localizeEntity(urls, id) → {string}

Retrieve the localized string for the specified entity id.

Example: localizeEntity(["chrome://branding/locale/brand.dtd"], "brandShortName")

Parameters:
Name Type Description
urls Array.<string>

Array of .dtd URLs.

id string

The ID of the entity to retrieve the localized string for.

Source:
Returns:

The localized string for the requested entity.

Type
string

(static) localizeProperty(urls, id) → {string}

Retrieve the localized string for the specified property id.

Example:

localizeProperty(
    ["chrome://global/locale/findbar.properties"], "FastFind");
Parameters:
Name Type Description
urls Array.<string>

Array of .properties URLs.

id string

The ID of the property to retrieve the localized string for.

Source:
Returns:

The localized string for the requested property.

Type
string