How To
Documentation
    Learn More

      TranslationService

      Description

      Appkit Translation Service

      Methods

      • addBundle(name, bundle)

        Add a translation bundle with a specified name

        Parameters
        ParamTypeDetails
        namestring
        bundleobject
      • get(term, bundle)

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

        Parameters
        ParamTypeDetails
        termstring

        The term to translate

        bundle
        (optional)
        string

        The bundle names to use. Comma delimited

        (default: "default")

        Returns
        string

        The translated term

      • put(key, translation, bundleName, override)

        Add a new translation

        Parameters
        ParamTypeDetails
        keystring
        translationstring
        bundleName
        (optional)
        string
        override
        (optional)
        string