/Pterodactyl-Translation

Pterodactyl translation system using react-i18n and i18next

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

THIS IS INCOMPLETE

Pterodactyl Translation System

Pterodactyl translation system using react-i18n and i18next

Install

  • Replace files
  • Run yarn add i18next-browser-languagedetector i18next-http-backend

Modify

Keys cannot have a period at the end of them or hypens in them.

  • Add import { usetranslation } from 'react-i18next';
  • Make variable const { t } = useTranslation();
  • Wrap text/keyname in t{} and define the key in the .json files.