Internationalization Questions
I'm looking at adding multilingual support to a couple of open source projects I'm working on. The solutions are already developed in CSP so I am not looking for alternative approaches.
I'm wondering what would be the best approach for CSP and separate JavaScript files.
Initially I was wondering if I should bake the default system language text at compile time, or provide the end user with a language selection option at run time.
I came across $$$TEXT reading the docs...
https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY...
and have also discovered the localization manager which looks to be really handy...
https://community.intersystems.com/post/cach%C3%A9-localization-manager-...
In the localisation manager example it gives the user a drop down to select a preferred language. It's not obvious to me at the moment what setting that drop down would change on the server to then affect the $$$TEXT macros at run time. What would I need to do, to do something similar.
I'm also unsure what $$$TEXT is doing at compile time. If I wanted to bake the language of the local system language into the code then how do I use $$$TEXT to do this. Again its not obvious at the moment how $$$TEXT knows the difference between a compile time implementation and a run time.
I'm also wondering if there is any advice on the best way to deploy the language pack (global) with an application on GitHub. If the application was developed such that it bakes the language at compile time, then how would you bundle the language into the build file. Would you just include all of the languages or have the user install the language of choice separately.
In general any additional advice or pointers would be welcome.
Thanks,
Sean.