Skip to content
No description or website provided.
TypeScript JavaScript HTML PHP CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller/Admin
out
public
src
views/admin
.env
.gitignore
LICENSE
README.md
codegen.yml
composer.json
menu.xml
metadata.php
package.json
tsconfig.json
yarn.lock

README.md

React-translations

oxhackathon19

Alt text

This is a client-side module application builded with React, Typescript and Apollo, and consumes the OXID GraphQL API (graph-translations) to manage the information about the "Shop Languages" and provide a unique admin module to easily edit translations for all the strings in the shop. It has automatically generated TypeScript types for the GraphQL queries and it executes these queries using React Hooks.

Why GraphQL + TypeScript?

A GraphQL API is required to be strongly typed, and the data is served from a single endpoint. By calling a GET request on this endpoint, the client can receive a fully self-documented representation of the backend, with all available data and the corresponding types then we can scan our web app directory for query files and match them with the information provided by the GraphQL API to create TypeScript types for all request data this leads to fewer bugs and a much faster iteration speed on our app.

To use this module, the following prerequisites exist: Your shop version must be at least 6.2. And you need the graph-translationsmodule installed.

You can’t perform that action at this time.