OpenVeo test API

API Docs for: 8.0.0
Show:

i18n

Defined in: lib/e2e/i18n.js:7
Module: e2e

static

Summary

Helps retrieving project's translations.

Item Index

Methods

Methods

getBackEndTranslations

Defined in lib/e2e/i18n.js:44

Syntax

getBackEndTranslations

(
  • languageCode
)
Promise static

Summary

Gets the list of back end translations.

Parameters:

  • languageCode String

    The 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

Defined in lib/e2e/i18n.js:16

Syntax

getTranslations

(
  • dictionary
  • languageCode
)
Promise static

Summary

Gets translations.

Parameters:

  • 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)

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);
});