Holger Schimanski Posted December 27, 2020 Share Posted December 27, 2020 I would like to add support for multiple languages. For example "Color by" is automatically translated to "Farben nach" in German. What is the concept for multilanguage i18n support in Spotfire mods If I look at the mod-manifest.json I don't find options to provide i18n labels. Beside mod-manifest.json we likely will need i18n labels in our JavaScript code for the user interface. And in all of that I would like to reuse existing phrases and translations used already in Spotfire like the example above of "Color by" to avoid, that I need to translate labels of user interface components in my Spotfire mod. Any ideas Best regards, Holger Link to comment Share on other sites More sharing options...
Magnus Rylander Posted January 4, 2021 Share Posted January 4, 2021 Hi Holger, Thanks for your feedback. Multiple languages in Spotfire Mods is currently not supported. I've added ittothe Idea Portal:https://ideas.tibco.com/ideas/TS-I-8086. Regards, Magnus Link to comment Share on other sites More sharing options...
Holger Schimanski Posted January 5, 2021 Author Share Posted January 5, 2021 As inspiration how it is done elsewhere like in Atlassian Jira or Confluence addons https://developer.atlassian.com/server/framework/atlassian-sdk/internationalising-your-plugin/ or https://developer.atlassian.com/cloud/jira/platform/internationalization-for-connect-apps/ You provide properties files where you have keys and the translated text for each language e.g. com.example.plugin.fruit.apple = Apple and com.example.plugin.fruit.apple = Apfel in two different files. In the manifest file you can reference and use these keys. Instead of label: "Apple" you would use label_key: "com.example.plugin.fruit.apple". And you need a way to get the label keys translated in HTML and JavaScript code via a JavaScript call. Very useful would be, if a mod could reuse already existing translations from core Spotfire. Then the mod developer don't has to worry about how to translate common words and phrases like "Sort ascending" etc. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now