Author Topic: language in new accounts created via api  (Read 3457 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
language in new accounts created via api
« on: October 27, 2022, 09:51:17 AM »
Hi,

In option "Feature, themes, Languages" default language is spanish.

However, when i create a new account via api the account is created always with english

Any idea how to fix it?

Offline
***
Re: language in new accounts created via api
« Reply #1 on: October 27, 2022, 02:49:33 PM »
cwp pro ?


if you use cwp pro, maybe you can push user default language

Offline
*
Re: language in new accounts created via api
« Reply #2 on: October 27, 2022, 02:54:07 PM »
Yes, I use CWP Pro.

However, in add function of the API is not able to send language:

https://docs.control-webpanel.com/docs/developer-tools/api-manager/functions/function-api-account/add


Offline
*
Re: language in new accounts created via api
« Reply #3 on: October 31, 2022, 01:39:03 AM »
any idea?

Could anyone help me?

Offline
*
Re: language in new accounts created via api
« Reply #4 on: November 07, 2022, 02:33:00 PM »
I´m still looking for a solution to this.

I suppose that it must be possible to create an account via api with a language other than English

Offline
*
Re: language in new accounts created via api
« Reply #5 on: November 11, 2022, 08:39:10 AM »
I found a "patch". I have created a cron job to change /home/user/.conf/cwp.ini

Offline
*****
Re: language in new accounts created via api
« Reply #6 on: November 14, 2022, 10:20:08 AM »
You can set a default language in the feature module in the admin

Offline
*
Re: language in new accounts created via api
« Reply #7 on: November 14, 2022, 04:02:36 PM »
You can set a default language in the feature module in the admin

Yes. I said it in my first message. I  have already set spanish in feature options.

If I create a new account from admin panel it is working correctly.

however, when i create a new account via API all accounts are created in english
« Last Edit: November 14, 2022, 04:25:05 PM by setecabanas »