The loadbundle() function makes the interface to load slowly.

Certified Lead Developer

The loadbundle() function takes too much time for the interface to load. Is there any other way to reduce the time and increase the performance while loading the properties file to translate languages into loggedinuser() locale ? 

  Discussion posts and replies are publicly visible

Parents
  • Hello!

    How fast it works without resources and how much time spent on loadbundle()? Usually it should work pretty fast, can you put your interface code here to have a look?

    You can put the bundle into process variable to load it once for a process, but it will take more memory.

    You also can work with resource() function, but I'm not sure how localized resources should be deployed on Appian.
  • 0
    Certified Lead Developer
    in reply to sergeiz
    The time taken usually depends on the size of the interface. So whatever time it takes, even if it works fast, is there any other way of implementing the translation process in appian to reduce the time comparatively ? I have used the following code -

    local!userLocale: userlocale(loggedInUser()),
    local!bundle: if(
    local!userLocale="fr_CA",
    fn!loadbundle(cons!TSLT_frenchBundle),
    fn!loadbundle(cons!TSLT_englishBundle)
    )
Reply
  • 0
    Certified Lead Developer
    in reply to sergeiz
    The time taken usually depends on the size of the interface. So whatever time it takes, even if it works fast, is there any other way of implementing the translation process in appian to reduce the time comparatively ? I have used the following code -

    local!userLocale: userlocale(loggedInUser()),
    local!bundle: if(
    local!userLocale="fr_CA",
    fn!loadbundle(cons!TSLT_frenchBundle),
    fn!loadbundle(cons!TSLT_englishBundle)
    )
Children