getLangContent(params: Object)

Requires:
BizKit≥3.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
import { getLangContent } from '@ray-js/ray';

// Promise usage
try {
  const res = await getLangContent();
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Get multilingual resources

Parameters

PropertyTypeRequiredDescription
complete() => voidNoCompletion callback (executed on both success and failure)
success(params: Object) => voidNoCallback on successful API call
fail(params: Object) => voidNoFailure callback
success callback parameters
PropertyTypeDescriptionBizKit Since
Multilingualv3.1.2
fail callback parameters
PropertyTypeDescription
errorMsgstringError message
errorCodestring | numberError code
Error extension

Return Value

None

Examples

import { getLangContent } from '@ray-js/ray'

getLangContent({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});