Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for more than one locale ! #3140

Closed
alnouirah opened this issue May 29, 2020 · 1 comment
Closed

API for more than one locale ! #3140

alnouirah opened this issue May 29, 2020 · 1 comment

Comments

@alnouirah
Copy link

Hi there ,
First of all , i really love what you have done there. You are awesome 馃槃 .
Second , this is not an issue as it is a question . so is there a way to use bagisto web api to fetch data according to specific locale !?
if there is plz show me how to do it ! cuz i didn't find it in the documentation .
if not , would you mind to tell me what i have to do in order to implement it ?
thanks in advance.

@alnouirah
Copy link
Author

alnouirah commented May 30, 2020

Hi there .
Thanks for Bagisto community 馃槃 .
the solution was to pass the local variable with the request 馃憤 .
so for example you can get arabic translation for categories by this way :
api/categories?locale=ar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant