JSDoc: Namespace: l10n

# Namespace: l10n

## l10n

Source:
  - l10n.js, line 32

### Methods

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

Retrieve the localized string for the specified entity id.

Example: localizeEntity(["chrome://global/locale/about.dtd"], "about.version")

##### 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:
  - l10n.js, line 48

##### 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:
  - l10n.js, line 84

##### Returns:

The localized string for the requested property.

Type
  string