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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add internationalization #144

Open
ViniciusCestarii opened this issue Oct 3, 2024 · 0 comments
Open

Feature: Add internationalization #144

ViniciusCestarii opened this issue Oct 3, 2024 · 0 comments

Comments

@ViniciusCestarii
Copy link

It would be useful for adding support for internationalization.

https://fakestoreapi.com/products and https://fakestoreapi.com/en/products would return a json in english like:

[
  {
    "id": 1,
    "title": "Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops",
    "price": 109.95,
    "description": "Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday",
    "category": "men's clothing",
    "image": "https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg",
    "rating": {
      "rate": 3.9,
      "count": 120
    }
  }
...
]

but https://fakestoreapi.com/pt/products would return it in portuguese like

[

  {
    "id": 1,
    "title": "Fjallraven - Mochila Foldsack No. 1, Cabe Notebook de 15 polegadas",
    "price": 109.95,
    "description": "Sua mochila perfeita para uso diário e caminhadas na floresta. Guarde seu notebook (até 15 polegadas) na capa acolchoada, além de seus itens do dia a dia",
    "category": "roupas masculinas", # maybe even tranlate the category
    "image": "https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg",
    "rating": {
      "rate": 3.9,
      "count": 120
    }
  }
...
]
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