issue with i18n files
MaximShmyrev opened this issue · 1 comments
Hello team,
During running of OPA5 tests from karma we have an error related to i18n translation
We tried to change language parameters in UI5 application, but errors is still exists..where karma takes this parameter? If we create these files manually, it's working..but it's a strange workaround from my point of view. Is it possible somehow to specify language parameter during karma run or ingore these errors?
The requests are really strange. Might it be that somewhere the suffix "_de" is hard coded (e.g. in the manifest.json)? Configuration should always name the file w/o language / locale. The runtime will add it, based on the current session language.
If you access the property files via configuration, you might want to add the "supportedLocales" option to avoid requests for non-existing data. The same option can also be provided when the properties file is read via a programmatic call, but then it might be more cumbersome.
To specify the language to run the test in, you might use the "urlParameters" configuration of the UI5 karma plugin. Specifying the URL parameter sap-language: "de"
, German will be used for the session.