i18n

ZoomMtg. i18n

Source:
Version:
  • WebSDK1.9.1

Methods

load(url, lang)

Source:

Load translations.

Example
// load zoom support language  ['de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT','ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'it-IT', 'vi-VN']
  ZoomMtg.i18n.load('en-US');
  ZoomMtg.i18n.load('jp-JP');
  ZoomMtg.i18n.load('zh-CN');

  // load you self language
  ZoomMtg.i18n.load('you json path', "yourlang");
Parameters:
Name Type Description
url string

translation json file url LanguageResource

lang languages

language name, could be office supported or assigned by customer

reload(lang)

Source:

Change translations resource. Set a supported language when Joining a meeting.

Example
ZoomMtg.i18n.reload("jp-JP");
ZoomMtg.i18n.reload("yourlang");
Parameters:
Name Type Description
lang languages

change to targeted lang. first you need to use load func load translation resource

get(str, argsopt) → {string}

Source:

Looks the given string up in the dictionary and returns the translation if one exists. If a translation is not found, returns the original word.

Example
ZoomMtg.i18n.get('apac.toolbar_leave')
Parameters:
Name Type Attributes Description
str language-key-value

The key to translate, it's also get customer's key which loaded.

args string <optional>

the string formate arguments. this args will pass to printf

Returns:

Translated word.

Type
string

getAll(lang) → {Object}

Source:

get current language resource result

Example
//get english language translation resource object
ZoomMtg.i18n.getAll("en-US");

//get japeniese language translation resource object
ZoomMtg.i18n.getAll("jp-JP");
Parameters:
Name Type Description
lang languages

language key

Returns:

language resource result

Type
Object

getCurrentLang() → {string}

Source:

get current language resource result

Returns:

get current language

Type
string

getSupportLanguage() → {Array}

Source:

get support language array

Returns:

default ['de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT']

Type
Array

setSupportLanguage(langArray)

Source:

get current language resource result

Example
ZoomMtg.setZoomJSLib('you_path', '/av');
 ZoomMtg.i18n.setSupportLanguage(['zh-CN', 'zh-TW', 'en-US']); // only use specific languages.
 ZoomMtg.i18n.load('zh-CN'); // load from https://you_path/lang/zh-CN.json
 ZoomMtg.i18n.getSupportLanguage(); // get ['zh-CN', 'zh-TW', 'en-US']
Parameters:
Name Type Description
langArray Array

you want support languages array, will replace default ['de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT']