I have a SAPUI5 app that tries to load some translation files based on user language but those languages are missing in the original library of SAP.
For example it tries to load a translation with fa
locale as following:
https://webidetestingXXXXXXX.dispatcher.hana.ondemand.com/webapp/resources/sap/m/messagebundle_fa.properties
As it can be seen it tries to read the translation from sap.m
namespace!
Now the question is, as I have access to English translation file of this recourse, how can I activate a call back mechanism that when a translation file is missing, it takes a look on my i18n folder and then if it couldn't find the file there, then load the default translation!?
For example I can download the English file and provide a translation for Persian language under webapp\i18n\sap\m\messagebundle_fa.properties
and when it's failed to find the file in original place then read it from my local folder!
Please note the actual address of my webapp\i18n
folder inside the WebIDE is something similar to https://webidetestingXXXX.dispatcher.hana.ondemand.com/~1595255696000~/webapp/i18n/
. That ~1595255696000~
refers to the current instance of run app. And as you see it is missing for the files that failed to load!