Helps retrieving project's translations.
- Source:
Methods
(static) getBackEndTranslations(languageCode) → {Promise}
Gets the list of back end translations.
Parameters:
Name | Type | Description |
---|---|---|
languageCode |
String | The language code (e.g. en) |
- Source:
Returns:
Promise resolving with the list of translations
- Type
- Promise
Example
var i18n = require('@openveo/test').e2e.i18n;
i18n.getBackEndTranslations('en').then(function(backEndTranslations) {
console.log(backEndTranslations);
});
(static) getTranslations(dictionary, languageCode) → {Promise}
Gets translations.
Parameters:
Name | Type | Description |
---|---|---|
dictionary |
String | The name of the dictionary, this is the name of the dictionary file without extension |
languageCode |
String | The language code (e.g. en) |
- Source:
Returns:
Promise resolving with the list of translations
- Type
- Promise
Example
var i18n = require('@openveo/test').e2e.i18n;
i18n.getTranslations('login', 'en').then(function(translations) {
console.log(translations);
});