Description

Appkit Translation Service

Methods

addBundle(name, bundle)

Add a translation bundle with a specified name

Parameters

ParamTypeDetails
namestring
bundleobject

get(term, fallback, namespaces)

Get a translation for a term if it exists, otherwise return the original term

Parameters

ParamTypeDetails
termstringThe term to translate
fallbackstringThe fallback to apply
namespaces (optional)stringThe bundle names to use. Comma delimited (default: “default”)

Returns

stringThe translated term

put(key, translation, namespace, override)

Add a new translation

Parameters

ParamTypeDetails
keystring
translationstring
namespace (optional)string
override (optional)string