Extends
- ember/Service
Members
(inner) dictionary :Object|ember/Object
Translations
Type:
- Object | ember/Object
- Default Value:
- null
- Source:
Methods
(inner) getKeyValue(key) → {String}
Retrieve value for specified dictionary key
Parameters:
Name | Type | Description |
---|---|---|
key |
String | Dictionary key to retrieve value for |
- Source:
Returns:
- Type
- String
(inner) setDictionary(translations) → {undefined}
Set translation dictionary data
Parameters:
Name | Type | Description |
---|---|---|
translations |
Object | ember/Object |
- Source:
Throws:
ember.assert
Returns:
- Type
- undefined
(inner) translateKey(data) → {String}
Translate provided key
Supports
- singular/plural string substitution
- replacement of placeholder tokens in translation strings with passed parameters
Parameters:
Name | Type | Description |
---|---|---|
data |
translateKeyParameter |
- Source:
Returns:
- Type
- String
Type Definitions
translateKeyParameter
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
key |
String | ||
pluralKey |
String |
<optional> |
|
pluralCount |
String |
<optional> |
|
parameters |
Object |
<optional> |
- Source: