Skip to Main Content
Spotfire Ideas Portal

add API to get UI language of Analyst for Action Mods

Please add API to get UI language of Analyst / WP, so that we can use console.log() to report progress in appropirate language in accord with the UI.



  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Aug 14, 2024

      Hello Magnus,

      Thank you for the clarification.

      Good to know.


    • Admin
      Magnus Rylander
      Reply
      |
      Aug 13, 2024

      Hi Wei Li, I was a bit too fast in my first comment. It works the way you describe. An API to get the current UI language will be considered in a future relase.

    • Guest
      Reply
      |
      Aug 13, 2024

      Hello Magnus,

      Thank you.


      console.log() can also write text to progress dialog when action mod is executing, so we are planning to use it massively in this way. Can we do this?


    • Admin
      Magnus Rylander
      Reply
      |
      Aug 12, 2024

      Thanks for the idea. It makes sense to be able to display localized messages and something we should look into. Using the NotificationService API (https://spotfiresoftware.github.io/spotfire-mods/api-docs/action-mods/classes/Spotfire.Dxp.Framework.ApplicationModel.NotificationService.html) is probably a better option than console.log, which is mainly a tool for developers to troubleshoot.