i18n
Summary
Helps retrieving project's translations.
Item Index
Methods
- getBackEndTranslations static
- getTranslations static
Methods
getBackEndTranslations
Syntax
Summary
Gets the list of back end translations.
Parameters:
-
languageCode
StringThe language code (e.g. en)
Returns:
Promise:
Promise resolving with the list of translations
Example:
var i18n = require('@openveo/test').e2e.i18n;
i18n.getBackEndTranslations('en').then(function(backEndTranslations) {
console.log(backEndTranslations);
});
getTranslations
Syntax
Summary
Gets translations.
Parameters:
Returns:
Promise:
Promise resolving with the list of translations
Example:
var i18n = require('@openveo/test').e2e.i18n;
i18n.getTranslations('login', 'en').then(function(translations) {
console.log(translations);
});