Hi! Joomla! webservices api language somehow defaults to en-GB despite I have set both, front and back languages in J! admin to default to es-ES. Checking the api/languages folder I can see that both languages are there but they are quite little in lang files, I guess that's because most of the lang constant get loaded from the component itself, like in my case, that a table check produces some lang output that gets loaded from my administrator/com_component/language/en-GB, but it should look for administrator/com_component/language/es-ES as as long as I understand, as this is the default admin language set.
Text output from webservice API calls should get translated to default admin lang (es-ES in my case)
All text output from webservice API calls got translated to en-GB
Apache
MariaDB 10.3.34
PHP 7.4.30
J! 4.1.5
Step debugger showing that all lang files loaded in a webservice API request got to en-GB
It seems that the webservices API somehow expects to be multi language
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
?
|
Thanks a lot @richard67!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-07-07 12:34:56 |
Closed_By | ⇒ | mgscreativa |
If I understand this right, having other languages than en-GB isn't supported yet: https://docs.joomla.org/Joomla_Api_Specification#Language_Negotiation