From 2217a0c81c146219bb4bdb2aa6e2f2f9d7ac5eaf Mon Sep 17 00:00:00 2001 From: Oprea Alexandru Date: Tue, 18 Jul 2023 16:59:55 +0300 Subject: [PATCH] feat: Documentation for the Unreal Engine integration (#1742) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martin Chrástek --- webapp/public/images/technologies/unreal.svg | 1 + .../src/views/projects/integrate/guides.tsx | 8 ++++ .../projects/integrate/guides/Unreal.mdx | 41 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 webapp/public/images/technologies/unreal.svg create mode 100644 webapp/src/views/projects/integrate/guides/Unreal.mdx diff --git a/webapp/public/images/technologies/unreal.svg b/webapp/public/images/technologies/unreal.svg new file mode 100644 index 0000000000..ddef15af7f --- /dev/null +++ b/webapp/public/images/technologies/unreal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webapp/src/views/projects/integrate/guides.tsx b/webapp/src/views/projects/integrate/guides.tsx index b282c93897..dd5664daf1 100644 --- a/webapp/src/views/projects/integrate/guides.tsx +++ b/webapp/src/views/projects/integrate/guides.tsx @@ -95,4 +95,12 @@ export const guides = [ () => import('!babel-loader!@mdx-js/loader!./guides/Figma.mdx') ), }, + { + name: 'Unreal', + icon: getTechnologyImgComponent('unreal'), + guide: React.lazy( + // @ts-ignore + () => import('!babel-loader!@mdx-js/loader!./guides/Unreal.mdx') + ), + }, ] as Guide[]; diff --git a/webapp/src/views/projects/integrate/guides/Unreal.mdx b/webapp/src/views/projects/integrate/guides/Unreal.mdx new file mode 100644 index 0000000000..06cc8ab287 --- /dev/null +++ b/webapp/src/views/projects/integrate/guides/Unreal.mdx @@ -0,0 +1,41 @@ +import { GoToDocsButton } from '../component/GoToDocsButton'; + + + +To read full documentation about the Tolgee Unreal plugin, visit [docs](https://tolgee.io/platform/unreal-plugin/usage). + +## Installing the plugin + +First, you need to install the plugin from the [Unreal Marketplace](https://www.unrealengine.com/marketplace/en-US/product/2757e202f8f3408bbf66f65d26223398) and add it to your project/engine. + +Alternatively, you can clone the plugin from [GitHub](https://github.com/tolgee/tolgee-unreal) and compile it locally. + +## Enabling the plugin + +To enable the Tolgee plugin inside Unreal, perform the following steps: + +1. Navigate to the Toolbar `Edit` menu +1. Open the `Plugins` windows +1. Find the Tolgee plugin and tick the checkbox next to it +1. Press `Restart now` or restart your project manually. + +## Setting up the plugin + +After installing the plugin, you need to enable it and set the following properties in the Project Settings → Localization → Tolgee section: + +API key: +``` +{{{apiKey}}} +``` + +If you are using the self-hosted version, you can change the URL to your instance. + +API URL: +``` +{{{apiUrl}}} +``` + +Then you are now ready to start translating using the plugin!